You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AGENTS.md slimming: section-by-section analysis of what stays, moves, or goes (analysis only, decision card to the maintainer) #39704
Every agent session in this repo loads AGENTS.md whole: 1,054 lines and 78,710 bytes on origin/mainfcdb79d. Its check:pm-skill-ratchet ceiling is 78,712 bytes, so the next rule any card needs cannot land without a ruling. #39307 measured this today: one 340-byte PD12 sentence needed ruling 7413403390 to raise the ceiling. Text that only some tasks need still costs every session context and attention, and a rule buried in a long file is a rule an agent misses.
Ask (analysis only, no edits)
Read AGENTS.md on origin/main section by section (18 ## sections; the largest by heading span are Multi-agent working discipline (~240 lines), Degradation log levels (~90), Route & surface ownership (~70) and Startup registry reads (~47); these are line spans, not yet judged). Place every rule (a bullet, a numbered directive or a paragraph) in exactly one class:
stays: every session needs it, whatever the task;
moves: needed only for a named kind of task, so it moves to a named existing home (a skills/** skill, a .claude/skills/** playbook, a references/** file, a package README), leaving one pointer line;
duplicate: the same rule already lives in a named file; give the path and line;
stale: contradicts origin/main today; give the evidence (file:line or a grep).
For each item give: the AGENTS.md line range, the class, the destination or evidence, the byte saving, and who reads it today (a hook, a gate or script that parses AGENTS.md text, the os-dev agent, a skill). A rule that a gate or test reads by text (grep the repo for AGENTS.md anchors and quoted phrases) is marked, and moving it names the reader to update.
Deliver the analysis as one comment on this card in the decision-analysis shape (.claude/skills/pm-dispatch/references/decision-analysis.md): options (for example: move only the class-2 and class-3 items; also delete the class-4 items; a deeper restructure), the recommendation, the four-axis assessment, and a workload column. Add a proposed batch plan of small PRs, each lowering the AGENTS.md ceiling by the bytes it frees.
Out of scope
Any edit to AGENTS.md or another file; rewording rules that stay; CLAUDE.md (a pointer file).
Governing text: AGENTS.md (header: how rules are written and cite rulings); scripts/pm/check-skill-line-ratchet.mjs (the ceiling and its raise and lower rules).
Triage: lands in area:fleet · Task · p3 · pm:queue · size M, touched 2026-12-04T13:53Z. Lane self-triage ② (a card the seat filed and keeps in its lane). The work is read-only analysis of governed rule text, with a decision for the maintainer at the end. p3 because nothing is broken today; the AGENTS.md byte ceiling (2 bytes of headroom on origin/mainfcdb79d) will block the next rule, which is what makes this card worth doing now. domain:* is left to triage, by rule.
Ruling-ref: the maintainer, this seat's session, 2026-12-04, verbatim 「立 AGENTS.md 精简分析卡,并派发」.
Grade: p3 · reach: every agent session that loads AGENTS.md · evidence: wc -c AGENTS.md = 78710 against the ceiling 78712 (scripts/pm/check-skill-line-ratchet.mjs); #39307 needed ruling 7413403390 for 340 bytes · claimable.
Review: triage
Claim: PM loop round 1
Session: session_01ASNY8VYEJsv7qCYaPgM6nB
Account: os-mickey
Branch: claude/issue-39704-agents-md-analysis (probe only; analysis card, nothing is committed)
Worktree: objectstack-issue-39704
Domain: domain:skills
Seat: repo:objectstack@os-mickey
File surface: AGENTS.md (read only: the deliverable is one comment on this card, and no file is written; stop on any edit and explain in the report)
Container & model: M, mode:subagent, model: CONTRACT_REVIEW_TIER (reason: the maintainer's per-card order in this seat's session, 2026-12-04, verbatim 「AGENTS.md 这么长,是否建议用 fable 分析一下如何优化」 then 「立 AGENTS.md 精简分析卡,并派发」), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7413528976
Premise: holds — wc -lc AGENTS.md on origin/mainfcdb79d reads 1054 lines and 78710 bytes; the CEILINGS row in scripts/pm/check-skill-line-ratchet.mjs reads 78712.
Pre-claim lane: domain:skills file ownership (AGENTS.md), read only.
Pre-claim deps: none. PR #39697 (#39307, this seat) adds 340 bytes to PD12 and is in flight; the analysis reads origin/main and treats PD12's new sentence as staying.
Prior rulings read: ruling 7413403390 on #39307 (ceiling raised for PD12's at-rest sentence); the ratchet's own raise and lower rules; check-prior-rulings.mjs is not run here because there is no file surface to check.
Serial constraints cleared: none (no file is written).
This is the analysis the card asks for. It edits nothing and decides nothing. Every rule in the file is placed in exactly one of the card's four classes in the table below. The options, the recommendation, the four axes and a batch plan follow it.
Background
Every session reads AGENTS.md whole: the root pointer file (CLAUDE.md) says "read it in full before your first edit". The file is 1,054 lines and 78,710 bytes, which is 19,678 tokens by the repository's own counting convention (TOKEN_CONVENTION in scripts/check-skills-token-ratchet.mjs: bytes divided by four, rounded up; no tokenizer was run). Its byte ceiling is 78,712.
A first slimming pass already landed. PR #27139 (ruling record 6417533492, letter A) moved 34 explanation paragraphs of two sections to docs/agents/ and left every rule as one sentence plus a pointer. Its body says the other 15 sections and the Prime Directives were left byte-identical. Most of what this analysis finds is in those untouched sections.
One-sentence problem
Every agent session starts by reading a rule file about a fifth longer than it needs to be, part of it describing a code layout that no longer exists, and the question is how much to cut and where the cut text should live.
Governing text
AGENTS.md lines 11-19, the file's own charter: "This file carries principles, binding rules and lookup tables — rules only. A rule states what to do and what never to do, in one executable sentence; it carries no incident narrative", and "Where a hook or CI gate enforces a rule mechanically, the rule is stated once here and the script's own header is the authority on detail."
AGENTS.md lines 315-316: "A rule that binds every seat lives here, not only in a lane-specific skill file."
docs/agents/README.md lines 3-5: the topic pages "hold those explanations verbatim; they add no rule, and AGENTS.md wins on any conflict".
scripts/pm/check-skill-line-ratchet.mjs, header: "A ceiling may be LOWERED by any PR that shrinks its file"; a raise needs the ruling of record; a same-PR cross-file move may raise the destination by at most the source's net decrease when both files are in the CEILINGS map.
Clause-②: no. Metadata-protocol: none. Nothing here changes what a metadata author can write. The subject is instruction text for agents.
Premises, each with its re-check command
Premise
Reading
Re-check
File size
1,054 lines, 78,710 bytes on origin/main8e4dda4 (byte-identical to the dispatch commit 64188fb)
git show origin/main:AGENTS.md | wc -lc
Ceiling and row pin
ceiling 78,712 (headroom 2); widest table row 751 against a pin of 768
node scripts/pm/check-skill-line-ratchet.mjs
Gates that read the file by path
7 families, keys R1 to R7 minus R5 plus the governed-merges register
node scripts/pm/dispatch-gates.mjs AGENTS.md
Four-axis frame current
21 lines, md5 abff5f852c8fd09b79ec0623439aa4f0 on origin/main8e4dda4
git show origin/main:.claude/skills/pm-dispatch/SKILL.md | sed -n 249,269p | md5sum
PD12's at-rest sentence
PR #39697 is open and draft. It adds 340 bytes to Prime Directive 12 and is treated as staying. When it lands, every total below rises by 340 and line numbers after 262 shift
gh api repos/objectstack-ai/objectstack/pulls/39697
Readers of AGENTS.md text today
Machine readers, found by grep and by the gate derivation. A PR that moves or deletes the named text updates the named reader in the same PR.
Key
Reader
What it reads
R1
pnpm check:pm-skill-ratchet
the whole file's bytes (ceiling) and its widest table row (pin 768; the widest row today is line 646)
R2
pnpm check:pm-governed-prose (PROSE_SURFACES)
Prime Directive 14, between the anchor phrases "A governed surface lands only the way its tier allows" and "A version release is performed by the maintainer, by hand": every governed glob must be named there
R3
pnpm check:required-contexts (INSTRUCTION_SURFACES, the AGENTS.md row, statesTheSet)
the twelve required check names in lines 510-513, held equal to the registry
R4
pnpm check:docs-audit-scope (findGuardrailRow)
the Documentation Guardrails row that marks content/docs/releases/ RELEASE-OWNED (line 645)
R5
node scripts/check-published-list-mirrors.mjs (MIRRORS, its only row)
the heading at line 105 and the ts fence under it (lines 111-129), held equal to RECOGNISED_PATH_SPELLINGS
R6
pnpm check:pm-skill-id-lint
the whole file: no issue-number citation
R7
pnpm check:agent-test-spelling
the whole file: test-command spellings
R8
scripts/pm/check-prior-rulings.mjs (a search tool, not a gate)
every line, as its "AGENTS.md lines" corpus: text that leaves the file leaves this corpus
Not readers of the text: the hooks under .claude/hooks/ (they cite "AGENTS.md Prime Directive #11" in refusal prose, and their self-tests use a grep of AGENTS.md as an allowed-read fixture); check:pm-governed-merges, the queue guard and CODEOWNERS (path only); tests (none reads the root file's text; the hits under packages/create-objectstack and ui/scripts/__tests__ are the scaffold template and path fixtures).
Prose citations by section name, counted with git grep -lEi over the tree less AGENTS.md and changelogs. They keep resolving as long as the heading stays, and no row below removes a heading except the two stale sections.
10 (one is docs-drift-check.yml, which prints the name in a PR comment)
Monorepo Layout / Context Routing / Edit Sizing
4 / 1 / 0
The per-item table
Classes: stays (every session needs it); stays (T) (keyed to a kind of task, but no existing home holds it today, so under the card's definition it cannot be class 2); moves; duplicate; stale. Bytes are measured on origin/main with sed -n 'A,Bp' | wc -c. The range rows partition the file exactly: their gross bytes sum to 78,710. Four rows are clauses inside a range row (line 202, 247-249, 345-348, 533-536) and are counted once, in the totals under the table. "Net" is gross less the pointer or rule sentence that stays behind, an estimate of 100 to 330 bytes per item.
Lines
What it is
Class
Destination or evidence
Bytes (gross → net freed)
Readers
1-22
Title, precedence, the v5 rename note, the charter
stays
1,651
every session; R6
23-45
Contents
stays
1,111
every session
46-58
Communication (languages)
stays
646
every session
59-79
Commands; no formatter of record; push a WIP commit before long steps
stays
1,096
every session; R7
80-104
Type-check ratchet; three principles (tsconfig reach, phantom @ts-expect-error, TS7006)
stays (T)
no other home; the gate's comments carry history, not the rule
1,605
test and package authors
105-110
Cross-package test inputs: the rule and its intro
stays (T)
352
R5 reads the heading
111-129
The spelling block
duplicate
RECOGNISED_PATH_SPELLINGS, scripts/check-cross-package-test-inputs.mjs:607; line 131 says the gate prints this list in its failure text
1,239 → 1,239
R5: its one MIRRORS row (scripts/check-published-list-mirrors.mjs:266) and the lint.yml step at 3666-3671 retire with the block
130-136
Extend the detector, never route around it
stays (T)
461
137-151
Timing gates report and never red; ceilings rise by ruling; when a test may be deleted; pins join the shared harness file; the queue speed budget
stays (T)
no other home for the deletion and harness rules
1,270
test authors, CI authors
152-169
Dev server table and rules
stays
1,488
most sessions; R7
170-175
Where the Console lives; never hand-edit its dist
stays
383
176-181
A registry change regenerates the committed manifest
duplicate
docs/releases-maintenance.md:57-71 (same command, same "no arguments", same "no npm install route"); a required CI step compares the bytes
398 → 288
sessions changing the ui/ registry; the pointer goes to ui/AGENTS.md
182-188
Fast iteration on ui/ source
duplicate
ui/.claude/skills/objectui-contributor/guides/console-development.md:528-530; ui/AGENTS.md:222 already points there
466 → 366
ui/ sessions
189-213
Prime Directives 1-8
stays
2,157
every session; 0 to 37 citing files each
202
In PD4, the word "namespaces"
stale
packages/spec/src/index.ts:87-98 ("NAMESPACE EXPORTS — REMOVED … Use subpath imports instead"); eslint.config.mjs:405-411 refuses those import names. Loud: a lint error
a reword, about 0
214-231
PD9, env-var naming shapes
stays (T)
no other home, no gate
1,627
sessions adding an env var; 24 citing files
232-237
PD10, file a card or note it; never fake coverage
stays
675
106 citing files
238-250
PD11, worktree-first
stays
1,450
hook refusal prose cites it
247-249
In PD11, "The Bash guard is precision-first … outranks the hook."
duplicate
.claude/hooks/guard-main-checkout-bash.sh:32-48
228 → 228
251-262
PD12, contract-first (plus the 340-byte at-rest sentence of PR #39697)
stays
ruling 7413403390
1,395
163 citing files
263-275
PD13, ADRs bind; the cloud registry
stays
lines 270-275 partly repeat docs/adr/README.md:7,12; the rule's home is here
1,465
50 citing files; R9
276-313
PD14, governed surfaces and tiers; "already armed or queued"
stays
lines 315-316 say why: it binds every seat
4,052
R2; queue-guard refusal prose; 40 citing files
314-336
PD15, releases are the maintainer's
stays
2,229
13 citing files
337-341
Multi-agent intro
stays
213
342-355
Never a bare git stash; the three replacements
stays
905
345-348
In it, the hook's allow and block list ("blocks the mutating forms … outranks the hook")
duplicate
.claude/hooks/guard-shared-stash.sh:44-57; the sentence itself says "details … in its header"
258 → 258
356-375
What a worktree does not isolate; a reading names its tree; the shared build cache
stays
1,462
every worktree session
376-383
Reverse verification: commit the fix first
duplicate
.claude/skills/pm-dispatch/references/dev-ablation.md:4-5,10,13,33, the file .claude/agents/os-dev.md sends a dev to before any reverse verification
513 → 383
dev sessions
384-398
A checkout from a ref stages what it retrieves; history questions go through the history tool
stays
963
399-417
Claim before code
stays
binds every seat and executor
1,766
418-424
Every GitHub write leaves through scripts/pm/
stays
650
425-431
State you did not set is another actor's
stays
478
432-455
Attribution footer; commit trailer
stays
1,787
every GitHub write
456-462
GitHub mutates body bytes
stays
485
463-495
Items 1-6: touch only your files; one branch and PR per task; force-push criteria; verify the branch; shared files; no rebasing shared branches
stays
2,656
496-507
Item 7: land through the queue; the three classes that never land on green alone
stays
947
508-521
Item 7: what green means; the required set; two speeds; main-red
moves
.claude/skills/pm-dispatch/references/landing-operations.md. Landing is a seat act (a dispatched dev never merges). The twelve names are already at references/readings-ci.md:25-27, and main-red at landing-operations.md:89-93
1,417 → 1,417
landing seats; R3: the AGENTS.md row leaves INSTRUCTION_SURFACES (the readings-ci.md row already states the set)
522-528
Item 7: re-arm awareness
moves
same file; the explanation is already docs/agents/multi-agent-discipline.md:154
641 → 641
landing seats
529-531
Item 7: serial-merge fallback
moves
same file; one pointer line stays for all three rows
234 → 84
landing seats
532-537
Item 8: kill only a PID you recorded
stays
535
533-536
In item 8, "Spin up your own instance … shut it down yourself"
duplicate
AGENTS.md lines 157, 159-160 and 165-168 say the same
177 → 177
538-557
Items 9-10: refresh build state after a merge; scope the re-check
stays
1,791
558-563
Item 11: generated artifacts and the merge driver, the rule
stays
598
564-578
Item 11: three "worth knowing" bullets
duplicate
scripts/pm/os-regen-merge.sh:232-243 (the merge commit is a deferral; --no-verify), :263-266 and :303-306 (the probe; the two -c spellings that do not disable the driver); scripts/regen-artifacts.mjs:49-59. Line 565 already calls the script "the in-repo authority"
1,108 → 978
sessions merging main over generated files
579-605
Monorepo Layout
stale
line 595 says plugins/ holds "Official plugins & drivers"; ls packages/plugins has no driver, packages/drivers/ holds six, and line 732 of this file says so. The block lists 14 of the 33 directories under packages/
1,059 → 859
4 citing files
606-630
Protocol Domains
stale
the "Namespace" column: same evidence as line 202. System row: Manifest is packages/spec/src/kernel/manifest.zod.ts and Datasource is packages/spec/src/data/datasource.zod.ts. Identity row: no Profile schema under identity/. Security row: no RoleSchema. Automation row: no Workflow schema
1,188 → 1,038
0 citing files
631-639
Kernel table
stays (T)
201
640-649
Documentation Guardrails table
stays
path-keyed lookup; the charter keeps lookup tables
2,340
R4; R1 (widest row, line 646)
650-654
Volatile counts are deleted, not synced
stays
425
655-662
Touched packages/spec: regenerate before pushing (the rule)
stays (T)
494
spec sessions
663-671
The "you changed → gate → regenerate" table
duplicate
the GATED ledger, packages/spec/scripts/check-generated.ts:50-150, which carries at least four gates this table lacks (check:export-origins, check:declaration-map, check:strictness-ledger, check:meta-url-spelling); line 672 says "Don't match by hand"
841 → 841
spec sessions
672-680
One command runs every gate
stays (T)
410
681-716
"Principles the wrapper encodes"; generators with no gate
moves
docs/agents/build-and-test.md, a new section. Line 681 says the wrapper's "own output is the authority on detail", and check-generated.ts:15-21 already holds the reason --fix is narrow
2,542 → 2,242
spec sessions
717-742
Context Routing table
stays (T)
path-keyed lookup; rows 732-733 carry whole naming rules in a cell (708 and 566 bytes)
2,998
1 citing file
743-753
Skills: two roots
stays
375
754-780
Patterns: a Zod schema; the plugin contract
stays (T)
815
781-808
Route & surface ownership, rules 1-4
stays
principles
1,558
56 citing files; "Absence must be loud" 65
809-819
Rule 5: a new REST route declares its closed query-parameter set
stays (T)
847
820-845
Rule 5: "Get these right"; recognition before arity
duplicate
packages/rest/src/query-allowlist.ts:76-128 (measure from the read points :84-89; open routes excluded by name :99-119; per lane :77-80; composition :121-128). Line 812 calls that header "the authority on detail". Two clauses are not in the header yet (read the helpers the handler calls; pin both halves) and move into it in the same PR
1,851 → 1,851
REST route authors
846-852
Verifying: boot the real composition
stays (T)
310
853-883
Degradation log levels: the one question; the two classes; what an error owes
stays (T)
the rule's home; the gate header quotes it from here
1,961
100 citing files; gate refusal prose
884-904
"Do not over-apply it"; a failure handed to the caller; outcomes returned as values
moves
the header of scripts/check-durability-degradation-log-level.mjs. Lines 28-49 and 79-105 already hold most of it, but line 101 says what to do about a returned outcome "is deliberately not decided here", while AGENTS.md decides it (pin it in its own file's test). That prescription moves in
1,710 → 1,380
sessions writing a catch around a write
905-915
"It has teeth": the gate and its baseline
stays (T)
780
916-941
The read-seam invention rule
duplicate
same script: header lines 128-150, the section at 656, READ_SEAM_SCAN_ROOTS at 1604-1608, READ_FAILURE_DISCRIMINATORS at 1857-1863
1,862 → 1,702
sessions touching the persistence layer
942-955
Startup registry reads: the rule and its question
stays (T)
697
39 citing files
956-967
The three-part shape; a read-only probe is legal
duplicate
scripts/check-startup-registry-verdict.mjs:43-54, nearly word for word
585 → 475
968-988
The three cures; "it has teeth"
stays (T)
the cures are not in the gate header
1,194
989-1012
Writing a --self-test
stays (T)
no other file states the three rules as rules
1,559
30 citing files
1013-1022
Post-task 1-2: targeted gates; land it
stays
790
1023-1040
Post-task 3: changesets, the two declaration lines, migrations, tombstones
stays
nearly every PR publishes
2,008
1041-1045
Post-task 4-5: a removal ships with its ui/ fix; regenerate spec artifacts
stays
571
1046
Post-task 6: "Update ROADMAP.md if user-facing or architectural"
stale
ROADMAP.md:3-7: the page "is a short public summary" of the North Star "and decides nothing on its own". Its last three commits (2026-10-28, 11-08, 11-18) are all North Star rewrites, none a feature PR
56 → 56
1047-1051
Post-task 7: delete temporary artifacts
stays
199
1052-1054
Edit Sizing
stays
119
0 citing files
Totals, net: duplicate 8,123 in range rows plus 663 in the three clause rows; moves 5,764; stale 1,953. The stays rows hold 61,000 gross (including those 663 bytes), of which 17,581 is stays (T).
Options
Option
What it does
What a session sees afterwards
Workload
A
Deletes the duplicates and deletes or corrects the stale text (classes 3 and 4). Nothing is rehomed.
78,710 → 67,971 bytes (−10,739, −13.6%; about 2,685 fewer tokens per session). The two wrong tables are gone.
fleet area (domain:skills) · 7 PRs, each Tier H because it edits AGENTS.md · precedent PR #27139: one PR, 5 files, +453/−165 lines, AGENTS.md −6,177 bytes
B
A, plus the class 2 moves: landing mechanics to the seat's landing reference, the spec-wrapper explanations to the explanations page, the caller-propagation detail to its gate header. One pointer line stays for each.
78,710 → 62,207 bytes (−16,503, −21.0%; about 4,126 fewer tokens per session). Every heading that other files cite is still there.
same lane · 8 PRs, all Tier H · precedents PR #27139 (above) and PR #37376 (three entry files; 11 files, +196/−154 lines)
C
A deeper restructure. AGENTS.md keeps the principles, the human-floor directives, the multi-agent protocol and a routing table. The 17,581 bytes of stays (T) rows get new homes (path-scoped instruction files or new reference pages).
An estimate, not a measurement: about 32 KB freed (−41%), a file near 46 KB. A rule a task needs is then one file away instead of in context.
same lane · no precedent for new instruction homes. Each new home that holds a binding rule needs a row in the governed register, or the rule loses its maintainer-only landing. Whether a path-scoped file is loaded by every harness in use is not measured
In business terms. A: throw out the photocopies and the outdated floor plan; nothing is refiled. B: also file each specialist procedure with that specialist's manual and leave a signpost on the shelf. C: replace the handbook with a thin booklet and a shelf of departmental manuals.
The four axes
实际业务需求. The pull is measured in two places. The first is load: every session, whatever its task, reads 19,678 tokens before its first edit, and 16,503 bytes of that is text that is already elsewhere, wrong, or used only by a landing seat. The second is the wrong tables, which cost something today: a session that follows Protocol Domains writes a namespace import that ESLint refuses, and a session that follows Monorepo Layout looks for drivers under packages/plugins. The card's third claim, that length makes agents miss rules, is not measured on the card, and I did not measure it either. On the ceiling, the row at scripts/pm/check-skill-line-ratchet.mjs:147 records two ruled raises (+295, +311), and PR #39697 brings a third (+340). A and B serve the measured pull. C's extra 15 KB serves the unmeasured claim.
项目长远合理性. The end state two years out: the always-loaded file holds only what binds every session (the principles, the two human-floor directives, the multi-agent protocol, the path-keyed lookup tables), each rule in one sentence; mechanism detail lives with the gate or module that enforces it; a task's procedure loads when the task starts. That is the progressive-disclosure model of the Agent Skills format (a short description always loaded, the body loaded on trigger), and it is what this file's own charter says at lines 11-19. B moves toward it using only homes that exist, and it removes the second copy of five facts, so it shrinks special cases. A does the same for a smaller set. C reaches further in bytes, but it adds instruction surfaces, register rows and places where two rule files can disagree. On this axis that is growth of contract surface, and C is the option that needs a workaround (new register rows) to keep the maintainer's hand on binding rules.
防 AI 写代码犯错,尤其是防 AI 写元数据 app 犯错. Who sees what when it goes wrong. Deleting a duplicate removes the chance that two copies disagree. Today the "you changed → gate" table has six rows and the wrapper's ledger has at least four more gates, so an agent matching by hand skips some and learns it from a red CI run: loud, one round-trip late. For the groups in PR-2 to PR-4, the detail that leaves is backed by a gate or helper that refuses loudly and prints the prescription, so a session that never follows the pointer is still stopped. The stale tables fail both ways today: the import is refused loudly; the wrong directory is silent until review. The one place B is quieter is PR-7: a seat that misreads "green" arms a red PR and nothing refuses it. That is why the three classes that never land on green alone, PD14 and PD15 stay in every option, and why PR-7 is late in the order and separable. Under C, a binding rule held in a file outside the governed register can be edited by any seat without the maintainer. The failure there is silent drift of a rule, and it sits on the human floor.
创业阶段不扩散需求. A and B add no file kind, no register row and no gate. B's PR-8 removes one gate: the published-list mirror exists only to hold the deleted copy equal to its source. I recommend no new gate with any option, including no gate that checks pointers resolve; the frame's default is no and the maintainer has named none. C adds surfaces and would need rows in GOVERNED_SURFACES. Each is a standing obligation with no measured pull behind it.
os-decision-facets
① 项目长远合理性: B shrinks special cases. It deletes second copies of facts whose authority AGENTS.md already names, and it uses only existing homes. C adds instruction surfaces and register rows.
② 实际业务拉动: measured for A and B (19,678 tokens read by every session; two wrong tables; ceiling headroom 2 bytes). Not measured for C's extra 15 KB.
③ 防 AI 犯错: for the gate-backed items the gate still refuses loudly. The landing mechanics are the one quieter spot and go late. PD14 and PD15 do not move in any option.
④ 创业阶段不扩散: A and B add nothing, and B retires one gate. C adds rule homes and governance rows.
Prior rulings read: slimming,ceiling,ratchet,pointer,explanations,rules-only → 53 hits; ADR none (the ten ADR decisions the tool named are term coincidences in unrelated records, and none governs this file's size or shape); thread: none; repo: objectstack-ai/objectstack
Read outside that search: ruling record 6417533492 letter A (explanations move, each rule stays as one sentence plus a pointer; PR #27139), ruling record 6184799323 letter B (a raise needs the ruling of record), and ruling 7413403390 (PD12's sentence).
Recommendation
I recommend B, landed in the order of the batch plan.
Not A: for one PR fewer, it leaves 5,764 bytes that only a landing seat or a spec session uses in every session's context.
Not C: on the long-term axis alone it is the option that grows the number of rule homes, and its extra saving rests on a claim nobody has measured. Its workload has no precedent and is likely more than three times B's (new homes, register rows, a check that each harness loads them). If rule misses are measured later, the stays (T) rows in the table are the worklist.
Self-check: 只看①选 B;②③④ 是否翻转:否.
Confidence gaps. None changes the letter.
Gross bytes are measured. Net bytes assume a pointer residue of 100 to 330 bytes per item, so each net figure is good to about ten percent.
Duplicates were verified by locating the same rule at the cited lines, not by a clause-by-clause diff. Two items are known to be partial and their rows say so (rule 5's two clauses; the returned-outcome prescription). Their PRs carry the missing text into the home first.
Whether length makes agents miss rules is not measured.
Token counts use the repository's bytes-over-four convention.
Slimming does not create room for new rules. The plan lowers the ceiling by each PR's freed bytes, as the card asks, so the next new rule still raises the row by its own ruling of record, as it does today.
The stale rows have two remedies, delete or correct. I priced deletion, because the Skills section already states the principle ("the filesystem is the catalog", "never a hand-written list here", lines 745-746). Correcting them instead frees about 300 bytes in place of 1,900.
Batch plan
All eight PRs edit AGENTS.md and the CEILINGS row, so they are Tier H and strictly serial. Each lowers the AGENTS.md ceiling by the bytes it frees and lands every moved rule in its home in the same PR. The ceilings below start from today's 78,712; add 340 to each once PR #39697 lands. A folded form is possible (PR-2, PR-3 and PR-5 as one; PR-4 and PR-6 as one), which makes five landings.
PR
Content
Frees
Ceiling after
Other files in the PR
Reader to update
PR-1
Stale: Monorepo Layout, Protocol Domains, post-task 6, the PD4 word
1,953
76,759
none. Two Contents entries go with the sections (about 130 bytes more, not counted)
none. Also lower the row pin 768 → 751, the ratchet's own hint
PR-2
Duplicates of a named authority: rule 5 detail; the startup three-part shape
2,326
74,433
packages/rest/src/query-allowlist.ts (the header comment gains two clauses)
none
PR-3
Degradation: the caller-propagation detail and the read-seam rule
3,082
71,351
scripts/check-durability-degradation-log-level.mjs (the header gains the returned-outcome prescription)
none; the script's own self-test runs
PR-4
Spec regeneration: the gate table and the wrapper principles
3,083
68,268
docs/agents/build-and-test.md (a new section)
none
PR-5
Small duplicates: reverse verification, the merge-driver bullets, item 8's repeat, the two hook clauses
2,024
66,244
none (the homes already hold the text)
none
PR-6
The ui/ pair: manifest regeneration, fast iteration
654
65,590
ui/AGENTS.md (one pointer line; also Tier H)
none
PR-7
Landing mechanics: green, the required set, two speeds, main-red, re-arm, serial fallback
2,142
63,448
.claude/skills/pm-dispatch/references/landing-operations.md; a CROSS_FILE_MOVES declaration that raises that file's ceiling by at most 2,142; back-links in docs/agents/multi-agent-discipline.md
R3: drop the AGENTS.md row from INSTRUCTION_SURFACES in scripts/check-required-contexts.mjs
PR-8
The cross-package spelling block
1,239
62,209
scripts/check-published-list-mirrors.mjs and its lint.yml step retire (a governed workflow edit)
R5
Option A is the same plan without PR-7, with PR-3 reduced to the read-seam rule (1,702) and PR-4 reduced to the gate table (841).
After the ruling
The seat files one execution card for the chosen option in the fleet area and quotes the ruling comment's id; each PR's body quotes it too. The PRs open one at a time, each from the merged head of the one before, because they share the ceiling row. Each is skip-changeset (instruction files, scripts and comments only) and waits as a draft for the maintainer's merge, which is the Tier H path. PR-7 declares its cross-file move under the ratchet's standing ruling and needs no ceiling ruling of its own. A row the maintainer wants kept is dropped from its PR and that PR's ceiling arithmetic is recomputed. No row depends on another, except that PR-8's block deletion and gate retirement go together.
Observations outside the four classes, noted here and not filed: the 17 bytes of row-pin headroom the ratchet prints as a hint; packages/spec/src/index.ts:9 still shows the removed namespace-import style in its own header comment.
{
"issue": 39704,
"status": "reading",
"branch": "claude/issue-39704-agents-md-analysis",
"pr": null,
"session": "session_01ASNY8VYEJsv7qCYaPgM6nB",
"premise_still_valid": true,
"summary": "Read-only analysis delivered as comment 7414104837 on this card (32,030 bytes, read back identical). Every rule in AGENTS.md is placed in one class over rows that partition the file's 78,710 bytes: stays 61,000 gross (17,581 of it task-keyed with no existing home), duplicate 8,786 net, moves 5,764 net, stale 1,953 net. Three options are laid out (A: duplicates and stale only, to 67,971 bytes; B: plus the class 2 moves, to 62,207 bytes; C: a deeper restructure, estimated near 46 KB) with a recommendation of B, the four axes, the facet block and an eight-PR batch plan that lowers the ceiling from 78,712 to 62,209. No file was edited, no commit made, no PR opened, and the branch probe was not pushed (the order allowed it; nothing needed it). Deviations: one Write-tool call for a scratch .md was refused by the harness's report-file rule (not a classifier refusal), so the comment bodies were written to the scratchpad as .txt tool inputs; origin/main moved twice during the run (64188fb4, then 8e4dda438d, then 44cf0fcd76) with AGENTS.md byte-identical each time.",
"tests": "No test owed: no diff. Measurements: `git show origin/main:AGENTS.md | wc -lc` = 1054 78710 at 64188fb4, 8e4dda438d and 44cf0fcd76; the item script asserts the row ranges are contiguous from line 1 to 1054 and sum to 78,710; four-axis frame md5 abff5f852c8fd09b79ec0623439aa4f0 (21 lines) on 8e4dda438d; each stale and duplicate row carries its path and line evidence in the comment.",
"gates": "No local gate owed (no changed file; `node scripts/pm/dispatch-gates.mjs` with no paths: nothing to derive). Read-only runs, exit captured before any pipe: `node scripts/pm/check-skill-line-ratchet.mjs` exit 0 (AGENTS.md 78710 of 78712, headroom 2; widest row 751, pin 768); `node scripts/pm/dispatch-gates.mjs AGENTS.md` exit 0 (7 path-matched families); `node scripts/pm/verify-review-tier.mjs` on this run's transcript exit 0, PASS; `node scripts/pm/check-prior-rulings.mjs --card 39704 --terms ...` exit 0 (53 ADR hits, all term coincidences; thread: none). CI: none, there is no PR.",
"mcp_calls": "0",
"api_writes": "2 relay writes through `scripts/pm/post-stamped.mjs --comment=39704` (transport dispatch: one repository_dispatch each, executed as issue-comment creates on #39704): the analysis comment 7414104837 and this report comment. GET reads only otherwise.",
"classifier_refusals": [],
"open_questions": [
{
"question": "How far to slim AGENTS.md: which of the three options in comment 7414104837, and for the stale rows, delete or correct?",
"options": ["A: delete duplicates and stale text only (7 Tier H PRs, 78,710 to 67,971 bytes)", "B: A plus the class 2 moves with one pointer line each (8 Tier H PRs, to 62,207 bytes)", "C: deeper restructure with new rule homes (estimate near 46 KB; needs governed-register rows; no precedent)"],
"recommendation": "B, in the batch order of the comment, because it only removes second copies and uses existing homes, adds no file kind, register row or gate, and leaves PD14, PD15 and the never-on-green classes untouched. Stale rows priced as deletion."
},
{
"question": "Conflict to note, not to rule: the dispatch order asks the 速读 block for what, how much it saves and the recommendation; `references/decision-analysis.md` fixes four lines (problem, each option, recommendation, what happens if undecided).",
"options": ["kept the fixed four lines and put the savings in the option line", "rewrite to the order's three items"],
"recommendation": "the first, as posted; the fixed shape is the unconditional text and it carries all three items the order names"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: #39704 · noted, not filed · the four stale rows (AGENTS.md lines 202, 579-605, 606-630, 1046) are findings in the analysis table, per the order's fence",
"carrier: #39704 · noted, not filed · the ratchet prints a hint that the AGENTS.md table-row pin can drop 768 to 751 (folded into PR-1 of the batch plan)",
"carrier: none · noted, not filed · observation: `packages/spec/src/index.ts:9` still shows the removed namespace-import style in its header comment",
"carrier: none · noted, not filed · observation: `.claude/skills/scenario-eval/SKILL.md` (15,623 bytes) has no row in the ratchet's CEILINGS map, whose header counts four other playbook SKILL.md files; whether that absence is intended was not read"
]
}
Release: 2026-12-04T14:21Z · session session_01ASNY8VYEJsv7qCYaPgM6nB releases claim 7413547410 · because the analysis is delivered and the card now waits on the maintainer's choice · into needs-user-decision, assignee cleared.
Resume-from: none — an analysis card; nothing was committed or pushed.
L1 (seat): ACCEPT of the analysis 7414104837 (os-dev-report 7414155545). Checked:
the four classes partition the file (contiguous rows summing to 78,710 bytes);
premises carry re-check commands, and the AGENTS.md size and ceiling agree with the seat's own reading on origin/main;
the four axes and the facet block are present, and the frame md5 matches the dispatch;
every option carries a workload and a precedent;
the batch plan lowers the ceiling per PR;
no file was edited.
Decision asked of the maintainer: the option, A, B or C (recommendation B); and for the four stale rows, delete (priced) or correct.
Governing text: AGENTS.md lines 11-19 (the file's charter); scripts/pm/check-skill-line-ratchet.mjs header (the ratchet discipline); ruling record 6417533492 letter A (the earlier slimming, PR #27139).
Maintainer ruling recorded · 2026-12-04T15:06Z · #39704: option B; the stale rows are deleted.
Provenance: who = the maintainer; where = seat repo:objectstack@os-mickey's session session_01ASNY8VYEJsv7qCYaPgM6nB; asked on analysis 7414104837 after this card entered the decision inbox (7414214052). Verbatim choices: 「B: dupes+stale+moves (Rec.)」 for the option, 「Delete (Rec.)」 for the stale rows.
Decided: option B as the analysis lays it out:
delete the duplicates (class 3);
delete the stale rows (class 4), not correct them;
make the class 2 moves to existing homes, one pointer line each;
no new rule file, register row or gate. PR-8 retires scripts/check-published-list-mirrors.mjs with its block.
Execution parameters (the analysis's batch plan, ruled with it):
eight serial Tier H PRs in the plan's order, PR-1 first; the plan's folded form (five landings) is allowed;
each lowers the AGENTS.mdCEILINGS row by the bytes it frees, measured, and lands every moved rule in its home in the same PR;
each PR body quotes this ruling's id;
PD14, PD15 and the never-on-green classes do not move.
Next: the seat files one execution card in the fleet area and closes this analysis card as completed.
Ruled: 7415367635 (the maintainer, option B). needs-user-decision → pm:queue in this stroke so the card can close as completed; nothing is left to dispatch here, and the execution moves to #39728.
Closed as completed 2026-12-04T15:10Z: the analysis is delivered (7414104837) and ruled (7415367635, option B; the stale rows are deleted). Execution moves to #39728, pm:blocked on #39697 because both edit the AGENTS.mdCEILINGS row.
Activity
objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-mickey · os-mickey · session_01ASNY8VYEJsv7qCYaPgM6nB
Triage: lands in area:fleet · Task · p3 · pm:queue · size M, touched 2026-12-04T13:53Z. Lane self-triage ② (a card the seat filed and keeps in its lane). The work is read-only analysis of governed rule text, with a decision for the maintainer at the end. p3 because nothing is broken today; the AGENTS.md byte ceiling (2 bytes of headroom on
origin/mainfcdb79d) will block the next rule, which is what makes this card worth doing now.domain:*is left to triage, by rule.Ruling-ref: the maintainer, this seat's session, 2026-12-04, verbatim 「立 AGENTS.md 精简分析卡,并派发」.
Grade: p3 · reach: every agent session that loads AGENTS.md · evidence:
wc -c AGENTS.md= 78710 against the ceiling 78712 (scripts/pm/check-skill-line-ratchet.mjs); #39307 needed ruling 7413403390 for 340 bytes · claimable.Review: triage
objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-mickey · os-mickey · session_01ASNY8VYEJsv7qCYaPgM6nB
Claim: PM loop round 1
Session:
session_01ASNY8VYEJsv7qCYaPgM6nBAccount:
os-mickeyBranch:
claude/issue-39704-agents-md-analysis(probe only; analysis card, nothing is committed)Worktree:
objectstack-issue-39704Domain:
domain:skillsSeat:
repo:objectstack@os-mickeyFile surface:
AGENTS.md(read only: the deliverable is one comment on this card, and no file is written; stop on any edit and explain in the report)Container & model:
M,mode:subagent,model: CONTRACT_REVIEW_TIER (reason: the maintainer's per-card order in this seat's session, 2026-12-04, verbatim 「AGENTS.md 这么长,是否建议用 fable 分析一下如何优化」 then 「立 AGENTS.md 精简分析卡,并派发」),effort: highClause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7413528976
Premise: holds —
wc -lc AGENTS.mdonorigin/mainfcdb79d reads 1054 lines and 78710 bytes; theCEILINGSrow inscripts/pm/check-skill-line-ratchet.mjsreads 78712.Pre-claim lane:
domain:skillsfile ownership (AGENTS.md), read only.Pre-claim deps: none. PR #39697 (#39307, this seat) adds 340 bytes to PD12 and is in flight; the analysis reads
origin/mainand treats PD12's new sentence as staying.Prior rulings read: ruling 7413403390 on #39307 (ceiling raised for PD12's at-rest sentence); the ratchet's own raise and lower rules;
check-prior-rulings.mjsis not run here because there is no file surface to check.Serial constraints cleared: none (no file is written).
objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-mickey · os-mickey · session_01ASNY8VYEJsv7qCYaPgM6nB
维护者速读
Decision analysis: how far to slim AGENTS.md, and where the cut text goes
Served-tier:
CONTRACT_REVIEW_TIERAnalysed-by:
session_01ASNY8VYEJsv7qCYaPgM6nBThis is the analysis the card asks for. It edits nothing and decides nothing. Every rule in the file is placed in exactly one of the card's four classes in the table below. The options, the recommendation, the four axes and a batch plan follow it.
Background
Every session reads AGENTS.md whole: the root pointer file (
CLAUDE.md) says "read it in full before your first edit". The file is 1,054 lines and 78,710 bytes, which is 19,678 tokens by the repository's own counting convention (TOKEN_CONVENTIONinscripts/check-skills-token-ratchet.mjs: bytes divided by four, rounded up; no tokenizer was run). Its byte ceiling is 78,712.A first slimming pass already landed. PR #27139 (ruling record 6417533492, letter A) moved 34 explanation paragraphs of two sections to
docs/agents/and left every rule as one sentence plus a pointer. Its body says the other 15 sections and the Prime Directives were left byte-identical. Most of what this analysis finds is in those untouched sections.One-sentence problem
Every agent session starts by reading a rule file about a fifth longer than it needs to be, part of it describing a code layout that no longer exists, and the question is how much to cut and where the cut text should live.
Governing text
docs/agents/README.mdlines 3-5: the topic pages "hold those explanations verbatim; they add no rule, andAGENTS.mdwins on any conflict".scripts/pm/check-skill-line-ratchet.mjs, header: "A ceiling may be LOWERED by any PR that shrinks its file"; a raise needs the ruling of record; a same-PR cross-file move may raise the destination by at most the source's net decrease when both files are in theCEILINGSmap.git grep -n "AGENTS.md" -- scripts .claude/hooks .githubandnode scripts/pm/dispatch-gates.mjs AGENTS.md.Protocol statement
Clause-②: no. Metadata-protocol: none. Nothing here changes what a metadata author can write. The subject is instruction text for agents.
Premises, each with its re-check command
origin/main8e4dda4 (byte-identical to the dispatch commit 64188fb)git show origin/main:AGENTS.md | wc -lcnode scripts/pm/check-skill-line-ratchet.mjsnode scripts/pm/dispatch-gates.mjs AGENTS.mdorigin/main8e4dda4git show origin/main:.claude/skills/pm-dispatch/SKILL.md | sed -n 249,269p | md5sumgh api repos/objectstack-ai/objectstack/pulls/39697Readers of AGENTS.md text today
Machine readers, found by grep and by the gate derivation. A PR that moves or deletes the named text updates the named reader in the same PR.
pnpm check:pm-skill-ratchetpnpm check:pm-governed-prose(PROSE_SURFACES)pnpm check:required-contexts(INSTRUCTION_SURFACES, theAGENTS.mdrow,statesTheSet)pnpm check:docs-audit-scope(findGuardrailRow)content/docs/releases/RELEASE-OWNED (line 645)node scripts/check-published-list-mirrors.mjs(MIRRORS, its only row)tsfence under it (lines 111-129), held equal toRECOGNISED_PATH_SPELLINGSpnpm check:pm-skill-id-lintpnpm check:agent-test-spellingscripts/pm/check-prior-rulings.mjs(a search tool, not a gate)check:adr-anchors,check:nul-bytes, closing-keyword parity)Not readers of the text: the hooks under
.claude/hooks/(they cite "AGENTS.md Prime Directive #11" in refusal prose, and their self-tests use a grep of AGENTS.md as an allowed-read fixture);check:pm-governed-merges, the queue guard and CODEOWNERS (path only); tests (none reads the root file's text; the hits underpackages/create-objectstackandui/scripts/__tests__are the scaffold template and path fixtures).Prose citations by section name, counted with
git grep -lEiover the tree less AGENTS.md and changelogs. They keep resolving as long as the heading stays, and no row below removes a heading except the two stale sections.--self-testdocs-drift-check.yml, which prints the name in a PR comment)The per-item table
Classes: stays (every session needs it); stays (T) (keyed to a kind of task, but no existing home holds it today, so under the card's definition it cannot be class 2); moves; duplicate; stale. Bytes are measured on
origin/mainwithsed -n 'A,Bp' | wc -c. The range rows partition the file exactly: their gross bytes sum to 78,710. Four rows are clauses inside a range row (line 202, 247-249, 345-348, 533-536) and are counted once, in the totals under the table. "Net" is gross less the pointer or rule sentence that stays behind, an estimate of 100 to 330 bytes per item.@ts-expect-error, TS7006)RECOGNISED_PATH_SPELLINGS,scripts/check-cross-package-test-inputs.mjs:607; line 131 says the gate prints this list in its failure textMIRRORSrow (scripts/check-published-list-mirrors.mjs:266) and the lint.yml step at 3666-3671 retire with the blockdocs/releases-maintenance.md:57-71(same command, same "no arguments", same "no npm install route"); a required CI step compares the bytesui/registry; the pointer goes toui/AGENTS.mdui/sourceui/.claude/skills/objectui-contributor/guides/console-development.md:528-530;ui/AGENTS.md:222already points thereui/sessionspackages/spec/src/index.ts:87-98("NAMESPACE EXPORTS — REMOVED … Use subpath imports instead");eslint.config.mjs:405-411refuses those import names. Loud: a lint error.claude/hooks/guard-main-checkout-bash.sh:32-48docs/adr/README.md:7,12; the rule's home is heregit stash; the three replacements.claude/hooks/guard-shared-stash.sh:44-57; the sentence itself says "details … in its header".claude/skills/pm-dispatch/references/dev-ablation.md:4-5,10,13,33, the file.claude/agents/os-dev.mdsends a dev to before any reverse verificationscripts/pm/.claude/skills/pm-dispatch/references/landing-operations.md. Landing is a seat act (a dispatched dev never merges). The twelve names are already atreferences/readings-ci.md:25-27, and main-red atlanding-operations.md:89-93AGENTS.mdrow leavesINSTRUCTION_SURFACES(thereadings-ci.mdrow already states the set)docs/agents/multi-agent-discipline.md:154scripts/pm/os-regen-merge.sh:232-243(the merge commit is a deferral;--no-verify),:263-266and:303-306(the probe; the two-cspellings that do not disable the driver);scripts/regen-artifacts.mjs:49-59. Line 565 already calls the script "the in-repo authority"mainover generated filesplugins/holds "Official plugins & drivers";ls packages/pluginshas no driver,packages/drivers/holds six, and line 732 of this file says so. The block lists 14 of the 33 directories underpackages/Systemrow: Manifest ispackages/spec/src/kernel/manifest.zod.tsand Datasource ispackages/spec/src/data/datasource.zod.ts.Identityrow: no Profile schema underidentity/.Securityrow: noRoleSchema.Automationrow: no Workflow schemapackages/spec: regenerate before pushing (the rule)GATEDledger,packages/spec/scripts/check-generated.ts:50-150, which carries at least four gates this table lacks (check:export-origins,check:declaration-map,check:strictness-ledger,check:meta-url-spelling); line 672 says "Don't match by hand"docs/agents/build-and-test.md, a new section. Line 681 says the wrapper's "own output is the authority on detail", andcheck-generated.ts:15-21already holds the reason--fixis narrowpackages/rest/src/query-allowlist.ts:76-128(measure from the read points :84-89; open routes excluded by name :99-119; per lane :77-80; composition :121-128). Line 812 calls that header "the authority on detail". Two clauses are not in the header yet (read the helpers the handler calls; pin both halves) and move into it in the same PRerrorowesscripts/check-durability-degradation-log-level.mjs. Lines 28-49 and 79-105 already hold most of it, but line 101 says what to do about a returned outcome "is deliberately not decided here", while AGENTS.md decides it (pin it in its own file's test). That prescription moves incatcharound a writeREAD_SEAM_SCAN_ROOTSat 1604-1608,READ_FAILURE_DISCRIMINATORSat 1857-1863scripts/check-startup-registry-verdict.mjs:43-54, nearly word for word--self-testui/fix; regenerate spec artifactsROADMAP.mdif user-facing or architectural"ROADMAP.md:3-7: the page "is a short public summary" of the North Star "and decides nothing on its own". Its last three commits (2026-10-28, 11-08, 11-18) are all North Star rewrites, none a feature PRTotals, net: duplicate 8,123 in range rows plus 663 in the three clause rows; moves 5,764; stale 1,953. The stays rows hold 61,000 gross (including those 663 bytes), of which 17,581 is stays (T).
Options
domain:skills) · 7 PRs, each Tier H because it edits AGENTS.md · precedent PR #27139: one PR, 5 files, +453/−165 lines, AGENTS.md −6,177 bytesIn business terms. A: throw out the photocopies and the outdated floor plan; nothing is refiled. B: also file each specialist procedure with that specialist's manual and leave a signpost on the shelf. C: replace the handbook with a thin booklet and a shelf of departmental manuals.
The four axes
实际业务需求. The pull is measured in two places. The first is load: every session, whatever its task, reads 19,678 tokens before its first edit, and 16,503 bytes of that is text that is already elsewhere, wrong, or used only by a landing seat. The second is the wrong tables, which cost something today: a session that follows Protocol Domains writes a namespace import that ESLint refuses, and a session that follows Monorepo Layout looks for drivers under
packages/plugins. The card's third claim, that length makes agents miss rules, is not measured on the card, and I did not measure it either. On the ceiling, the row atscripts/pm/check-skill-line-ratchet.mjs:147records two ruled raises (+295, +311), and PR #39697 brings a third (+340). A and B serve the measured pull. C's extra 15 KB serves the unmeasured claim.项目长远合理性. The end state two years out: the always-loaded file holds only what binds every session (the principles, the two human-floor directives, the multi-agent protocol, the path-keyed lookup tables), each rule in one sentence; mechanism detail lives with the gate or module that enforces it; a task's procedure loads when the task starts. That is the progressive-disclosure model of the Agent Skills format (a short description always loaded, the body loaded on trigger), and it is what this file's own charter says at lines 11-19. B moves toward it using only homes that exist, and it removes the second copy of five facts, so it shrinks special cases. A does the same for a smaller set. C reaches further in bytes, but it adds instruction surfaces, register rows and places where two rule files can disagree. On this axis that is growth of contract surface, and C is the option that needs a workaround (new register rows) to keep the maintainer's hand on binding rules.
防 AI 写代码犯错,尤其是防 AI 写元数据 app 犯错. Who sees what when it goes wrong. Deleting a duplicate removes the chance that two copies disagree. Today the "you changed → gate" table has six rows and the wrapper's ledger has at least four more gates, so an agent matching by hand skips some and learns it from a red CI run: loud, one round-trip late. For the groups in PR-2 to PR-4, the detail that leaves is backed by a gate or helper that refuses loudly and prints the prescription, so a session that never follows the pointer is still stopped. The stale tables fail both ways today: the import is refused loudly; the wrong directory is silent until review. The one place B is quieter is PR-7: a seat that misreads "green" arms a red PR and nothing refuses it. That is why the three classes that never land on green alone, PD14 and PD15 stay in every option, and why PR-7 is late in the order and separable. Under C, a binding rule held in a file outside the governed register can be edited by any seat without the maintainer. The failure there is silent drift of a rule, and it sits on the human floor.
创业阶段不扩散需求. A and B add no file kind, no register row and no gate. B's PR-8 removes one gate: the published-list mirror exists only to hold the deleted copy equal to its source. I recommend no new gate with any option, including no gate that checks pointers resolve; the frame's default is no and the maintainer has named none. C adds surfaces and would need rows in
GOVERNED_SURFACES. Each is a standing obligation with no measured pull behind it.os-decision-facets
Prior rulings read: slimming,ceiling,ratchet,pointer,explanations,rules-only → 53 hits; ADR none (the ten ADR decisions the tool named are term coincidences in unrelated records, and none governs this file's size or shape); thread: none; repo: objectstack-ai/objectstack
Read outside that search: ruling record 6417533492 letter A (explanations move, each rule stays as one sentence plus a pointer; PR #27139), ruling record 6184799323 letter B (a raise needs the ruling of record), and ruling 7413403390 (PD12's sentence).
Recommendation
I recommend B, landed in the order of the batch plan.
Self-check: 只看①选 B;②③④ 是否翻转:否.
Confidence gaps. None changes the letter.
Batch plan
All eight PRs edit AGENTS.md and the
CEILINGSrow, so they are Tier H and strictly serial. Each lowers theAGENTS.mdceiling by the bytes it frees and lands every moved rule in its home in the same PR. The ceilings below start from today's 78,712; add 340 to each once PR #39697 lands. A folded form is possible (PR-2, PR-3 and PR-5 as one; PR-4 and PR-6 as one), which makes five landings.packages/rest/src/query-allowlist.ts(the header comment gains two clauses)scripts/check-durability-degradation-log-level.mjs(the header gains the returned-outcome prescription)docs/agents/build-and-test.md(a new section)ui/pair: manifest regeneration, fast iterationui/AGENTS.md(one pointer line; also Tier H).claude/skills/pm-dispatch/references/landing-operations.md; aCROSS_FILE_MOVESdeclaration that raises that file's ceiling by at most 2,142; back-links indocs/agents/multi-agent-discipline.mdAGENTS.mdrow fromINSTRUCTION_SURFACESinscripts/check-required-contexts.mjsscripts/check-published-list-mirrors.mjsand its lint.yml step retire (a governed workflow edit)Option A is the same plan without PR-7, with PR-3 reduced to the read-seam rule (1,702) and PR-4 reduced to the gate table (841).
After the ruling
The seat files one execution card for the chosen option in the fleet area and quotes the ruling comment's id; each PR's body quotes it too. The PRs open one at a time, each from the merged head of the one before, because they share the ceiling row. Each is
skip-changeset(instruction files, scripts and comments only) and waits as a draft for the maintainer's merge, which is the Tier H path. PR-7 declares its cross-file move under the ratchet's standing ruling and needs no ceiling ruling of its own. A row the maintainer wants kept is dropped from its PR and that PR's ceiling arithmetic is recomputed. No row depends on another, except that PR-8's block deletion and gate retirement go together.Related
.claudeentry files).packages/spec/src/index.ts:9still shows the removed namespace-import style in its own header comment.objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-mickey · os-mickey · session_01ASNY8VYEJsv7qCYaPgM6nB
os-dev-report
{ "issue": 39704, "status": "reading", "branch": "claude/issue-39704-agents-md-analysis", "pr": null, "session": "session_01ASNY8VYEJsv7qCYaPgM6nB", "premise_still_valid": true, "summary": "Read-only analysis delivered as comment 7414104837 on this card (32,030 bytes, read back identical). Every rule in AGENTS.md is placed in one class over rows that partition the file's 78,710 bytes: stays 61,000 gross (17,581 of it task-keyed with no existing home), duplicate 8,786 net, moves 5,764 net, stale 1,953 net. Three options are laid out (A: duplicates and stale only, to 67,971 bytes; B: plus the class 2 moves, to 62,207 bytes; C: a deeper restructure, estimated near 46 KB) with a recommendation of B, the four axes, the facet block and an eight-PR batch plan that lowers the ceiling from 78,712 to 62,209. No file was edited, no commit made, no PR opened, and the branch probe was not pushed (the order allowed it; nothing needed it). Deviations: one Write-tool call for a scratch .md was refused by the harness's report-file rule (not a classifier refusal), so the comment bodies were written to the scratchpad as .txt tool inputs; origin/main moved twice during the run (64188fb4, then 8e4dda438d, then 44cf0fcd76) with AGENTS.md byte-identical each time.", "tests": "No test owed: no diff. Measurements: `git show origin/main:AGENTS.md | wc -lc` = 1054 78710 at 64188fb4, 8e4dda438d and 44cf0fcd76; the item script asserts the row ranges are contiguous from line 1 to 1054 and sum to 78,710; four-axis frame md5 abff5f852c8fd09b79ec0623439aa4f0 (21 lines) on 8e4dda438d; each stale and duplicate row carries its path and line evidence in the comment.", "gates": "No local gate owed (no changed file; `node scripts/pm/dispatch-gates.mjs` with no paths: nothing to derive). Read-only runs, exit captured before any pipe: `node scripts/pm/check-skill-line-ratchet.mjs` exit 0 (AGENTS.md 78710 of 78712, headroom 2; widest row 751, pin 768); `node scripts/pm/dispatch-gates.mjs AGENTS.md` exit 0 (7 path-matched families); `node scripts/pm/verify-review-tier.mjs` on this run's transcript exit 0, PASS; `node scripts/pm/check-prior-rulings.mjs --card 39704 --terms ...` exit 0 (53 ADR hits, all term coincidences; thread: none). CI: none, there is no PR.", "mcp_calls": "0", "api_writes": "2 relay writes through `scripts/pm/post-stamped.mjs --comment=39704` (transport dispatch: one repository_dispatch each, executed as issue-comment creates on #39704): the analysis comment 7414104837 and this report comment. GET reads only otherwise.", "classifier_refusals": [], "open_questions": [ { "question": "How far to slim AGENTS.md: which of the three options in comment 7414104837, and for the stale rows, delete or correct?", "options": ["A: delete duplicates and stale text only (7 Tier H PRs, 78,710 to 67,971 bytes)", "B: A plus the class 2 moves with one pointer line each (8 Tier H PRs, to 62,207 bytes)", "C: deeper restructure with new rule homes (estimate near 46 KB; needs governed-register rows; no precedent)"], "recommendation": "B, in the batch order of the comment, because it only removes second copies and uses existing homes, adds no file kind, register row or gate, and leaves PD14, PD15 and the never-on-green classes untouched. Stale rows priced as deletion." }, { "question": "Conflict to note, not to rule: the dispatch order asks the 速读 block for what, how much it saves and the recommendation; `references/decision-analysis.md` fixes four lines (problem, each option, recommendation, what happens if undecided).", "options": ["kept the fixed four lines and put the savings in the option line", "rewrite to the order's three items"], "recommendation": "the first, as posted; the fixed shape is the unconditional text and it carries all three items the order names" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: #39704 · noted, not filed · the four stale rows (AGENTS.md lines 202, 579-605, 606-630, 1046) are findings in the analysis table, per the order's fence", "carrier: #39704 · noted, not filed · the ratchet prints a hint that the AGENTS.md table-row pin can drop 768 to 751 (folded into PR-1 of the batch plan)", "carrier: none · noted, not filed · observation: `packages/spec/src/index.ts:9` still shows the removed namespace-import style in its header comment", "carrier: none · noted, not filed · observation: `.claude/skills/scenario-eval/SKILL.md` (15,623 bytes) has no row in the ratchet's CEILINGS map, whose header counts four other playbook SKILL.md files; whether that absence is intended was not read" ] }objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-mickey · os-mickey · session_01ASNY8VYEJsv7qCYaPgM6nB
Release: 2026-12-04T14:21Z · session
session_01ASNY8VYEJsv7qCYaPgM6nBreleases claim 7413547410 · because the analysis is delivered and the card now waits on the maintainer's choice · intoneeds-user-decision, assignee cleared.Resume-from: none — an analysis card; nothing was committed or pushed.
L1 (seat): ACCEPT of the analysis 7414104837 (os-dev-report 7414155545). Checked:
origin/main;Decision asked of the maintainer: the option, A, B or C (recommendation B); and for the four stale rows, delete (priced) or correct.
Governing text: AGENTS.md lines 11-19 (the file's charter);
scripts/pm/check-skill-line-ratchet.mjsheader (the ratchet discipline); ruling record 6417533492 letter A (the earlier slimming, PR #27139).objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-mickey · os-mickey · session_01ASNY8VYEJsv7qCYaPgM6nB
Maintainer ruling recorded · 2026-12-04T15:06Z · #39704: option B; the stale rows are deleted.
repo:objectstack@os-mickey's sessionsession_01ASNY8VYEJsv7qCYaPgM6nB; asked on analysis 7414104837 after this card entered the decision inbox (7414214052). Verbatim choices: 「B: dupes+stale+moves (Rec.)」 for the option, 「Delete (Rec.)」 for the stale rows.scripts/check-published-list-mirrors.mjswith its block.AGENTS.mdCEILINGSrow by the bytes it frees, measured, and lands every moved rule in its home in the same PR;objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-mickey · os-mickey · session_01ASNY8VYEJsv7qCYaPgM6nB
Ruled: 7415367635 (the maintainer, option B).
needs-user-decision→pm:queuein this stroke so the card can close as completed; nothing is left to dispatch here, and the execution moves to #39728.objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-mickey · os-mickey · session_01ASNY8VYEJsv7qCYaPgM6nB
Closed as completed 2026-12-04T15:10Z: the analysis is delivered (7414104837) and ruled (7415367635, option B; the stale rows are deleted). Execution moves to #39728,
pm:blockedon #39697 because both edit theAGENTS.mdCEILINGSrow.