From 1344eb515e3e68ec0099fb37cd4f101f6ebe65d1 Mon Sep 17 00:00:00 2001 From: os-justin Date: Thu, 17 Sep 2026 12:58:35 +0000 Subject: [PATCH] =?UTF-8?q?docs(agents):=20the=20PR=20body=20is=20the=20de?= =?UTF-8?q?v's=20one=20body=20write=20=E2=80=94=20a=20later=20correction?= =?UTF-8?q?=20is=20the=20seat's=20PATCH,=20and=20the=20Clause-=E2=91=A1=20?= =?UTF-8?q?line=20rides=20the=20create?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The four-write budget stays four. What changes is where the two body-scoped demands are met: the `Clause-②:` line the `Check Changeset` gate reads out of the PR body is copied from the claim comment into the body at creation, so the one `POST /pulls` already in budget carries it; and any body correction needed afterwards — a gate remedy, a mid-task correction, a truncated body — is named in the report and written by the seat, never `PATCH`ed by the dev. A write that did cross the budget is listed in `api_writes` with its reason, never omitted. Line-neutral (403 / 403): the two added rules are paid by two deletions — the `立不成 ⇒ …` line (its only live clause, never drop a finding silently, is folded into the finding rule; the rest was dead once the dev stopped filing) and the comment-footer reading that duplicated AGENTS.md's issue-comment paragraph, which this file already routes the reader to. Claude-Session: https://claude.ai/code/session_01Gqi43smmqjJ5sUrhfoPeKu Co-authored-by: Claude --- .claude/agents/os-dev.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.claude/agents/os-dev.md b/.claude/agents/os-dev.md index ff5e742d5dd..eea00036194 100644 --- a/.claude/agents/os-dev.md +++ b/.claude/agents/os-dev.md @@ -52,10 +52,10 @@ model: opus - 写预算四笔:`git push`、一次 `POST /pulls`(draft)、`POST /issues/{n}/labels`、`os-dev-report` 评论。 - ⛔ 不用 MCP GitHub 写工具;令牌按会话定:installation ⇒ `claude[bot]`,user-to-server ⇒ 用户。 - 卡与线程只走 payload 档(公开仓单卡网页内嵌 JSON,拼写住 platform-readings)或单卡 REST 读。 - - 三类发现附查重词进报告交席位代立,dev 不 `POST /issues`;预算外零写,⛔ 不 `PATCH` 正文。 + - 三类发现附查重词进报告交席位代立,dev 不 `POST /issues`、⛔ 不静默弃报;预算外零写。 + - PR 正文 dev 只写一次,在开 PR 那一笔,⛔ 不 `PATCH`;事后要改的报告点名改法,席位代写。 - 通道对照表见 `.claude/skills/pm-dispatch/references/rest-channel.md`,其 ✓ 按座位实测。 - - 报告记 `api_writes`(次数 + 端点清单)与 `mcp_calls`(MCP GitHub 调用计数),席位对照预算核验。 - - 立不成 ⇒ 发现连同缘由写进报告交 PM 代立;⛔ 不查重硬立与静默弃报同为禁形。 + - 报告记 `api_writes`(次数 + 端点清单)与 `mcp_calls`;越界真写了的照列注明缘由,⛔ 不漏记。 - PM 的去重读数随派发词下发,当既有事实用,只复核其后增量,⛔ 不重跑。 - 归挂不散落:落在已排队 issue 完成范围内的发现,立成它的 sub-issue(自动进派发池)。 - 只是依赖它的,独立立单带一行 `Blocked-by:`;立在修复落地的仓,带回链。 @@ -275,6 +275,7 @@ model: opus - 分区 pin `test/vitest-tiers-partition.test.ts` 在某个测试文件两层皆无或皆有时变红。 - 用 `git push -u origin claude/issue--` 推上去,网络失败退避重试;pre-push 拒卡片 trailer。 - Draft PR 指向 `main`,正文首行 `Fixes #`;合并不应关卡时用 `Part of #`,并说明留下哪一半。 +- 正文行首照抄认领的 `Clause-②:` 行:`Check Changeset` 读正文不读卡,开 PR 那一笔就带上。 - ⛔ 永不 `Fixes` 一张还在决策箱的卡:合并会静默关掉它,而收件箱过滤只读 open。 - ⛔ 不写否定式的关单句,它照样关掉点名的卡:解析器无视否定,只匹配关键词 + `#`。 - 关键词是 `fix/fixes/fixed/close/closes/closed` 与 `resolve/resolves/resolved`;让它们远离其它卡号。 @@ -399,5 +400,4 @@ _Generated by [Claude Code](https://claude.ai/code/session_)_ ← session- ``` - 页脚形态随通道(MCP / REST)与动作(建 / 改)变,⛔ 不由一条推其余;发你要存的,写后必回读。 -- 评论通路 MCP 与 REST 同判:整块原样存活,缺规则线则不认、再落整块留两个。 - 耐久归属写进正文散文或评论,⛔ 不循环重贴页脚;完整读数住 AGENTS.md 同条。