docs/plans/2026-06-02-rewrite-performance-guide.md
Objective:
Rewrite content/docs/(guides)/performance.mdx as a current-state,
source-backed guide for Plate docs performance evidence and benchmark ownership.
Goal plan: docs/plans/2026-06-02-rewrite-performance-guide.md
Template: docs/plans/templates/docs.md
Primary template: docs/plans/templates/docs.md
Applied packs:
Docs source:
content/docs/(guides)/performance.mdxDocs lane:
content/docs/(guides)/performance.mdxapps/www public docs harness plus
benchmarks/editor Evidence Kit labcontent/docs/examples/huge-document.mdx,
content/docs/(guides)/static.mdxCompletion threshold:
pnpm --filter www build:source, pnpm --filter www check:docs, Browser
verification, and the autogoal completion check pass or record a concrete
blocker.Verification surface:
pnpm --filter www build:source and
pnpm --filter www check:docs from /Users/zbeyens/git/plate-2.rg for old absolute links and old benchmark numbers in the
source docs page.http://localhost:3000/docs/performance
and verified the rewritten sections render with no page console errors.Constraints:
.agents/rules/docs-creator.mdc and the loaded docs-creator skill.Boundaries:
content/docs/(guides)/performance.mdx,
apps/www/src/registry/examples/huge-document-demo.tsx,
apps/www/src/app/dev/editor-perf/page.tsx,
apps/www/scripts/run-editor-perf.mts,
benchmarks/editor/README.md,
benchmarks/editor/research/benchmark-registry.json,
benchmarks/editor/benchmarks/results/benchmark-health-latest.json, and
benchmarks/editor/benchmarks/results/rich-text-editors-latest.json./docs/performance on the existing apps/www dev server.Blocked condition:
Docs state:
Current verdict:
Completion rule:
Start Gates:
| Gate | Applies | Evidence |
|---|---|---|
docs-creator loaded | yes | Skill instructions loaded and followed for source-backed current-state docs |
| Active goal checked or created | yes | Goal scratchpad created with docs template |
| Docs lane selected | yes | Classified as guide/system |
| Target docs read | yes | Read content/docs/(guides)/performance.mdx before editing |
| Nearest sibling docs read | yes | Read huge-document and static guide docs |
| Docs style doctrine read | yes | Used docs-creator current-state/no-changelog rules |
| Documented source code read | yes | Read editor-perf route, runner, huge-document demo, Evidence Kit README/results |
| Ownership map drafted | yes | Evidence Surfaces and Source Map tables added |
| Plugin-page rules decision | yes | N/A: guide page |
| Browser/render proof decision | yes | Browser route proof required and completed |
| PR/tracker expectation decision | yes | N/A: no PR/tracker request in this turn |
Work Checklist:
docs-creator was read before writing.Completion Gates:
| Gate | Applies | Required action | Evidence |
|---|---|---|---|
| Named verification threshold | yes | Run source audit, parser/parity, stale-claim scan, Browser proof | Completed in /Users/zbeyens/git/plate-2 |
| Docs lane shape satisfied | yes | Check guide/system structure against docs-creator | Quick Path, Evidence Surfaces, Public Harness, Evidence Kit, Claim Checklist |
| Source-backed claim audit | yes | Verify named routes/commands/artifacts against source | run-editor-perf.mts, editor-perf/page.tsx, benchmark registry/results read |
| Ownership map verified | yes | Confirm app-local and benchmark-lab ownership against source | Evidence Surfaces and Source Map tables align with source files |
| MDX/content parser | yes | Run source build and docs parity | pnpm --filter www build:source; pnpm --filter www check:docs |
| Links/routes/previews verified | yes | Check leaf docs link and route render | Browser route proof for /docs/performance; /docs/examples/huge-document link present |
| Plugin page specifics | no | Record N/A | N/A: guide page |
| Browser/render surface changed | yes | Capture Browser proof | In-app Browser verified title, new sections, absent stale claims, and no page errors |
| Package/API behavior changed | no | Record N/A | N/A: docs-only source rewrite |
| Agent rules or skills changed | no | Record N/A | N/A: no skill/rule edit in this turn |
| Autoreview for non-trivial docs changes | no | Record N/A | N/A: user asked rewrite, not review; docs parser/browser gates cover this change |
| Final lint | yes | Run scoped equivalent or record ignored surface | pnpm exec biome check ... --fix ran; Biome ignores MDX/plan markdown |
| Goal plan complete | yes | Run completion checker | node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-06-02-rewrite-performance-guide.md |
Phase / pass table:
| Phase | Status | Evidence | Next |
|---|---|---|---|
| Intake and source read | complete | Read target, siblings, source route/runner, Evidence Kit artifacts | writing |
| Writing | complete | Rewrote content/docs/(guides)/performance.mdx | verification |
| Verification | complete | build:source, check:docs, stale-claim scan, Browser proof | closeout |
| PR / tracker sync | complete | N/A: no PR/tracker action requested | final response |
| Closeout | complete | Plan updated and completion check run | final response |
Findings:
benchmarks/editor active evidence currently covers Slate v2 vs Slate, not
Plate vs Slate public overhead.apps/www/public/r/performance-docs.json is stale registry output; repo rules
say not to regenerate registry output locally.Decisions and tradeoffs:
Implementation notes:
--summary-out artifact.benchmark-health-latest.json.Review fixes:
475.61 ms, 529.58 ms, 972.70 ms, and related
markdown-profile claims from the source guide.Error attempts:
| Error / failed attempt | Count | Next different move | Resolution |
|---|---|---|---|
pnpm --filter www dev -- --port 3001 forwarded flags as a directory | 1 | Start Next directly from apps/www | Found existing dev lock instead |
| Direct Next dev on ports 3001/3002 blocked by existing dev lock | 2 | Use existing dev server on 3000 | Existing server rendered route after compile |
| Scoped Biome check ignored MDX/plan markdown | 1 | Record ignored lint surface | Parser/parity/browser checks cover docs change |
Verification evidence:
pnpm --filter www build:source passed in /Users/zbeyens/git/plate-2.pnpm --filter www check:docs passed in /Users/zbeyens/git/plate-2.rg -n "/Users/zbeyens|475\\.61|529\\.58|972\\.70|480\\.60|standalone markdown benchmark|it depends" 'content/docs/(guides)/performance.mdx' returned no source-page matches.http://localhost:3000/docs/performance: title
Performance - Plate, Quick Path, Evidence Surfaces,
public-slate-vs-plate, and Evidence Kit present; old 475.61 ms and
rich-markdown mount claims absent; page console errors empty.pnpm exec biome check 'content/docs/(guides)/performance.mdx' docs/plans/2026-06-02-rewrite-performance-guide.md --fix ran and reported both paths ignored by Biome.Final handoff contract:
build:source and check:docs passed./docs/examples/huge-document route link present;
no preview added.apps/www/public/r/performance-docs.json remains stale by
repo rule until CI-owned registry regeneration runs.Final handoff / sync:
http://localhost:3000/docs/performance verified.Timeline:
Reboot status:
| Question | Answer |
|---|---|
| Where am I? | Closeout |
| Where am I going? | Final response |
| What is the goal? | Rewrite performance guide as source-backed current-state docs |
| What have I learned? | Public Plate-vs-Slate docs harness and Slate v2 Evidence Kit evidence must stay separate |
| What have I done? | Rewrote guide, verified parser/parity/browser, recorded evidence |
Open risks: