Skip to content

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
DrunkOnJava merged 7 commits into
mainfrom
ci/2124-keep-run-outputs
Nov 22, 2026
Merged

DrunkOnJava merged 7 commits into
mainfrom
ci/2124-keep-run-outputs

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

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's measure-head, measure-base, measure-verdict, compare-scorer-diff and measure-timing, where each still exists. It keeps what the citations read in a commit of its own, with no parent, and pushes it to refs/evidence/<run id>.
    • A ref outside refs/heads and refs/tags is not fetched by a clone, so the kept outputs cost a clone nothing.
    • Each citation will link to the kept file that holds its figure, as plain text: 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.py chooses what is kept.
    • Kept, for each side: every scorer output (.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), and commit.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.
    • Left out: the logs but 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.
    • Folders: kept only from those of the models anyone can fetch (core-interior, einhoven, re1-*, nordic-*, r2025-*, sample-*, family-*), and from a spent-* pair the archive list still names as spent and no held-out list names. The held-out, rac_advanced and BIMcollab folders are left out. Any other folder stops the run.
    • It writes KEPT.md saying 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 in diagnostics.json is 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.tsv lists 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_dispatch run of measure.yml in this repository is kept: a pull request from a fork runs its own measure.yml and 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.

  • The workflow's own step, run locally on all 56 cited runs. Its text, read from the YAML, was run with a local bare repository as the remote and macOS's base64 flag, 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 rows research/kept-runs.tsv starts 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.
  • Each figure of a kind other than scorer text, found in its kept tree:
    • 43152271314, the BIM4LCA office as built "from 21.2 s and 913 MiB to 24.3 s and 944 MiB" (README.md): timing/timing.md, whose row gives 21202, 24252, 913 and 944;
    • 41884073888, "byte-identical to main's on 34 of 34 models" (docs/evidence.md): the 34 ifc.sha256 are the same on both sides;
    • 43662654246, the base side's 9,996 of 10,003 (docs/evidence.md): base/nordic-office-as-built/psets_vs_ifc.txt, "Pset_MemberCommon.Span: 10003, equal 9996";
    • 42017400629, cited in three places:
      • the Areas gate's measurement (docs/evidence.md): head/areas_across_saves.txt, the 25 Areas of each save of 2024 to 2027 with a body;
      • the plan topology's counts (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;
      • Architectural's refusals (docs/status.md): exported/area_body_refusals in head/sample-2024-snowdon_towers_sample_architectural/diagnostics.json;
    • 42003913780, the Snowdon Towers samples' Area spaces, "101 Architectural and 7 Structural written, 96 and 2 with a body" (docs/status.md): their kept diagnostics.json, decoded/production_class_counts/Area 101 and 7 and exported/body_sources/native_area_plan_topology 96 and 2;
    • 40156315852, the BIM4LCA office's 21 monolithic landings at 100.4% to 104.7% of Revit's volume (docs/supported-profile.md): head/nordic-office-as-built/stair_bodies_vs_ifc.txt, each landing's volume beside Revit's.
  • The sample-* folders keep timings.log, schema.txt, ifc.sha256, element_stage_counts.txt and diagnostics.json. A sample's diagnostics.json carries 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. Its schema.txt holds counts only.
  • No kept file of the six runs names a held-out, rac_advanced or 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, the original_path and project_name of every diagnostics.json, 150 distinct values, are the public models' own file and project names, and none is a path.
  • The refusals, on planted folders: a C:\Users\... path in a scorer's .txt, the same path JSON-escaped in a diagnostics.json, and a scorer's .txt naming a holdout- folder each stop the run. A folder no rule knows stops it. A spent- folder a held-out list names is left out and counted in KEPT.md without 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.
  • After merge, the pilot through the workflow on 40156315852, then the rest.

Audit-honesty checklist

  • Nothing public changes until a run is kept, and each kept copy is scanned before it is pushed.
  • No changelog fragment: repository tooling.
  • No emojis, private paths or internal jargon.

Legal and contribution hygiene

  • Apache-2.0.
  • No Autodesk proprietary content. A kept copy holds no export. It holds the scorers' text, which names elements by id and type and gives their counts, volumes and extents; export digests; and export diagnostics, which also carry a file's name, project, storey and material names. All of them come from files anyone can fetch.
  • 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).

…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)
…, 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)
@DrunkOnJava
DrunkOnJava merged commit 029adc5 into main Nov 22, 2026
39 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/2124-keep-run-outputs branch November 22, 2026 06:35
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant