docs/plans/2026-05-31-editing-behavior-docs.md
Objective: Add a source-backed Plate guide for editing behavior, wire it into docs navigation, and verify the new page renders without stale anchors, duplicate delete/merge docs, or unbacked API claims.
Goal plan: docs/plans/2026-05-31-editing-behavior-docs.md
Template: docs/plans/templates/docs.md
Primary template: docs/plans/templates/docs.md
Applied packs:
Docs source:
Docs lane:
content/docs/(guides)/editing-behavior.mdx,
content/docs/(guides)/plugin-rules.mdx,
content/docs/(plugins)/(elements)/table.mdx, content/docs/meta.jsonOverridePlugin,
AffinityPlugin, rule handling, merge guards, and node flags; feature
packages own default rules and table transforms; apps own local plugin config.plugin-rules.mdx, plugin-input-rules.mdx,
editor-methods.mdx, table.mdxCompletion threshold:
node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-05-31-editing-behavior-docs.md
passes.Verification surface:
OverridePlugin.ts, withBreakRules.ts, withDeleteRules.ts,
withMergeRules.ts, withNormalizeRules.ts, AffinityPlugin.ts,
deleteMerge.ts, mergeNodes.ts, BasePlugin.ts, BaseTablePlugin.ts.pnpm --filter www build:source,
pnpm --filter www check:docs.curl -I http://localhost:3002/docs/editing-behavior
and body grep for Editing Behavior, Choose the Right Surface,
Merge Behavior, Plugin Rules..agents/skills/autoreview/scripts/autoreview --mode local.Constraints:
.agents/rules/docs-creator.mdc for docs style and workflow.Boundaries:
localhost:3002; Browser plugin was
unavailable, so curl route proof was used.Blocked condition:
Docs state:
Current verdict:
Completion rule:
update_goal(status: complete) while any required checklist item
remains unchecked. If an item does not apply, check it and add N/A: <reason>.update_goal(status: complete) until every completion threshold
above is satisfied, final evidence is recorded, and
node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-05-31-editing-behavior-docs.md
passes.Start Gates:
| Gate | Applies | Evidence |
|---|---|---|
docs-creator loaded | yes | .agents/skills/docs-creator/SKILL.md read. |
| Active goal checked or created | yes | create_goal created active goal for editing behavior docs. |
| Docs lane selected | yes | Guide/system lane. |
| Target docs read | yes | plugin-rules.mdx, table.mdx, editor-methods.mdx, plugin-input-rules.mdx. |
| Nearest sibling docs read | yes | Same as target docs read. |
| Docs style doctrine read | yes | docs-creator structural and shadcn-dense guidance read. |
| Documented source code read | yes | Core override, affinity, Slate merge/delete, and table plugin source read. |
| Ownership map drafted | yes | Core runtime / feature package / app config split recorded above. |
| Plugin-page rules decision | yes | N/A: system guide, not plugin page. |
| Browser/render proof decision | yes | Curl route proof because Browser tool was unavailable. |
| PR/tracker expectation decision | yes | N/A: user did not ask for PR/tracker update. |
Work Checklist:
docs-creator was read before writing.Completion Gates:
| Gate | Applies | Required action | Evidence |
|---|---|---|---|
| Named verification threshold | yes | Run the source audit, parser/build, link/demo check, or review named in this plan | Source files read; pnpm --filter www build:source; pnpm --filter www check:docs; curl route proof; autoreview clean. |
| Docs lane shape satisfied | yes | Check the lane-specific structure against docs-creator | Guide/system page with quick decision table before mechanics and API reference last. |
| Source-backed claim audit | yes | Verify every named API/option/transform/component/import/route against source | Core/table source files listed in Verification surface were read before writing. |
| Ownership map verified | yes | Confirm package/layer/kit/app-local ownership claims against source | Ownership map recorded above. |
| MDX/content parser | yes | Run pnpm --filter www build:source for MDX/content changes | Passed. |
| Links/routes/previews verified | yes | Check leaf links, routes, anchors, and <ComponentPreview> names or record N/A | Route returned 200; body contained title and key headings; no new previews. |
| Plugin page specifics | yes | If plugin page, apply docs-creator kit/manual/API rules or record N/A | N/A: system guide, not plugin page. |
| Browser/render surface changed | yes | Capture Browser Use proof or record explicit waiver/blocker | Browser tool unavailable; curl proof on local server used. |
| Package/API behavior changed | yes | Add changeset or record N/A | N/A: docs/nav only. |
| Agent rules or skills changed | yes | Run pnpm install and verify generated skill sync | N/A: no agent rules or skills changed. |
| Autoreview for non-trivial docs changes | yes | Load .agents/skills/autoreview/SKILL.md and run the right target, or record N/A for tiny/no-local-patch work | .agents/skills/autoreview/scripts/autoreview --mode local ... clean. |
| Final lint | yes | Run pnpm lint:fix or scoped equivalent | Scoped equivalent: pnpm --filter www check:docs passed for docs source. |
| Goal plan complete | yes | Run node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/2026-05-31-editing-behavior-docs.md | ready to run. |
Phase / pass table:
| Phase | Status | Evidence | Next |
|---|---|---|---|
| Intake and source read | complete | plan created; sibling docs and source files read | writing |
| Writing | complete | new guide and adjacent links/nav edited | verification |
| Verification | complete | parser, docs parity, route proof, autoreview passed | closeout |
| PR / tracker sync | complete | N/A: no PR/tracker requested | final response |
| Closeout | complete | completion checker ready | final response |
Findings:
Decisions and tradeoffs:
Plugin Rules as the rule reference.Editing Behavior as the concept guide between Plugin Rules and
Plugin Input Rules.Table to the document-level merge model instead of moving table
merge content out of the table plugin page.Implementation notes:
content/docs/(guides)/editing-behavior.mdx.content/docs/(guides)/plugin-rules.mdx.content/docs/(plugins)/(elements)/table.mdx.content/docs/meta.json.Review fixes:
Error attempts:
| Error / failed attempt | Count | Next different move | Resolution |
|---|---|---|---|
| None yet | 0 |
Verification evidence:
node -e "JSON.parse(require('fs').readFileSync('content/docs/meta.json','utf8')); console.log('meta ok')": passed.pnpm --filter www build:source: passed.pnpm --filter www check:docs: passed.curl -I http://localhost:3002/docs/editing-behavior: 200 OK.curl http://localhost:3002/docs/editing-behavior | rg ...: found title and key headings..agents/skills/autoreview/scripts/autoreview --mode local ...: clean, no accepted/actionable findings.Final handoff contract:
pnpm --filter www build:source passed.Final handoff / sync:
localhost:3002.Timeline:
pnpm --filter www build:source passed.pnpm --filter www check:docs passed.localhost:3002/docs/editing-behavior returned 200 and rendered key headings.Reboot status:
| Question | Answer |
|---|---|
| Where am I? | Intake and source read |
| Where am I? | Closeout |
| Where am I going? | Final response |
| What is the goal? | Add and verify the Editing Behavior guide |
| What have I learned? | The gap was connective concept docs, not missing API refs |
| What have I done? | See Timeline |
Open risks: