Skip to content

fix(push): lease publication of an exact-head re-stamp - #4904

Merged
zackees merged 2 commits into
masterfrom
fix/4896-push-restamp
Nov 16, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/4896-push-restamp

Conversation

@zackees

@zackees zackees commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

When ./push stamps and signs an already-published HEAD, Git sees the amended commit as a sibling and rejects the ordinary push. Publish that pure re-stamp with --force-with-lease=<branch>:<pre-stamp SHA> only when the actual push destination still names the exact pre-stamp HEAD and the final tree and ordered parents match. New branches and fast-forward updates retain plain pushes; divergent history, content/parent amendments and concurrent remote updates cannot obtain an unsafe replacement. Each publication reports its case.

Refs #4896 (workstream B).

This PR is explicitly authorized for opening and arming while back pressure is closed: it unblocks the pool's own client-attestation publication path, demonstrated by the failed re-attestation attempts for #4897 and #4899. It does not bypass the required CI gate or merge queue.

Validation:

  • RED 81db81562badb1356991094667f8909d7727c61f: clud tool run diagnostics/test_report.py -- uv run --no-project python ci/tests/test_push_rungs.py RestampPublication exited 1, with three failures across seven cases: unchanged remote re-stamp rejected, plain-push diagnostic missing, exact lease missing during the publication race.
  • GREEN: the full uv run --no-project python ci/tests/test_push_rungs.py suite passes all 40 tests, including nine real temporary-bare-remote cases and the pinned-prooft integration. Added cases cover new publication, exact-head re-stamp, movement after stamping, movement immediately before push, divergent history, changed tree/parents, a separate push URL and ordinary fast-forward fixups.
  • SOLDR_PORCELAIN=0 ./lint: exit 0, lane lint passed in 82.2 s. One full invocation, with a 1,800 s deadline.
  • clud-review: clean; independent focused regression rerun passed all nine cases.

This is Python Git-publication tooling; Rust unit, libobs C ABI, C-oracle differential and WebSocket protocol tiers are unaffected. No C tests, public headers, workflows or plugin sources changed. No runtime feature-ledger entry is required for this CI/tooling fix.

Dogfood publication: ./push exited 0 in 751.97 s and published signed HEAD ccb197430616cc2a4f780f88d4a591a3481b9be5 (local HEAD, remote ref and PR head agree; signature G). It selected new remote branch; plain push. Complete selected non-Swift client evidence was produced: 19 Ci-Attestation records plus one Client-Checks receipt, including six-target clippy and Dylint, full self-tests/validators, host tests and Windows GNU cross-link. The main host suite passed 8,638 tests (six skipped), and the feature variant passed 916. Client lint took 15.4 s; the host/client-test lane took 619.8 s.

Warnings: optional client-swift exited 75 because swift-format is unavailable; no Swift files changed and no Swift evidence was claimed. Soldr warned that the running broker came from a different image; its normal pipeline continued successfully. This trust-surface change remains subject to real selected hosted PR checks and the merge queue.

Refs #4896. Local RED: RestampPublication runs 7 cases with 3 failures: re-stamp publication is rejected, the new-branch case has no publication diagnostic, and the concurrent-publication case has no exact lease.
Capture pre-stamp HEAD and permit a lease only when the actual push remote still names it and the amended tree and ordered parents are unchanged. Preserve plain new-branch and fast-forward publication; refuse unsafe replacements. Refs #4896.

Ci-Attestation: {"at":1794856289,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":89,"stamp":"530ab663c6565ffe0bb07a696ba35062","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856289,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":89,"stamp":"5ecad6c02bbe7d69698ab7a5bfc53cfb","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856289,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":89,"stamp":"c7468bece9a91afd419832ba25fa80e2","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856289,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":89,"stamp":"d25bea5c759c626520b95d8b5230840a","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"general/all/client-lint","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"2222140d02723545c3b61c6e21df0367","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856289,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":89,"stamp":"17767140ceb0d09cde52e819e79e4e42","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"70e70d3bacf377100c07cca4b0888069","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"4d8d5e7a71b1c7d1feaac668cf803f9d","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"8dd452e64b0cc83a05c30b21325c590f","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"30a566052d23a449b3521df1d79db73d","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"2eece7240bebdbe8e5f48cf25753c332","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"a823bb6649d3067f9616e7d748835886","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"f8fc46297ee0dd36b8b8bd6c2c2d7b24","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"9627653042d95c4716df4fae943f5b9f","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"12e675b557e7e6114f19911cc8e10c2b","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"edd2fbca84ba46cdc25991affd5e376d","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"0dd01536bd1b985ff6fcf3ee1e95c3f8","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856198,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"1fde2f12301314e10c301c1847046b892bbb9c401e460726e7701eaf514cd4eb","lane":"client-lint","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":15,"stamp":"a9b977b702f811ae5e77c00d55f56295","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}
Ci-Attestation: {"at":1794856910,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"ed8fc678ac9699f9ca923e37502771958855a2a3ef274664a77894b09a4f6c74","lane":"client-test-x86_64-unknown-linux-gnu","parents":["81db81562badb1356991094667f8909d7727c61f"],"secs":620,"stamp":"3f8f61ad0e3cff955a3d6cf3c966a3d3","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"94fa7ce85868c3604cf8fd31a458a4cf641061c7","coverage":"all-tracked-applicable-files","diff":["ci/tests/test_push_rungs.py","docs/ci-tooling.md","push"],"head":"39431237e386283b55c3f99f9bb60a435f6e77ab","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"7300ff6dc3c0c275a33f756a9786aefd6bc679efcd7c4fe10725eea1ce6b30cd","tree":"439df3745c6c13b427c22f5f1b96bd3d0606fa13"}}
@zackees
zackees marked this pull request as ready for review November 16, 2026 19:23
@zackees
zackees enabled auto-merge November 16, 2026 19:23
@zackees
zackees added this pull request to the merge queue Nov 16, 2026
Merged via the queue into master with commit 4de0552 Nov 16, 2026
42 checks passed
@zackees
zackees deleted the fix/4896-push-restamp branch November 16, 2026 20:29
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