Repository navigation
Commit 4f7aa88
docs(agents): a volatile count nobody acts on is deleted, not synced (#38127)
<!-- claude-projects-attribution: {"github_login":"os-elon-musk"} -->
_Requested by **Elon** · [project
thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DDypKu7B9nwbu5WuV7AEio8)_
Fixes #37887
Clause-②: no
Metadata-protocol: none
## 维护者速读
-
用户无感:开发规范新增一条规矩,会随日常开发变化、又没人据此做事的数字(规则条数、文件数、注册表大小)不写进用户可见输出、文档、技能文字或测试基线;遇到就删掉它,以及唯一作用是让它与注册表相等的检查,其他检查不动;限额、配额、价格这类有人据此做事的数字照留。
-
为什么做:按你的指示把规矩写进开发座位必读的开发规范而非发给客户的技能文档,并先删掉开发规范自己的无用计数,避免再为同步无意义数字误报、被合并队列踢出。
- 出错会怎样:只改规则文字和一处字节上限,不改任何产品代码或运行行为,可直接撤回。
- 要你做什么:批准合并(开发规范是受保护文件)。
## What changes
1. **One rule in `AGENTS.md`**, under Documentation Guardrails right
after the docs-path table (the closest existing rule set; there is no
separate section on user-facing text):
> **Volatile counts are deleted, not synced.** ⛔ Never write into
user-facing output, docs, skills text or a test baseline a count that
ordinary development moves (rules, files, registry entries) unless a
reader acts on it (a limit, quota, price). Meet one: delete it, and any
check whose only job is keeping it equal to a registry (its PR cites
this rule, not the duplicate pin a test deletion needs); never update
either.
Only the meaningless count and a check whose sole job is keeping it
equal to a registry are deleted. The parenthesis names the precedence
over the Build & Test rule that a test is deleted only when its PR names
a duplicate pinning the assertion (ruling record 6120820653): a
count-sync check is the exception, and its PR cites this rule instead.
2. **The rule applied to `AGENTS.md` itself** — volatile counts deleted,
sentences reworded only as needed, no rule or gate removed:
- Translations row: `(nine packages — platform-objects, five plugins,
three services)` dropped; "Regenerate all nine" → "Regenerate them all";
"gates all nine in CI" → "gates them all in CI".
- Spec artifacts: "`packages/spec` has **six** checked-in generated
artifacts, each with its own CI gate" → "Each checked-in generated
artifact of `packages/spec` has its own CI gate".
- Route and surface ownership: "Five rules. They matter more…" → "These
rules matter more…"; its closed-query-set item: "Three things to get
right:" → "Get these right:".
- Build & Test: "Three principles the ratchet's invariants encode:" →
"Principles the ratchet's invariants encode:".
- Prime Directive 11: "Two PreToolUse hooks **enforce** this" →
"PreToolUse hooks **enforce** this"; "the third hook" → "another hook".
- Commit-message attribution: "Two exemptions:" → "Exemptions:".
- Merge queue §7: "**Three classes of PR never enter this path…**" →
"**These classes of PR never enter this path…**".
- Spec generators: "Three generators have **no** gate at all … reports
all three each run" → "Some generators have **no** gate at all … reports
each of them every run".
- Post-Task Checklist step 3: "one of fourteen retirement surfaces" →
"one of the retirement surfaces".
Kept, because a reader acts on them: the eleven required merge-queue
contexts (treated as contract), "ALL FIVE hold" for force-push, the ten
frozen `plugin-` packages, "those four lift", the three-part finding and
three cures (fixed definitions), the two line-initial changeset
declarations, and the six-hourly Version Packages cadence.
3. **Ruled raise of the `AGENTS.md` byte ceiling** — only the
`AGENTS.md` row of `CEILINGS` in
`scripts/pm/check-skill-line-ratchet.mjs`: **78401 → 78712 (+311 B)**,
exactly the measured size at this head (`wc -c AGENTS.md`: 78401 at base
8e3980a, 78712 at 9407435). Nothing else in that script changes.
## Ruling of record
- #37887 comment 7233980615, the maintainer verbatim: 「没用的统计数字直接删,不同步」
- #37887 comment 7234354812, the transcription of the maintainer's
decision-card choice at 2026-11-28T04:25:40Z: option **A** 「A
上调上限并删无用计数」, answering 「要上调 AGENTS.md 的字节上限,让 #38127 那条规则落地吗?」
- The 2026-11-27 「同意」 to the AGENTS.md placement, quoted in the card's
filing gate, after 「是不是应该立skills卡,让开发遇到类似的没有意义统计数据直接删除」.
- Raise path: the ratchet header's ruled raise (ruling record
6184799323, letter B). Whether this citation suffices is the contract
reviewer's call.
## Tests
Rule text and one ceiling number; no behaviour changed, no tests owed.
No changeset: nothing here ships in any package's `files[]`
(`skip-changeset`).
## Acceptance notes
- No internal skill under `.claude/skills/**` teaches syncing a volatile
count, so no pointing line was added (grep under Verification).
## Verification
Two-minute check: `pnpm check:pm-skill-ratchet` exits 0 and prints
`AGENTS.md is 78712 bytes (ceiling 78712; headroom 0)`.
<details><summary>Count greps</summary>
`.claude/skills`: `grep -rIn -i count .claude/skills` gives 27 hits
(control: it finds `totalCount` / `open_issues_count` reading rules);
filtered for update/bump/sync/increment/adjust/drift/equal/match it
gives 0. `grep -rIn -i -E 'rule count|rules? total|[0-9]+ rules|registry
size|file count' .claude/ AGENTS.md` gives 0. In AGENTS.md, spelled-out
one to twenty and digit-plus-noun counts (rules, files, packages,
artifacts, gates, checks, entries, hooks, skills, routes, contexts,
families, items, surfaces) were read by hand; the deletions and the kept
counts are listed above. `git grep` finds no gate pinning any deleted
phrase.
</details>
<details><summary>Local gates at 9407435 (dispatch-gates --commands, 37
derived; --ran: 37 run, 0 NOT-MEASURED, 0 UNRUN)</summary>
Every command exited 0, captured before any pipe;
`check:pm-skill-ratchet` (self-test + gate) prints `AGENTS.md is 78712
bytes (ceiling 78712; headroom 0)`. Commands:
- `node scripts/check-closing-keyword-parity.mjs`
- `node scripts/check-closing-keyword-parity.mjs --self-test`
- `node scripts/check-comment-mask-corpus.mjs`
- `node scripts/check-declaration-mirrors.mjs`
- `node scripts/check-declaration-mirrors.mjs --self-test`
- `node scripts/check-self-test-wired.mjs`
- `node scripts/check-self-test-wired.mjs --self-test`
- `node scripts/check-self-test-workflow-commands.mjs`
- `node scripts/check-self-test-workflow-commands.mjs --self-test`
- `node scripts/check-whole-set-label-write.mjs`
- `node scripts/check-whole-set-label-write.mjs --self-test`
- `node scripts/ci/plan-test-core-shards.mjs --self-test`
- `node scripts/pm/bare-root-worklist.mjs --self-test`
- `pnpm check:adr-anchors`
- `pnpm check:agent-test-spelling`
- `pnpm check:bash32-floor`
- `pnpm check:ci-filter-parity`
- `pnpm check:cli-command-ids`
- `pnpm check:cross-package-test-inputs`
- `pnpm check:docs-audit-scope`
- `pnpm check:driver-memory-census`
- `pnpm check:entry-guard`
- `pnpm check:gitlink-declared`
- `pnpm check:nul-bytes`
- `pnpm check:parse-guard`
- `pnpm check:pm-dispatch-gates`
- `pnpm check:pm-governed-merges`
- `pnpm check:pm-governed-prose`
- `pnpm check:pm-skill-id-lint`
- `pnpm check:pm-skill-ratchet`
- `pnpm check:pnpm-filter-targets`
- `pnpm check:pnpm-flag-spellings`
- `pnpm check:ratchet-remedy-authority`
- `pnpm check:refd-timer-probe`
- `pnpm check:required-contexts`
- `pnpm check:scripts-symbol-anchors`
- `pnpm check:watch-hint-literal`
Whole-tree and CI-only families are left to the PR check-runs.
</details>
---
_Generated by [Claude
Code](https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW)_
<!-- signed: repo:objectstack#1 · os-elon-musk ·
session_016WV4cxRDKprCtjpEdtiPFW -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7b90456 commit 4f7aa88
2 files changed
Lines changed: 19 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
| 249 | + | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
| 500 | + | |
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
651 | | - | |
| 651 | + | |
652 | 652 | | |
653 | 653 | | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
654 | 659 | | |
655 | 660 | | |
656 | | - | |
| 661 | + | |
657 | 662 | | |
658 | 663 | | |
659 | 664 | | |
| |||
708 | 713 | | |
709 | 714 | | |
710 | 715 | | |
711 | | - | |
| 716 | + | |
712 | 717 | | |
713 | | - | |
| 718 | + | |
714 | 719 | | |
715 | 720 | | |
716 | 721 | | |
| |||
779 | 784 | | |
780 | 785 | | |
781 | 786 | | |
782 | | - | |
| 787 | + | |
783 | 788 | | |
784 | 789 | | |
785 | 790 | | |
| |||
816 | 821 | | |
817 | 822 | | |
818 | 823 | | |
819 | | - | |
| 824 | + | |
820 | 825 | | |
821 | 826 | | |
822 | 827 | | |
| |||
1032 | 1037 | | |
1033 | 1038 | | |
1034 | 1039 | | |
1035 | | - | |
| 1040 | + | |
1036 | 1041 | | |
1037 | 1042 | | |
1038 | 1043 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
0 commit comments