Repository navigation
Say What a Refused Lease Push Means on the Dirty Branch - #4384
Conversation
The dirty-branch rebase chain in upstream-contribution-workflow ended in a force-with-lease push with no word on a refusal. It now says a refusal means the fork's branch moved, and has the reader re-fetch, compare against the old head, and stop to ask rather than retry. Step 5's refused-lease sentence now names the clean branch it covers. audit-a-repo's cleanup call now notes that its fixed primary-clone path is the convention layout, as drive-pr already does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The left-right list now says which failure happened: a commit the fork gained, a local commit it never held, or a push that failed for another reason. The paragraph names the unpinned lease after a fetch as the retry that overwrites, and covers a lease push the fork does not allow. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
A recorded local strict-review pass covers head |
There was a problem hiding this comment.
🟡 Changes recommended
Active findings remain in the contribution workflow documentation, including a moderate issue where fetch failures can lead to stale fork comparisons and two wording problems that must be corrected.
3 open issues
What changed in this PR
This PR clarifies recovery after a refused dirty-branch lease push and documents the configurable checkout path used by audit cleanup.
Changes:
- Distinguishes clean-branch lease failures from dirty-branch failures.
- Adds dirty-branch comparison and maintainer-escalation guidance after lease push failures.
- Documents the convention checkout path and regenerates derived skill distributions and source digests.
| File | Description |
|---|---|
| .github/skills/upstream-contribution-workflow/SKILL.md | Generated GitHub skill distribution for the upstream contribution workflow guidance. |
| .github/skills/audit-a-repo/SKILL.md | Generated GitHub skill distribution documenting the configurable audit checkout path. |
| .claude-plugin/fleet-skills/skills/upstream-contribution-workflow/SKILL.md | Generated Claude skill distribution for the upstream contribution workflow guidance. |
| .claude-plugin/fleet-skills/skills/audit-a-repo/SKILL.md | Generated Claude skill distribution documenting the configurable audit checkout path. |
| .claude-plugin/fleet-skills/.source-digests/upstream-contribution-workflow | Updated source digest for the regenerated upstream contribution workflow skill. |
| .claude-plugin/fleet-skills/.source-digests/audit-a-repo | Updated source digest for the regenerated audit skill. |
| .agents/skills/upstream-contribution-workflow/SKILL.md | Adds canonical dirty-branch lease-push recovery and clean-branch clarification guidance. |
| .agents/skills/audit-a-repo/SKILL.md | Documents the convention checkout path and migration alternative for audit cleanup. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4384 +/- ##
===========================================
- Coverage 81.60% 79.35% -2.26%
===========================================
Files 26 45 +19
Lines 9070 16046 +6976
===========================================
+ Hits 7402 12734 +5332
- Misses 1668 3312 +1644
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
|
/review |
Action not completed
|
…ng History A failed fetch leaves origin/work/x stale, so the reader now stops there rather than comparing. A `<` entry now names a commit the fork's branch lacks now, which a reset can cause as well as an unpushed commit. The long comparison sentence is split. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
…, Shared Run Deadline, and Second-Shell Paste-Safe (#4388) Promotes the ten pull requests that landed on develop since the last promotion: backlog burndown round 5, plus #4374 and #4376. - #4374: Quote the last paste-safe placeholders and run the check in the local block (the #1615 remainder). - #4376: Declare host-secrets for HomeAutomation-Config in the registry. - #4378: GOVERNANCE.md "Verification Discipline" requires the whole test suite before every push. The Husky hook bullet says it passes the staged paths to the prose gate. The `pr-review-conduct` Merge Gate names the rate-limit `success` check trap, the only part of #1298 kept per the maintainer's 2026-11-23 answer. - #4379: `validate-task.yml` fails a promotion when main's first-parent chain since the previous promotion holds a single-parent commit, an accidental squash into main. The conflicted-promotion cut and the squash recovery are documented in `branching-and-release-model`, and `drive-pr` points at them. - #4380: `canonical_review.py record` binds each unit's pass to the reviewer's written report rather than a typed `--findings` count. - #4381: Every argument refusal in the `host-setup/linux` scripts exits 64 through `die_usage`, and an EXIT trap maps a stray 64 to 1. The contract is stated in CODESTYLE.md "Command-Line Arguments". - #4382: The prose gate's `paste-safe` rule reads the string handed to `su`/`runuser -c`, a POSIX shell's `-c`, and `ssh`. This edits `host-setup/agent-safety/README.md` (two example loops only), which the maintainer approved and merged on 2026-11-24. - #4384: `upstream-contribution-workflow` says what a refused lease push on the dirty branch means. `audit-a-repo` carries the convention-layout note on its `--checkout` path. - #4385: Every timed captured run in the review and install tooling goes through one shared `scripts/run_deadline.py`, so a captured timeout holds its deadline on Windows. - #4386: The canonical `.editorconfig` sets every IDE code-style rule to `warning`, per the maintainer's strictest-defaults answer, and the `dotnet-codestyle` skill now agrees with the rules it enforces. ## Owed by the maintainer before rollout - A fleet resync is owed, because carried text changed: GOVERNANCE.md, CODESTYLE.md, `.editorconfig`, the reusable `validate-task.yml`, and several skills. - Every carrying C# repository has to fix its code at its next `.editorconfig` resync (#4386). The rules likely to fire most are IDE0058, IDE0046, IDE0210, IDE0290 and IDE0047/IDE0048. - HomeAutomation-Config#1466 can adopt the exit-64 contract once this is released. - #4379 keeps the `048a442f` floor your decision named, but the walk always stops at a later promotion merge, so the floor is never reached. Whether to drop it is your call. Fixes #1615 Fixes #2280 Fixes #3820 Fixes #1298 Fixes #2510 Fixes #4373 Fixes #3804 Fixes #3605 Fixes #4375 Fixes #4345 Fixes #3854 Fixes #1842 🤖 Generated with [Claude Code](https://claude.com/claude-code)


Summary
upstream-contribution-workflow: the dirty-branch rebase chain now says what a failed or disallowed--force-with-leasepush means and what comes next. The reader re-fetches, stopping if the fetch fails, and lists the fork's branch against the old head, read back from the backup branch. A>entry means the fork moved under the reader,<entries alone mean old-head commits the fork's branch lacks now, and an empty list means another cause. Whatever the list shows, the reader stops to ask the maintainer and pushes nothing meanwhile. The text names the unpinned lease after a fetch, and a bare--force, as the pushes that would overwrite. A fresh pull request from a new dirty branch is ruled out, since that drops the iteration log.audit-a-repo: the cleanup call's fixed--checkout ~/repos/ProjectTemplatenow carries the same notedrive-prgives beside its own--checkout. That path is the convention layout, and a machine not yet migrated passes its actual primary clone instead. This gap has no issue of its own..github/skills/and.claude-plugin/withscripts/build_dist.py.Closes on promotion: #4345
🤖 Generated with Claude Code