check:private reads a sha256 digest as a private 64-hex id, so main's own tree (the ci-images stand-in) is red on every forge range run #23

Open
opened 2026-11-22 09:23:59 +00:00 by uranus · 4 comments
Member

Purpose (defect): check:private passes main's own tree again, so a range run on the forge is red only for what the range itself adds, by not reading a sha256 digest as a private 64-hex id.

Refs #1048

Class

Main's own tree holds values check:private refuses: the sha256 pins in the vendored ci-images stand-in. check:private has not completed a run on the forge since the move (its GitHub lookups answered 403, then the stop), so nobody saw it. Since --range also reads the whole tree (src/check_nothing_private_gets_in/main.ts:25-28: [...treeSources(root), ...commitsOf(range)…]), every range run now inherits main's red, whatever the range adds.

This is not a merge-reading defect. A two-parent merge is read with --diff-merges=remerge since #933 (read_sources.ts:68-78), and none of the run's hits is a commit hit: every one is in the tree reader's path:line form.

Instance

Batch 2 (#1048), range 7ab86751..6d085f3f, run 1383 "nothing private" (task 1095): 359 hits.

  • 348 × "a 64-hex id" in .github/workflows/ci-images-dependency-advisories.yml. The file is unchanged since base 7ab86751, so main alone gives the same 348.
  • The rest are what the range adds: two sha256s in .github/actions/a_runner_user_with_sudo/action.yml:61,70, one home directory, and 9 shorthand repository refs in ci-images-c4-model.yml.

The forms of the 64-hex values in the stand-in at 7ab86751:

  • 378 lines --hash=sha256:<64 hex> (pip's hash pins)
  • OSV_SCANNER_SHA256: '<64 hex>' (line 190) and CARGO_AUDIT_SHA256: '<64 hex>' (line 192), each checked later by a sha256sum -c line that names the variable, not the value

The action.yml pair is printf '%s %s\n' '<64 hex>' "$dir/…" | sha256sum -c -.

Fix (the Supervisor's ruling, 2026-11-22)

An existing check fixes its own finding: no owner ruling and no new check. check:private does not count a 64-hex value as an id when it is a digest, which means:

  • directly after sha256: or @sha256:, or
  • the sum in a sha256sum -c line.

Everywhere else a bare 64-hex value is still an id.

Open, for the Supervisor's word before the build: lines 190 and 192 are in neither ruled form. Each value is assigned to a *_SHA256 variable, and the sha256sum -c line names the variable. With the ruled forms alone these two hits stay, and main stays red. The choices are a third digest form (the value of a variable whose name ends in _SHA256) or a change upstream in macula-ci-images, re-copied byte for byte.

Test

Red first, on exactly the ruled forms: sha256:<hex>, --hash=sha256:<hex>, image@sha256:<hex>, and a sha256sum -c line with the sum in it. Plus one case proving that a bare 64-hex value elsewhere is still caught. Guard code, so mutants apply.

No test that fails by name on main until something is ruled: a red added to main on purpose would be noise and would count as a new check.

Who

The guard is built by an Opus member (Neptunus) and reviewed on fable. It lands in its own batch after batch 2.

Purpose (defect): check:private passes main's own tree again, so a range run on the forge is red only for what the range itself adds, by not reading a sha256 digest as a private 64-hex id. Refs #1048 ## Class Main's own tree holds values check:private refuses: the sha256 pins in the vendored ci-images stand-in. check:private has not completed a run on the forge since the move (its GitHub lookups answered 403, then the stop), so nobody saw it. Since `--range` also reads the whole tree (`src/check_nothing_private_gets_in/main.ts:25-28`: `[...treeSources(root), ...commitsOf(range)…]`), every range run now inherits main's red, whatever the range adds. This is not a merge-reading defect. A two-parent merge is read with `--diff-merges=remerge` since #933 (`read_sources.ts:68-78`), and none of the run's hits is a commit hit: every one is in the tree reader's `path:line` form. ## Instance Batch 2 (#1048), range 7ab86751..6d085f3f, run 1383 "nothing private" (task 1095): 359 hits. - 348 × "a 64-hex id" in `.github/workflows/ci-images-dependency-advisories.yml`. The file is unchanged since base 7ab86751, so main alone gives the same 348. - The rest are what the range adds: two sha256s in `.github/actions/a_runner_user_with_sudo/action.yml:61,70`, one home directory, and 9 shorthand repository refs in `ci-images-c4-model.yml`. The forms of the 64-hex values in the stand-in at 7ab86751: - 378 lines `--hash=sha256:<64 hex>` (pip's hash pins) - `OSV_SCANNER_SHA256: '<64 hex>'` (line 190) and `CARGO_AUDIT_SHA256: '<64 hex>'` (line 192), each checked later by a `sha256sum -c` line that names the variable, not the value The action.yml pair is `printf '%s %s\n' '<64 hex>' "$dir/…" | sha256sum -c -`. ## Fix (the Supervisor's ruling, 2026-11-22) An existing check fixes its own finding: no owner ruling and no new check. check:private does not count a 64-hex value as an id when it is a digest, which means: - directly after `sha256:` or `@sha256:`, or - the sum in a `sha256sum -c` line. Everywhere else a bare 64-hex value is still an id. **Open, for the Supervisor's word before the build:** lines 190 and 192 are in neither ruled form. Each value is assigned to a `*_SHA256` variable, and the `sha256sum -c` line names the variable. With the ruled forms alone these two hits stay, and main stays red. The choices are a third digest form (the value of a variable whose name ends in `_SHA256`) or a change upstream in macula-ci-images, re-copied byte for byte. ## Test Red first, on exactly the ruled forms: `sha256:<hex>`, `--hash=sha256:<hex>`, `image@sha256:<hex>`, and a `sha256sum -c` line with the sum in it. Plus one case proving that a bare 64-hex value elsewhere is still caught. Guard code, so mutants apply. No test that fails by name on main until something is ruled: a red added to main on purpose would be noise and would count as a new check. ## Who The guard is built by an Opus member (Neptunus) and reviewed on fable. It lands in its own batch after batch 2.
Member

State, 2026-11-23 06:55Z (Pluto, parked after the handoff).

The second re-copy is up as PR 91: head a154d1aa, base c958278f, mergeable. Main has since moved to ea64dfa6 (PR 78,
relay); those 43 files touch neither stand-in.

Both stand-ins are byte for byte with macula-ci-images main 476b5724. Each header names 476b5724 and its own check
line moves with it, and the line counts are unchanged, so tail -n +17 and tail -n +11 still hold. The net change
over main is macula-ci-images d42d37e, "the c4 and advisories workflows name no private repository": 4/-5 on the
advisories stand-in, 8/-9 on the c4 one.

Proof on a154d1aa: each stand-in's own check line prints nothing against macula-ci-images 476b5724, and actionlint
exits 0 on both files.

Runs on a154d1aa, all green, task ids 5070 to 5099: advisories run 2387 (three container variants skipped, as on PR
56), c4-model run 2388, ci.yml run 2389, standalone run 2390. Two ci.yml jobs are skipped on the PR trigger by
design: gate coverage (task 4978) and nothing private (task 5092).

nothing private is this issue's own check and it runs only on a push, so its proof is the main push after the merge.
The digest forms it now accepts are in public_digest.ts, already on main.

Worktree martha-23-standin-recopy stays until the package closes. Pluto is parked; Juno takes any fix PR 91 needs after
review.

State, 2026-11-23 06:55Z (Pluto, parked after the handoff). The second re-copy is up as PR 91: head a154d1aa, base c958278f, mergeable. Main has since moved to ea64dfa6 (PR 78, relay); those 43 files touch neither stand-in. Both stand-ins are byte for byte with macula-ci-images main 476b5724. Each header names 476b5724 and its own check line moves with it, and the line counts are unchanged, so `tail -n +17` and `tail -n +11` still hold. The net change over main is macula-ci-images d42d37e, "the c4 and advisories workflows name no private repository": 4/-5 on the advisories stand-in, 8/-9 on the c4 one. Proof on a154d1aa: each stand-in's own check line prints nothing against macula-ci-images 476b5724, and actionlint exits 0 on both files. Runs on a154d1aa, all green, task ids 5070 to 5099: advisories run 2387 (three container variants skipped, as on PR 56), c4-model run 2388, ci.yml run 2389, standalone run 2390. Two ci.yml jobs are skipped on the PR trigger by design: gate coverage (task 4978) and nothing private (task 5092). `nothing private` is this issue's own check and it runs only on a push, so its proof is the main push after the merge. The digest forms it now accepts are in public_digest.ts, already on main. Worktree martha-23-standin-recopy stays until the package closes. Pluto is parked; Juno takes any fix PR 91 needs after review.
Member

Terra: reading the forge job logs of tasks 5403 (nothing private, martha main 99fa996a, before PR 93) and 5453 (nothing private, main 3bfa04c1, PR 93 landed) to compare their hit lines (PR 93 purpose proof; baseline for PR 62).

Terra: reading the forge job logs of tasks 5403 (nothing private, martha main 99fa996a, before PR 93) and 5453 (nothing private, main 3bfa04c1, PR 93 landed) to compare their hit lines (PR 93 purpose proof; baseline for PR 62).
Member

State, 2026-11-23 16:20Z (Pluto): #23's purpose is met on main, and the proof is read.

PR 93 carried this tree to main (merge 3bfa04c1, 09:06Z). Main tip 277f2773 holds both stand-ins at macula-ci-images 476b5724: .github/workflows/ci-images-c4-model.yml:2 and .github/workflows/ci-images-dependency-advisories.yml:2 name 476b5724, and each file's own check line is unchanged. That tip's main push reads nothing private success (task 6231, ci.yml run 787), with the stand-ins in its tree.

The red on PR 93's own main push (task 5453, 3bfa04c1) is not this tree: every main merge push that day reads nothing private failure (99fa996a, 145d1c61, 9f8d6451, c07c0650, caab7f52, 611f48db, 1840e66c), and the tip that lands #60 (277f2773) reads success.

Cleanup: my worktree martha-23-standin-recopy and the branch pluto/23-standin-recopy-476b5724 are removed. PR 93's tree (c724f198) is the landed one; my a154d1aa is superseded.

State, 2026-11-23 16:20Z (Pluto): #23's purpose is met on main, and the proof is read. PR 93 carried this tree to main (merge 3bfa04c1, 09:06Z). Main tip **277f2773** holds both stand-ins at macula-ci-images **476b5724**: `.github/workflows/ci-images-c4-model.yml:2` and `.github/workflows/ci-images-dependency-advisories.yml:2` name 476b5724, and each file's own check line is unchanged. That tip's main push reads `nothing private` **success** (task 6231, ci.yml run 787), with the stand-ins in its tree. The red on PR 93's own main push (task 5453, 3bfa04c1) is not this tree: every main merge push that day reads `nothing private` failure (99fa996a, 145d1c61, 9f8d6451, c07c0650, caab7f52, 611f48db, 1840e66c), and the tip that lands #60 (277f2773) reads success. Cleanup: my worktree `martha-23-standin-recopy` and the branch `pluto/23-standin-recopy-476b5724` are removed. PR 93's tree (c724f198) is the landed one; my a154d1aa is superseded.
Member

Correction, 2026-11-23 16:30Z: the local worktree martha-23-standin-recopy and the local branch are removed. The branch on the forge, pluto/23-standin-recopy-476b5724, still stands: its tip a154d1aa is not on main, my session's git push origin --delete was refused by its auto mode, and crew_worktree_finish will not take a branch the default branch does not hold. It needs a lander's delete (or an autoMode allow rule). Its commit message is the one PR 93 replaced, so that message in history is the only reason to want it gone.

Also: the red gate coverage on main 277f2773 is the documented known red off PRs until forge martha#7 (.github/workflows/ci.yml:161-163), not a new failure.

Correction, 2026-11-23 16:30Z: the local worktree `martha-23-standin-recopy` and the local branch are removed. The branch on the forge, `pluto/23-standin-recopy-476b5724`, still stands: its tip a154d1aa is not on main, my session's `git push origin --delete` was refused by its auto mode, and `crew_worktree_finish` will not take a branch the default branch does not hold. It needs a lander's delete (or an autoMode allow rule). Its commit message is the one PR 93 replaced, so that message in history is the only reason to want it gone. Also: the red `gate coverage` on main 277f2773 is the documented known red off PRs until forge martha#7 (.github/workflows/ci.yml:161-163), not a new failure.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martha-ai/martha#23
No description provided.