cli/docs/adr/0004-plugin-builds-validate-seed-content-sections.md
Alex Dunmow c783812b58 Require pluginsdk v0.3.11 for seed content section validation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 00:56:03 +08:00

25 lines
1.2 KiB
Markdown

# Plugin builds validate seed content sections
The CLI takes its codeless build and its seed validation from
`block/pluginsdk/bnp` (ADR 0003). pluginsdk v0.3.11 (pluginsdk ADR 0010) adds
the seed sections CMS ADR 0213 applies: `master_pages`, `theme_preset`,
`mailing_lists`, `posts`, `email_templates` and the page fields `seo` and
`replace_existing`.
Decision: the CLI requires pluginsdk v0.3.11. `ninja plugin build` and
`ninja plugin publish` validate those sections structurally for wasm and
codeless repos alike, and refuse a seed that uses them unless `plugin.mod`
declares a `compatibility.plugin_sdk` constraint that excludes hosts before
v0.3.11. An older CMS ignores the sections, so the constraint is what makes it
refuse the artifact.
Consequences:
- `go.mod` pins `git.dev.alexdunmow.com/block/pluginsdk v0.3.11`.
- A plugin author who adds a post or master page content to a seed also raises
the plugin's `plugin_sdk` lower bound to `>=0.3.11`.
Keywords: pluginsdk v0.3.11, ValidateSeedDir, seed.json, master_pages,
theme_preset, mailing_lists, posts, email_templates, seo, replace_existing,
plugin_sdk, compatibility, ninja plugin build, ninja plugin publish, WO-092