Skip to content

Commit b069bd2

Browse files
committed
docs(agents): a dispatched dev's pr_create carries the claim Account as PR assignee
AGENTS.md (Multi-agent, the dispatched executor) and the fleet-write relay's pr_create commentary still said a dev's pr_create carries no assignee. Ruling A (record 6674390671, landed by PR #30796) and .claude/agents/os-dev.md rule 2 put the claim's Account: on the PR through pr_create; the card's assignee stays the PM's and hand-over stays the seat's. Comments and prose only; AGENTS.md keeps its line count. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J8VVAm38fJUP5TCBNAD8RY
1 parent 7c523aa commit b069bd2

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ a PM dispatch sets the assignee (step 1) and posts the `Claim:` naming the dev's
400400
both on the dev's behalf. A dispatched executor inherits both records: it verifies that the
401401
newest `Claim:` names its branch (on a mismatch it stops and reports), posts no second claim —
402402
the dispatch's `Claim:` is its identity and its own record is the report comment — and it ⛔ never
403-
writes the card's assignee (nor the PR's: `pr_create` carries none; the seat sets it at hand-over,
403+
writes the card's assignee (the PR's is the claim's `Account:`, carried by `pr_create`; hand-over is the seat's,
404404
`.claude/agents/os-dev.md` rule 2) and ⛔ never yields a card it was dispatched to. Before writing code, re-read
405405
the comments — the comments decide, not the field: a `Claim:` from another session or branch
406406
(other than the dispatch that sent you) means taken whatever the field says — pick another or

‎scripts/pm/fleet-write/ops.mjs‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@
122122
* author (pm-dispatch SKILL.md, ACCEPT 之后的路径分叉 ③). The maintainer,
123123
* verbatim: 「应该是开发完了你审核通过才会推送给我审核」. So the draft open
124124
* summons nobody: a `pr_create` is the create plus the legs the caller spelled,
125-
* nothing reads the pull's files there, and a dev's `pr_create` carries no
126-
* `assignees` at all — the seat's own account is never assigned to or
127-
* requested on a pull. The one follow-up left is `pr_ready`. The platform
125+
* nothing reads the pull's files there, and a dev's `pr_create` carries the
126+
* claim's `Account:` as its `assignees` (ruling A on #29828, os-dev.md rule 2;
127+
* hand-over is the seat's) — the seat's own account is never requested on a
128+
* pull as a reviewer. The one follow-up left is `pr_ready`. The platform
128129
* summons a code owner only when a pull is opened READY or marked ready for
129130
* review — measured on this repository's own Tier H pulls, the CODEOWNERS
130131
* request arrived at `ready_for_review` and never at the draft create — and a
@@ -2122,7 +2123,7 @@ export const OPS = Object.freeze({
21222123
optional: Object.freeze(['body', 'assignees', 'labels']),
21232124
// ⛔ No `governedReview` here (header: "The governed-review follow-up"): the draft open summons nobody. A human
21242125
// sees the pull at the seat's hand-off — `pr_request_reviewers` after ACCEPT + a same-head PASS — and a dev's
2125-
// create carries no `assignees`; the leg stays for the author-is-approver fallback, never for a seat's account.
2126+
// create carries the claim's `Account:` as `assignees` (ruling A on #29828); never a reviewer request on the seat.
21262127
// `draft: true` is FORCED — a seat cannot open a ready PR through the relay.
21272128
requests: (a, repo) => [
21282129
{ verb: 'POST', path: `/repos/${repo}/pulls`, body: { title: a.title, head: a.head, base: a.base, ...('body' in a ? { body: a.body } : {}), draft: true } },

0 commit comments

Comments
 (0)