Repository navigation
Backlog
Labels
area:builddomain:docspm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Filing gate: ① maintainer ruling. Tesla asked 「文档站为什么这么大,评估有可能删内容吗」 (2026-11-28T13:14Z), then 「立卡检查」 (13:23Z). Source: maintainer.
Grading: area:build · domain:docs · Task · p2 (the size work of #36192 ran at p2; this is its content half) · reach: every docs-site deploy (about 1 MiB of deploy output per page) and every reader of /docs/references.
Dedupe: "docs references prune", "docs site size content" → none open; related #36192 (build-side slimming, closed by the maintainer at #38297: 「到此为止」).
维护者速读
- 问题:文档站大,主要因为页数多。每页在部署里约占 1 MiB(预渲染 HTML、RSC、分段数据、函数里两份编译内容)。501 页里 239 页是从 spec zod 自动生成的 references/,占 48%。
- 本卡:只评估,不删任何东西。逐个命名空间量清楚:这些页和手写文档、skills、llms.txt 重复多少,删或合并能省多少,读者会失去什么。
- 要你做的:看报告,逐项决定删、合并或保留。之后的改动另开卡。
Measured at origin/main b503291 (seat read)
content/docs: 501 mdx pages, 7.5 MB.content/docs/references: 239 pages, 5.6 MB, all written bypackages/spec/scripts/build-docs.ts(the file says so at the top).- References per namespace: ai 19, api 38 (1.4 MB), automation 17, data 36 (992 KB), identity 6, integration 2, kernel 31, marketplace 6, qa 2, security 7, shared 11, studio 4, system 41 (744 KB), ui 18 (1.1 MB).
- Inbound: 63 hand-written pages link into
/docs/references/…, reaching 224 distinct reference URLs. Any removal must keep or redirect these. - docs site: measure and shrink the Vercel deploy output (~920 MB, ~12.8k files per deploy) — server chunks, prebuilt OG images, per-page payloads #36192 deploy reading (run 46146191991, 742.8 MB uploaded at 631.7 MiB measured): prerendered HTML 178.5, RSC 84.5, segments 51.3, function code 188.5 (the compiled collection appears twice), node_modules 23.8, OG images 41.2, llms-full.txt 27.6 (MiB).
releases/(30 pages) is release-owned and out of scope.
Ask (evaluation only, nothing removed in this card)
- For each references namespace: what it covers that no hand-written page, skill (
skills/**/references) or llms.txt covers, and what it duplicates. Name concrete pages, not only totals. - Savings per option, measured with
apps/docs/scripts/measure-deploy-output.mjson an offline build: (a) delete a namespace, (b) merge its pages into one page per namespace, (c) keep it but leave it out of prerender or OG generation, if the framework allows that. - Reader cost per option: the 224 inbound URLs, search, llms.txt and llms-full.txt consumers, AI agents that read the site.
- The same question for the hand-written pages: run the per-page duplication check and the site-structure check (the 10-28 standing rule for docs moves) and list pages that duplicate each other.
- Whether
build-docs.tscan emit fewer, larger pages without losing anchors, and what that would cost to build.
Done when
- A report on this card answers 1–5 with measured numbers, one table row per namespace with a recommended action (delete, merge, keep). The maintainer rules on it; any change ships under a new card.
Metadata
Metadata
Assignees
Labels
area:builddomain:docspm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim: PM loop round 1
Session:
session_01L9qibyUSf2nKJWW6qBemSUThread session:
session_01L9qibyTFU1enPVNhwmKKomAccount:
os-teslaBranch:
claude/project-thread-kbzddg(no push; evaluation only)Worktree:
objectstack-issue-38321Domain:
devx(the card was filed withdomain:docs, which is not in the pm-dispatch domain table;content/docsandapps/docsbelong todomain:devx. The filer's slip, left for triage to correct; this claim does not touchdomain:*.)Area:
o3-build(area:build p2, a seat card thread)Seat:
repo:objectstack#3Seat rulings on the pre-claim report (
/mnt/project-files/card-38321/pre-claim-report-333e6f3f.md, main 333e6f3):docsUrlin platform-objects and spec sources). The report counts them per namespace beside the hand-written links;redirects.mjsis the precedent for any redirect option.Surface: throwaway local builds and a local
build-docs.tsvariant only. Nothing committed, pushed or opened as a PR.Stop on breach and explain in the report.
Container & model:
S,mode:thread,model: claude-opus-5-5 (default tier — dispatch-gates.mjs --tier: "no path-derived mandate"),effort: high, reason: the thread session serves this tier (get_session last_served_model)Writes: one os-dev-report comment on this card through the relay write tools; report the comment number.
Clause-②: no
Metadata-protocol: none
Skills-docs: none (evaluation only)
Review owed: none before the maintainer reads the report; any change ships under a new card.
Responsibility: n/a (evaluation)
Premise: holds, read on origin/main 333e6f3 (with the inbound-count correction above)
Serial constraints cleared:
noneReadings owed in the report: the offline baseline measured with
measure-deploy-output.mjs, per-namespace attribution, the three variant builds (a)(b)(c) with savings, inbound links (hand-written and runtime) per namespace, the duplication and structure findings, one table row per namespace with a recommended action.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyTFU1enPVNhwmKKom
os-dev-report
{ "issue": 38321, "status": "reading", "branch": "claude/project-thread-kbzddg (nothing committed or pushed; evaluation only)", "pr": null, "session": "session_01L9qibyTFU1enPVNhwmKKom", "premise_still_valid": true, "summary": "Evaluation only, nothing removed. Offline vercel build at origin/main 333e6f3f measured 632.4 MiB distinct contents / 13,039 deployment files. The 239 generated references pages cost 288.3 MiB of that (45.6%), measured by building the site without them (344.1 MiB, 7,303 files). Folding each namespace into one page saves 95.4 MiB (15.1%) but produces pages of up to 11.1 MB HTML; leaving the pages out of prerender saves 170.3 MiB (26.9%) by moving them to on-demand function renders, against the docs-deploy direction on #36192. Recommendation: remove the generated references from the site and redirect their URLs (option A below); the hand-written pages show no copied text, but the protocol/ tree re-covers about nine subjects the Build trees already own.", "tests": "Four offline builds with `npx vercel@60.1.3 build --prod` under scripts/pm/os-verify-lock.sh (placeholder .vercel/project.json, no Vercel credentials), each VERDICT command-exit 0, each measured with `node apps/docs/scripts/measure-deploy-output.mjs`: baseline (TURBO_FORCE, 4m52s) 632.4 MiB / 13,039 files; (a) references deleted (1m53s) 344.1 MiB / 7,303; (b) one page per namespace (2m46s) 537.0 MiB / 7,663; (c) references out of generateStaticParams for the page, OG and llms.mdx routes (2m49s) 462.1 MiB / 7,303. Per-section attribution by route prefix with a read-only script (attribute.mjs, contents shared across sections counted apart). Variants were local edits reverted with git checkout; the worktree is clean.", "gates": "n/a — no code change, no PR", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "5 — issue_read x3 (get, get_comments x2), get_session x1, ToolSearch-loaded schemas only; no GitHub write tool", "api_writes": "1 — this os-dev-report comment through scripts/pm/post-stamped.mjs", "open_questions": [ { "question": "What should happen to the 239 generated references pages on the docs site?", "options": [ "A — remove the whole generated references tree from the site and redirect every URL (to the hand-written page on that subject where one exists, otherwise to the zod source file on GitHub); measured saving 288.3 MiB (45.6%), files 13,039 -> 7,303, llms-full.txt 27.6 -> 11.0 MiB", "B — remove the nine platform and wire-contract namespaces (api, system, kernel, shared, marketplace, identity, integration, studio, qa), keep the five authoring namespaces (data, ui, automation, security, ai); estimated saving about 146-165 MiB (23-26%)", "C — keep every page but fold each namespace into one page; measured saving 95.4 MiB (15.1%), pages up to 11.1 MB HTML", "D — keep every page but take it off prerender and OG; measured saving 170.3 MiB (26.9%), pages become on-demand function renders" ], "recommendation": "A, because the same text already ships three other ways (the zod sources and json-schema/ in the @objectstack/spec package, the type schemas the runtime serves to MCP clients, IntelliSense), the skills send AI agents to the zod sources rather than the site, the site copy shows main while a project may run an older spec, 97 of 238 pages have no inbound link at all, and it is the largest single block of every deploy. B is the fallback if human readers browsing the site without the package matter more than measured here." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat 3 · the protocol/ tree (25 pages, 26.7 MiB of deploy) re-covers about nine subjects the Build trees own (pairs in the report); folding it is a docs move that owes the 10-28 per-page check, which this report starts; not filed", "carrier: seat 3 · content/docs/protocol-upgrade/ is generated at build time (3 pages, 18.md alone 1.95 MB source) and costs 15.6 MiB of deploy; the same guide ships in the npm package as protocol-upgrade-guide.md; not in this card's scope; not filed" ] }维护者速读
llms-full.txt27.6 → 11.0 MiB。它比普通页贵,因为每页都是整张属性表,而且编译后的内容在搜索和 llms.mdx 两个函数里各带一份。.describe()文字。同样的文字已经随@objectstack/spec发布(src/**/*.zod.ts和json-schema/),运行时也把类型 schema 发给 MCP 客户端,编辑器里有 IntelliSense。skills 让 AI 读的是装好的包里的 zod 源码,不读网站。网站上这份是第三份,而且跟的是 main,用户项目可能还在旧版本上。docsUrl指向shared/protection,os upgrade的迁移条目指向 6 页)。删页就要给这些做重定向,另外要给shared/protection写一个手写落点。protocol/目录(25 页)有大约 9 对页面和"构建"区的页讲同一件事,例如查询语法、字段类型、动作、错误码、国际化、RAG。是否合并要按 10-28 的规矩逐页定,本卡不动。1. Measured baseline (origin/main 333e6f3, offline)
measure-deploy-output.mjs: 632.4 MiB distinct contents, 13,039 deployment files (matches the CLI's file count on run 46146191991). By section (attribute.mjs, route prefix; contents shared by two sections counted apart, 0.1 MiB):The prerendered part alone undercounts references: the measured total cost (variant a) is 288.3 MiB, because removing them also shrinks the compiled collection in the functions by 83.4 MiB (search 95.0 -> 52.9 MiB, llms.mdx 117.0 -> 74.9 MiB) and
llms-full.txtby 16.6 MiB.2. Options, measured
3. Per namespace
Saved-if-deleted = measured prerendered MiB for the namespace + its share (by source bytes) of the measured 83.4 MiB function-code and 16.6 MiB llms-full drop; the rows sum to 269.5 of the measured 288.3 MiB (the rest is in contents shared with other pages). Key coverage = share of the property keys on the namespace's pages that appear in a hand-written page or skill naming the same schema, source file or URL; a rough indicator (common keys like
nameinflate it), not a proof of coverage. Runtime links = distinct reference pages linked from shipped source (descriptions, lint messages, migration entries, platform objects, READMEs), tests and generators excluded.docsUrlfrom 35 platform app and object files, shown on locked itemsvariant-docs.json, the liveness ledger); shipped source links 22 pages.authorable-surfaceledger does not separate the namespaces: 207 of 238 pages carry a schema the ledger lists (98% of bytes), so B's split is by subject, not by that ledger.**Source:** packages/spec/src/…).4. Reader cost
redirects.mjs:140-149already retiresreferences/cloud/*this way.shared/protectionfrom 35 platform-objects files (stamped into the lock notice an admin sees), 6 pages from migration registry entries (os upgradeoutput: 4system/*,ui/,kernel/plugin-security-advanced),automation/approvalandautomation/time-relative-triggerfrom lint messages, about 8 pages named inside zod descriptions (so in IntelliSense and json-schema), 5 package READMEs (npm pages). Under A these redirect; the protection link needs a hand-written target first.packages/spec/scripts/build-skill-references.ts), MCP clients read the served type schemas, and the site copy is main's schema, not the agent's installed version. No measured agent path reads/docs/references.5. Fewer, larger pages from build-docs.ts (item 5)
-1suffixes), soreferences/ns/page#anchorcan redirect toreferences/ns#anchorwith a page-to-section map.build-docs.ts(1,197 lines: page grouping, per-namespacemeta.json, index cards, the title rule, thecheck:docsdrift check) and to the generator tests that pin page paths (file-description.test.ts,page-title.test.ts,format-type.test.ts); an M card. Grouping by the existingmeta.jsonsections (about 40 pages) would land between the baseline and (b), not measured.6. Hand-written pages: duplication and site structure (item 4, 10-28 rule)
ui/components/*(34 shingles) and a shared plugin-page template acrossfrontend/plugins/*. No page repeats another's prose.Within one tree:
concepts/indexwithconcepts/design-principlesandconcepts/metadata-driven(0.47–0.49); five architecture pages (concepts/architecture,concepts/architecture-overview,kernel/architecture,protocol/diagram, andfrontend/architecture-overview, which is ObjectUI's and a different subject); fields on four pages (data-modeling/fields,data-modeling/field-types,protocol/objectql/types,references/data/field). The query pair was spot-read: both are current (both state that joins and window functions left the request surface), so this is two maintained copies, not a stale one.protocol/(25 pages, 912 KB source) sits under "Platform" and mirrors the Build trees (objectql≈ data-modeling,objectui≈ ui,kernel≈ kernel/api), the same ambiguous-top-level smell the 10-28 rule names.frontend/(34 pages) is the ObjectUI renderer andui/is metadata authoring; the names do not say so. Foldingprotocol/is the hand-written change with a real saving (up to about 27 MiB plus its function share) but is a docs move: each pair above needs its own keep/merge decision first. Not part of this card.Files (all under /mnt/project-files/card-38321/): measure-base.txt, measure-a.txt, measure-b.txt, measure-c.txt, attr-base.txt, attr-b.txt, coverage-pages.txt (every reference page with its readings), dup.txt, topic-hand.txt, topic-refs.txt, variant-c.patch and the read-only scripts.
Read at 2026-11-28T13:47Z.