Skip to content

tutorial: recovering a conflicted PR with /uf.rebase-pr (issue #851 workflow) #855

Open

Description

@jflowers

Audience: PR authors and maintainers facing a PR whose head
branch conflicts with its base (GitHub reports "This branch
has conflicts that must be resolved").

Structure: (1) recognize the conflicted-PR symptom and confirm
the PR number, (2) invoke /uf.rebase-pr <PR_NUMBER> and
follow the argument pre-validation contract, (3) the gating
checks — PR exists, is open, head branch and remotes resolved
never assumed, (4) local checkout and rebase onto the fetched
base, (5) the conflict-resolution phase — conflicts-only
edits, the no-guessing rule, and the clean backout via
git_rebase_abort, (6) the push phase —
git_push_force_with_lease semantics, the head-branch-only
rule, and why the base branch is never pushed, (7)
verification — re-checking the PR's mergeable state with gh
before declaring success.

Prerequisites: a conflicted PR with a recoverable head branch;
gh authentication; the six-phase command contract in
.opencode/commands/uf.rebase-pr.md.

Spec: openspec/changes/port-uf-rebase-pr/. Context: #851.

Activity

  1. added
    tutorial
    on Oct 28, 2026
  2. added
    enhancement
    on Nov 1, 2026
  3. jflowers commented on Nov 1, 2026

    @jflowers
    ContributorAuthor

    Divisor Triage: VALID — enhancement

    The Divisor review panel assessed this issue and classified it as VALID, category enhancement, objectivity objective. The vote was unanimous: 5 of 5 personas returned VALID, with no dissent.

    Classification basis

    The request is actionable as filed, and every artifact it references exists in the repository:

    • /uf.rebase-pr is a shipped, user-facing command — the AGENTS.md PR Review Commands table lists it as "Rebase a conflicted PR's head branch onto its base" — with its six-phase contract at .opencode/commands/uf.rebase-pr.md.
    • The spec anchor openspec/changes/port-uf-rebase-pr/ exists and records originating issue uf.rebase-pr: port global resolve-branch-conflict command (rebase conflicted PR head onto base) #851, matching this issue's context line.
    • The seven-part outline maps one-to-one onto the command contract: argument pre-validation, gating checks (head branch and remotes resolved, never assumed), local checkout and rebase onto the fetched base, conflicts-only resolution with the no-guessing rule and the git_rebase_abort clean backout, git_push_force_with_lease push semantics with the head-branch-only rule (the base branch is never pushed), and gh mergeable-state verification. No contract phase is omitted and none is invented.
    • Every tool named in the outline exists in the toolchain, so the tutorial documents shipped behavior rather than aspiration.

    The category is enhancement rather than feature because the command and its reference documentation already exist; the tutorial adds new user-facing educational content on top of an existing workflow.

    Similar issue — not a duplicate

    The duplicate search surfaced #856 ("docs: /uf.rebase-pr ported command (port-uf-rebase-pr)") through title-keyword fallback only; the primary semantic search returned no matches. The panel judges the two issues complementary rather than duplicate: #856 tracks the documentation-gate deliverable (command reference for the port), while this issue requests an audience-scoped, task-oriented walkthrough of the conflicted-PR recovery workflow. Different deliverables, different primary audiences.

    Recommendations

    • Apply the enhancement label.
    • Cross-reference this issue with docs: /uf.rebase-pr ported command (port-uf-rebase-pr) #856 so the tutorial cites the command reference rather than restating it, keeping the two efforts from producing overlapping prose.
    • Sequence the tutorial after the port-uf-rebase-pr change completes; the issue's spec anchor already supports that ordering.
    • Confirm final placement (repository docs/ versus the website) at authoring time, in coordination with docs: /uf.rebase-pr ported command (port-uf-rebase-pr) #856.
    • Documentation-only work routes through the quick tier (quick/<name> branch via /uf.unleash); no spec workflow is required.

    This triage was performed by the Divisor review panel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementtutorial

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions