Skip to content

Say What a Refused Lease Push Means on the Dirty Branch - #4384

Merged
ptr727 merged 3 commits into
developfrom
burndown/lease-refusal-and-audit-checkout
Nov 24, 2026
Merged

ptr727 merged 3 commits into
developfrom
burndown/lease-refusal-and-audit-checkout

Conversation

@ptr727

@ptr727 ptr727 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • upstream-contribution-workflow: the dirty-branch rebase chain now says what a failed or disallowed --force-with-lease push 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.
  • Step 5's refused-lease sentence now names the clean branch, and points the dirty branch at the new guidance.
  • audit-a-repo: the cleanup call's fixed --checkout ~/repos/ProjectTemplate now carries the same note drive-pr gives 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.
  • Regenerated .github/skills/ and .claude-plugin/ with scripts/build_dist.py.

Closes on promotion: #4345

🤖 Generated with Claude Code

ptr727 and others added 2 commits November 23, 2026 17:26
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]>
Copilot AI lite review requested due to automatic review settings November 24, 2026 01:30
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 26590c0ffeeab2e69959c3c0d63cd8d2f7f76acf, the content this pull request carries at that commit against develop, and it recorded 0 findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.35%. Comparing base (b38e084) to head (c43c853).
⚠️ Report is 313 commits behind head on develop.

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     
Flag Coverage Δ
python-3.13 79.35% <ø> (-2.26%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

…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]>
@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head c43c853c97cce694b2d870c0e73c54094130f038, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit 11d4a38 into develop Nov 24, 2026
14 checks passed
@ptr727
ptr727 deleted the burndown/lease-refusal-and-audit-checkout branch November 24, 2026 02:04
ptr727 added a commit that referenced this pull request Nov 24, 2026
…, 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants