Repository navigation
fix(push): lease publication of an exact-head re-stamp - #4904
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 16, 2026 19:23
zackees
enabled auto-merge
November 16, 2026 19:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
./pushstamps 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:
81db81562badb1356991094667f8909d7727c61f:clud tool run diagnostics/test_report.py -- uv run --no-project python ci/tests/test_push_rungs.py RestampPublicationexited 1, with three failures across seven cases: unchanged remote re-stamp rejected, plain-push diagnostic missing, exact lease missing during the publication race.uv run --no-project python ci/tests/test_push_rungs.pysuite 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:
./pushexited 0 in 751.97 s and published signed HEADccb197430616cc2a4f780f88d4a591a3481b9be5(local HEAD, remote ref and PR head agree; signatureG). It selectednew remote branch; plain push. Complete selected non-Swift client evidence was produced: 19Ci-Attestationrecords plus oneClient-Checksreceipt, 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-swiftexited 75 becauseswift-formatis 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.