Uh oh!
There was an error while loading. Please reload this page.
docs(pm-dispatch): fast-forward the local checkout before dispatching a subagent batch - #8157
Merged
Merged
Conversation
…agent batch Subagent-mode dispatches run inside the PM's own container and load agent definitions and skill text from the local checkout, not origin/main. Add a short dedicated block to the dispatch runbook (reference file only; SKILL.md stays at its ratchet ceiling): before dispatching a subagent batch, run git -C <repo-root> pull --ff-only origin main (or verify HEAD equals origin/main), so a stale checkout cannot hand the whole batch outdated definitions; --ff-only makes a dirty or diverged checkout fail loudly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01139NJ9Wg5pFeZi1Zh8WLg6
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
os-zhuang
marked this pull request as ready for review
August 13, 2026 08:32
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Fixes#8068
What
Adds one short dedicated block to
.claude/skills/pm-dispatch/references/dispatch-runbook.md, telling the PM to fast-forward the local checkout before dispatching a subagent batch:REPO_ROOThere stands in for the angle-bracket repo-root placeholder used in the file itself — the GitHub body sanitizer strips angle-bracket spans at rest (verified on this PR's first stored body, and it is also how the issue's own quoted command lost its token), so this body avoids the literal spelling. The diff carries the exact text.(Or verify
HEADequalsorigin/main.) Subagent-mode dispatches run inside the PM's own container and load agent definitions and skill text from the local checkout, notorigin/main— a stale checkout hands every subagent in the batch outdated definitions (measured same-day: after the os-dev definition rewrite had merged, a container checkout was still on the pre-rewrite commit and the first batch loaded the old definition).--ff-onlymakes a dirty or diverged checkout fail loudly instead of merging silently.Placement and premise verification
SKILL.mdis untouched (it sits at its shrink-only ratchet ceiling, 686/686, headroom 0).origin/main(a0151e9, post same-day skills-tree churn): no ff-only / fast-forward / 快进 guidance existed anywhere under.claude/skills/pm-dispatch/, and the runbook has no subagent-mode dispatch-steps subsection — the subagent-mode material lives in the cloud-card section's scope/trade-off paragraph. The new block sits as its own heading immediately after that section, where a PM doing a subagent dispatch will see it. Premise holds.check:pm-skill-id-lint).Verification
All six gate families named at dispatch, run locally on the final content; a re-derivation via
node scripts/pm/dispatch-gates.mjsagainst the actual changed path surfaced exactly the same six — no additions.pnpm check:doc-authoring— 375 files cleanpnpm --filter @objectstack/lint run check:doc-formula-expressions— clean (after building the lint package's dependency closure — fresh-worktree dist trap; first run failed on the missing@objectstack/formuladist, not on the change)pnpm check:nul-bytes— 7422 text files, no raw control bytespnpm check:pm-skill-id-lint— 9 files cleanpnpm check:pm-skill-ratchet— SKILL.md 686 lines (ceiling 686; headroom 0)pnpm check:skill-frame-sync— 4 copies of the decision frame structurally isomorphic across 3 filesNotes for review
.claude/skills/pm-dispatch/**): this PR stays draft — maintainer reviews and merges by hand. No auto-merge, no merge queue.Generated by Claude Code