Repository navigation
Closed
Labels
area:ciWork in the ci area.priority:P1High-impact work needed for the MVP or beta path.type:bugCorrectness defect or regression.
Description
Batch 5's audit of the CI scripts and gates (main at e57db42) found checks that pass when the thing they check did not happen. Each was confirmed by a second reader; items 1 to 3 were re-read by the maintainer session.
Measure scripts
- A missing or unreadable pins file makes the held-out fetch exit 0 having fetched nothing.
fetch-holdout-archives.sh:59,fetch-holdout-models.sh:35andfetch-bimcollab.sh:49read the pins withdone < <(grep -v '^#' "$PINS"). A failinggrepinside a process substitution does not fail the script, so the loop never runs and the workflow reads status 0 as "fetched and verified" (measure.yml:1051-1057,:1020-1024). Fix:[ -r "$PINS" ] || exit 66first, or read the file into an array and check the count. - An export that crashed or wrote nothing gets the empty-input hash.
measure-reference-models.sh:456pipesgrep ... "$dir/model.ifc" | sha256sumwith no existence or size guard, so an absentmodel.ifchashes ase3b0c442…. A crash on both sides then compares as an unchanged export. Fix:[ -s "$dir/model.ifc" ]or write amissingmarker the comparison treats as different. - A scorer step that crashed or timed out leaves no trace in
schema.txt.cached()(:335-340) returns the status but the call at:356-357ends in|| trueand noexit Nline is written, so the "results are whole" check cannot see it. Fix: write the step's exit status into the file it fills. fetch-bim4lca.pytrusts the downloaded archive's own sizes (:160,:163-174) before the pinned hash is checked, so a hostile host can make it read and write up to the archive size first. Fix: refuse a member whoseusizeexceeds the pinnedsize.
Witness and workflow checkers
- A type neither witness reports compares as 0 against 0 and passes.
witness-verdict.py:169(also:208,:254) adds every claimed type to the surface and reads a missing count as0. A witness that silently stops emitting a type agrees with any other that also lacks it. Fix: a claimed type absent from a witness is "not observed", not 0. witness-verdict.py:130:lineagedefaults to the witness id, so two builds of one implementation count as two independent lineages unless the registry says otherwise. Fix: requirelineage.check-workflows.py: thepagejob's ownif:is never read (:539-543); release constants are read only from step-levelenv(:511-516); only "no matrix arrays" fails, not "one of the two missing" (:162-164).measured_numbers.py:380-384: no floor on how many numbers it checked, and an unclosed code fence silently disables the rule for the rest of the page.check_same_project_projects.py:10-11: the docstring names a year-keyedPROPERTIEScomparison the script does not make.
No export moves for any of these. A fix lands with CI only, plus one Measure run showing the same verdicts and hashes as main for items 1 to 3.
Metadata
Metadata
Assignees
Labels
area:ciWork in the ci area.priority:P1High-impact work needed for the MVP or beta path.type:bugCorrectness defect or regression.
Activity
fix(ci): schema_step sits above C9's comment, blank-only pins files f…
fix(ci): held-out fetches, the export hash, scorer crashes, the witne…
ci(measure): a scorer the run names that exits non-zero on the head s…