Repository navigation
Commit 81e12e1
docs(agents): os-dev.md — the Clause-② copy line is conditional on the claim carrying one (#19305)
Fixes #19096
Clause-②: no
## What changed
One line of `.claude/agents/os-dev.md` (:279), rewritten in place. Net 0
lines (403 / 403, headroom 0); the new line is exactly 120 bytes, the
file's `MAX_LINE_BYTES` cap. No other line of the file moved.
Before (`4efb988`, verbatim):
> - 正文行首照抄认领的 `Clause-②:` 行:`Check Changeset` 读正文不读卡,开 PR 那一笔就带上。
After (`fba3bb3`, verbatim):
> - 认领带 `Clause-②:` 行才照抄进正文行首:`Check Changeset` 读正文不读卡;无则零写,⛔ 不自造。
## Why
The old line told every dispatched dev, unconditionally, to copy the
claim's `Clause-②:` line into the PR body. Both halves are conditional
and the file said so nowhere: a claim may carry no such line (the
clause-② flow is the objectstack dual-carrier mechanism), and the reader
the rationale names does not exist in objectui. A dev following the
unconditional wording either spends a step on a non-existent obligation
or, worse, invents the line, and `Check Changeset` reads the body, so an
invented declaration would be believed.
The shape is the one the card's triage grading points at (an
unconditional clause takes its condition, as :68's landing-repo
precedent does) with the PM's pick between the three named shapes:
condition on the **claim**, not the repository, and name the reader
once, so the line stays true in both repositories without naming either.
Evidence that the claim, not the repo, is the right condition:
`scripts/pm/check-clause2-carriers.mjs`'s own fixtures (:9306–9320 at
`4efb988`) hold objectui claims that carry a `Clause-②:` line (the
objectui 7804 rows, the later objectui 7696 row) and one that carries
none (the first objectui 7696 row). A repo-conditional line would be
false in both directions on that board; a claim-conditional line is true
on every row.
The dropped clause 「开 PR 那一笔就带上」 restates :56 (「PR 正文 dev 只写一次,在开 PR
那一笔,⛔ 不 `PATCH`」), so removing it loses no rule; that is how the added
negative branch (「无则零写,⛔ 不自造」) is paid for inside the same 120-byte
line. No line elsewhere was retired.
## Premise re-verified on the base (`4efb988`, `origin/main` at branch
time)
- :279 reads verbatim as the card quotes; `Clause-②` occurs exactly once
in the file (`grep -c` → 1); `wc -l` → 403.
- The reader that makes the line true is
`scripts/pm/check-clause2-carriers.mjs` (header: 「the dual carrier is
asserted by mechanism」, 「the claim comment SELECTED as the carrier」).
objectui has none, in its own words:
`scripts/check-governed-queue-guard.mjs` :187
「`scripts/pm/check-clause2-carriers.mjs`, and this repository has no
such file」 and :1959 「1 parent 58ac824 commit 81e12e1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
0 commit comments