Skip to content

docs(source-control): cut restated upstream behavior to pointers (batch 5, part 2) - #17176

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16839-44324558853-1
Nov 18, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16839-44324558853-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16839

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Each passage this part lists, in the source-control README, the GitHub provider docs, stacked-prs.md and worktree-root-convention.md, now gives this plugin's own rule and its reason, with an anchored pointer in the upstream-drift contract's form ('when <situation>, fetch <link> live'). Those pointers carry no stamp. The one exception is the async merge API's end-status list (merged/enqueued/failed): the poll loop matches on those strings, so under the contract they are a stored value and keep their As of and Recheck trigger. One design choice: the gate rule after a CLI merge stays in the babysit-prs spoke, since the provider file's preamble says the spoke owns every rule. The provider section now lists only the queue fields and points upstream, and the spoke's closing record is reworded to point there instead of claiming a date and trigger.

Not verified

  • Review low findings left out of scope, since they fall outside the listed passages and belong to the parent's other parts: skills/babysit-prs/SKILL.md:266 still restates 'a draft cannot merge until it is marked ready'; skills/babysit-prs/reference/safety.md:764-765 still restates gh pr merge queue…
  • The new external anchors (#adding-a-pull-request-to-a-merge-queue, #understanding-why-your-pull-request-was-removed-from-the-merge-queue, #marking-a-pull-request-as-ready-for-review) come from page headings in GitHub's slug form and were not resolved as anchors here; lychee-online-changed in the…
  • check-affected skipped typos (not installed), comment-hygiene (its fetch failed in the sandbox), three validate-plugins sub-checks and changed-skills (they run code from the checked tree); the PR's CI runs them.
  • Tidy pass 5: the ai-slop deterministic detector (detect.sh) did not run because the lane's Bash allows only the named wrappers. The listed lines got only the rubric read by hand, which found nothing. Edits made after tidy, from the review fixes, were not re-tidied. Passes 1-3 had nothing to do…

Fix

  • plugins/source-control/README.md: worktree-remove-gate paragraph states that the hook does not handle subagent/workflow-agent worktrees and cleanup removes them, with a pointer to hooks#worktreeremove; the Node.js requirement says to install node yourself, with a pointer to…
  • plugins/source-control/reference/providers/github/README.md: 'Sandboxed sessions' gives our rule (treat GraphQL as unavailable, take the REST route, leave the token, since the refusal is the proxy's) plus a pointer, dropping the restated 403 and its stamp; 'Draft stage' becomes 'mark a draft ready…
  • plugins/source-control/reference/providers/github/pull-request/create.md: 'Issue state over REST' links the provider README section and points to the cloud-environments GitHub proxy section, dropping the restated 403 and its stamp; the REST field-shape stored value keeps its stamp.
  • plugins/source-control/reference/providers/github/babysit-prs/safety.md: 'A CLI merge the queue took' drops the restated gh pr merge behavior and the 'Claim, basis' block for the queue-field list plus anchored pointers (merge-queue add and removal sections, gh manual, PullRequest object).
  • plugins/source-control/reference/providers/github/pull-request/merge.md: Async merge API states the rule for a 409 (poll the pending request's uuid, send no other) and the end statuses the poll stops on, as a stored value with pointer, As of and Recheck trigger; the Confirm queue entry pointer…
  • plugins/source-control/reference/stacked-prs.md: Merge bullets restated as our rules (treat a layer's merge as merging the layers below, never the synchronous endpoint since it cannot merge a stack, check every landing layer against the trunk's branch rules, treat layers above as not ready after a…
  • plugins/source-control/reference/worktree-root-convention.md: drops the restated 'lands in the in-repo default' and says this plugin treats the name form's destination as in-repo, which the nesting invariant forbids; the pointers are now in the contract form.
  • plugins/source-control/skills/babysit-prs/reference/safety.md: the closing record for CLI merge-queue behavior becomes a pointer to the provider file and no longer claims a date and recheck trigger that file no longer carries.
  • .changes/source-control/work-resolve-issue-issue-16839-44324558853-1-f8a4f8b3.md: new patch fragment for source-control.

Verification

The runner ran each check from the base copy against 2b1ccf1:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • read https: //code.claude.com/docs/en/setup: no Node.js in System requirements; the npm section says the installed native binary does not use Node at runtime
  • read https: //code.claude.com/docs/en/cloud-environments#github-proxy: the proxy rejects GraphQL with a 403 that names the REST fallback, whatever credentials are supplied
  • read https: //code.claude.com/docs/en/worktrees: 'Ask Claude to create a worktree' and 'Replace worktree creation with a hook' sections exist; EnterWorktree works under .claude/worktrees/
  • read https: //code.claude.com/docs/en/hooks: WorktreeRemove fires when a worktree a WorktreeCreate hook created is removed; #worktreeremove is the in-page anchor (page truncated before the section itself)
  • read https: //docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request: no one can merge until the PR is marked ready; headings include 'Marking a pull request as ready for review'
  • read https: //docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/merging-a-pull-request-with-a-merge-queue: gh pr merge adds to a required queue if checks passed, else enables auto-merge; headings include 'Adding a pull request to a merge…
  • read https: //docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue: says who can add a PR to the queue and when, and does not mention the merge button or auto-merge, so the pointer moved to the 'Adding a pull…
  • read https: //docs.github.com/en/rest/pulls/pulls?apiVersion=2026-03-10#merge-a-pull-request-asynchronously: a 409 returns the existing request's UUID; statuses pending/merged/enqueued/failed; the synchronous endpoint does not support stacked PRs
  • read https: //docs.github.com/en/pull-requests/get-started/about-stacked-prs: merging a layer brings every PR below it; the bottom PR's base sets requirements for every layer; layers above stay open and re-target
  • check-changelog-fragments: all 3 fragments valid (run before and after tidy and after review fixes)
  • check-changed-skills: babysit-prs PASS, 0 errors, 4 warnings, all on the unchanged SKILL.md's size, description length and procedure
  • check-affected: 14 passed, 8 skipped over 9 changed files
  • fresh-context review subagent over the whole diff: no high findings; fixed medium findings 1-6 and low findings 7, 9, 10 (provider-file pointer labels), 11, 12 and 14
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44324558853

Left out: the items under Not verified.

Related

#16839

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 2b1ccf1ea7e2252a7f76fec9274e68ff979cc2c0: read 9 of 9 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17176

No security issues found. I read all 9 changed files in full in .claude-lane/pr.diff.

The change only edits documentation. Passages in the source-control plugin's README, the GitHub provider references, stacked-prs.md, worktree-root-convention.md and the babysit-prs reference/safety.md that repeated upstream Claude Code or GitHub docs now state the plugin's own rule with a link to the upstream page. It also adds a changelog fragment. The diff touches no scripts, hooks, workflows, manifests, trust-control files or userConfig keys. No changed file matches a TRUSTED PATHS glob: the babysit-prs entries there cover only its scripts/ modules, not reference/safety.md.

Instruction-surface lens. I checked each removed or reworded instruction for a lost guardrail:

  • Stack merges (stacked-prs.md): the line "the trunk's rules govern every layer … a stack merge cannot bypass them" was a statement of how GitHub behaves. It is now an instruction to check every landing layer against rules/branches/<trunk> and to treat the stack as still merging until its PRs read MERGED. That is tighter than before. The readiness re-check on every landing layer and the user-approval step are unchanged.
  • Synchronous REST merge endpoint: the note that it does not support stacks is now "never the synchronous REST merge endpoint". Same restriction, stated as a rule.
  • Sandboxed sessions (provider README.md, create.md): the guidance not to re-authenticate is kept ("leave the token as it is"), and the REST fallback is still the named route. No credential handling was loosened.
  • Async merge API (merge.md): the 409 handling now says to poll the pending request and send no other, which is stricter. The end statuses are unchanged.
  • EnterWorktree(name:) (worktree-root-convention.md): the skill is still forbidden from calling the name form, and the WorktreeCreate hook still covers harness-driven creation.
  • worktree-remove-gate (plugin README.md): only how the subagent and workflow-agent worktree note is worded changed. Hook behaviour is unchanged.

No rule that the change deletes or softens leaves an action unchecked. I did not read the instruction exception register's file from the checkout; I judged each change by what breaks without it.

PR context. The description and the closing issue contain no embedded directives aimed at this lane.

Prior findings. None. This is the first review of this pull request, so it is not blocking-only.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 2b1ccf1ea7e2252a7f76fec9274e68ff979cc2c0: read 9 of 9 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #17176 (head 2b1ccf1)

No findings. I read every hunk of all 9 changed files. The PR changes only documentation: one changelog fragment and eight Markdown files under plugins/source-control/.

Closing issue #16839. Both done-when items are met:

  • Source-control README and the GitHub provider docs (README.md, create.md, babysit-prs/safety.md, merge.md): each passage that restated upstream behavior now states this plugin's own rule. Its pointer has a section anchor and the situation in which to fetch it.
  • stacked-prs.md and worktree-root-convention.md: the same rewrite.

The one stored value kept is the async merge API's end-status list (merged/enqueued/failed), which the poll loop matches on. It keeps its As of date and Recheck trigger, as .claude/rules/skill-bodies-state-current-rules.md requires. No test can check prose cut to pointers, so no test gap is reported for these criteria.

Cross-references checked:

  • create.md links to ../README.md#sandboxed-sessions-graphql-is-unavailable. That slug matches the unchanged heading.
  • The anchor #a-cli-merge-the-queue-took is still a heading in the provider safety.md. Its callers still resolve: providers/github/babysit-prs/orchestration.md:7, skills/babysit-prs/reference/orchestration.md:411 and skills/babysit-prs/reference/safety.md:765,817.

Pointer with no claim behind it. The provider section no longer states the gh pr merge queue behavior. The unchanged line skills/babysit-prs/reference/safety.md#L764-L765 still cites that section for the behavior. The section now reaches the behavior only through its upstream pointers. The PR body's "Not verified" list names this as left for a later part of the parent issue (#15513), so it is not reported here.

Unverified items:

  • I did not resolve the new external anchors on GitHub's docs pages: #adding-a-pull-request-to-a-merge-queue, #understanding-why-your-pull-request-was-removed-from-the-merge-queue and #marking-a-pull-request-as-ready-for-review. They are left to the PR's link check.
  • The upstream-page readings in the PR body are the author's claims; I did not re-check them.

Criteria applied:

  • Path-scoped rules: skill-bodies-state-current-rules.md covers skills/babysit-prs/reference/safety.md, and its changed lines are a pointer that meets the rule. cost-claims.md covers the reference/** files, which make no cost claims.
  • Loosened checks: no check is loosened. The diff changes no test, lint, CI or check settings.
  • Manifests: no plugin manifest changed. The fragment's bump: patch fits a docs-only change.

Loosened-check verdict: fail (default; the wrapper supplied no loosened_check_verdict: line); patterns: 0

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 2b1ccf1ea7e2252a7f76fec9274e68ff979cc2c0, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 2b1ccf1

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-17176-2b1ccf1ea7e2252a7f76fec9274e68ff979cc2c0, expires on 2026-12-18.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=2b1ccf1ea7e2252a7f76fec9274e68ff979cc2c0 rubric=10.3.3 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit dadf10a Nov 18, 2026
56 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16839-44324558853-1 branch November 18, 2026 16:56
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit dadf10ad1eef50a063bc25ec89229f126fbb29b8; later checks count it verified from this comment.

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.

docs: cut restated upstream behavior left by the stamp sweep (batch 5) - part 2 of 5

0 participants