Skip to content

ci(push): let prooft orchestrate the attestation - #4138

Merged
zackees merged 3 commits into
masterfrom
ci/prooft-orchestrates
Nov 9, 2026
Merged

zackees merged 3 commits into
masterfrom
ci/prooft-orchestrates

Conversation

@zackees

@zackees zackees commented Nov 9, 2026

Copy link
Copy Markdown
Member

prooft already owns the trailer format and the lane rules, so ./push asks it
first: 'prooft soldr' runs soldr's porcelain and stamps the Rust gates it
proved. The hand-rolled soldr+ghd path stays only as a deprecated fallback for
machines without prooft, and a missing writer still never invents evidence --
it warns and pushes unless PUSH_REQUIRE_ATTESTATION=1, which refuses.

Verified on this machine: 'prooft run lint -- true' stamped two trailers and
ci-lint attest verify reported both valid (fmt, host clippy). prooft 0.1.0
installs with 'uv tool install prooft>=0.1'.

Ci-Attestation: {"at":1794203838,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["6d51ac6ba4628213c7fedee4ec08700760a9b281"],"secs":206,"stamp":"8ce189190dc44ca0851deac30e262fd7","tree":"100795a2aa22baa5f23fc48e49cadedc086f9fd7","v":1,"via":"run"}
Ci-Attestation: {"at":1794203838,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["6d51ac6ba4628213c7fedee4ec08700760a9b281"],"secs":206,"stamp":"2a26dd7d6a96a168f1044124a4982c6a","tree":"100795a2aa22baa5f23fc48e49cadedc086f9fd7","v":1,"via":"run"}

Forge CI added 3 commits November 8, 2026 21:57
prooft already owns the trailer format and the lane rules, so ./push asks it
first: 'prooft soldr' runs soldr's porcelain and stamps the Rust gates it
proved. The hand-rolled soldr+ghd path stays only as a deprecated fallback for
machines without prooft, and a missing writer still never invents evidence --
it warns and pushes unless PUSH_REQUIRE_ATTESTATION=1, which refuses.

Verified on this machine: 'prooft run lint -- true' stamped two trailers and
ci-lint attest verify reported both valid (fmt, host clippy). prooft 0.1.0
installs with 'uv tool install prooft>=0.1'.

Ci-Attestation: {"at":1794203838,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["6d51ac6ba4628213c7fedee4ec08700760a9b281"],"secs":206,"stamp":"8ce189190dc44ca0851deac30e262fd7","tree":"100795a2aa22baa5f23fc48e49cadedc086f9fd7","v":1,"via":"run"}
Ci-Attestation: {"at":1794203838,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["6d51ac6ba4628213c7fedee4ec08700760a9b281"],"secs":206,"stamp":"2a26dd7d6a96a168f1044124a4982c6a","tree":"100795a2aa22baa5f23fc48e49cadedc086f9fd7","v":1,"via":"run"}
… they found

The rungs decide which component writes the trailers, so a regression silently
stops producing evidence. Four tests assert each rung's message and result with
a stubbed PATH: prooft first, an old prooft falling through to the deprecated
ghd path, no writer at all, and enforce refusing.

Writing them found a real bug: ./push put its evidence beside `.git/`, which is
a directory in a clone but a file in a worktree, so the deprecated path crashed
with NotADirectoryError. It now resolves the git dir.

Ci-Attestation: {"at":1794207521,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["be7c5505d81816e7dc62dc079032d495d1ce5217"],"secs":0,"stamp":"519774f72552f467ba968ee8181965aa","tree":"0d4875c3337ee4317df622b9cdd43a9bf9f45e7d","v":1,"via":"run"}
Ci-Attestation: {"at":1794207521,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["be7c5505d81816e7dc62dc079032d495d1ce5217"],"secs":0,"stamp":"90a7a2f0c1ad5edd8ab737683d11e934","tree":"0d4875c3337ee4317df622b9cdd43a9bf9f45e7d","v":1,"via":"run"}
The evidence path was a singleton beside the git dir, so two agents pushing
from one clone overwrote each other's evidence and a slow rung could stamp the
wrong tree's results. It is now <git-dir>/soldr-attest/<sha>.json, created on
demand and pruned to the newest 20 or a week, whichever ends first -- the file
is scratch, the attestation itself lives in the commit message.

Ci-Attestation: {"at":1794207654,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["7d6489beb844e72ecb00387004e3138abbd4a082"],"secs":0,"stamp":"e7ad485f76550a0b2efd85deeab3a6e8","tree":"6838441a19db24bdd61698bc231d26f47e10485c","v":1,"via":"run"}
Ci-Attestation: {"at":1794207654,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["7d6489beb844e72ecb00387004e3138abbd4a082"],"secs":0,"stamp":"8a671eb29455883531f977a76d857bcf","tree":"6838441a19db24bdd61698bc231d26f47e10485c","v":1,"via":"run"}
@zackees
zackees added this pull request to the merge queue Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 9, 2026
@zackees
zackees added this pull request to the merge queue Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Nov 9, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to Ready to merge in obs-rust Multiview Nov 9, 2026
@zackees
zackees merged commit 83d573f into master Nov 9, 2026
38 checks passed
@zackees
zackees deleted the ci/prooft-orchestrates branch November 9, 2026 18:23
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Ready to merge to Done in obs-rust Multiview Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant