Files
summercms/.planning/phases/38-extensible-journal-embed-providers/38-VALIDATION.md

4.6 KiB

phase, validated, gate_script, status
phase validated gate_script status
38-extensible-journal-embed-providers 2026-11-28 scripts/check-phase38.sh passed

Phase 38: Extensible Journal Embed Providers — Validation Matrix

Gate Command: bash scripts/check-phase38.sh Status: PASS (all 5 stages green, zero release tags or consumer bumps per AGENTS.md / CLAUDE.md rule 5)

Decision & Requirement Coverage (D-01 .. D-09)

Decision / Invariant Verification Target Automated Proof Result
D-01 Generic embed seam; youtube default; no app-specific viz or SVG uploads sm-journal-plugin & vue-journal-layer TestEmbedRegistryDefaultAndRegistration, embeds.test.ts, neutral READMEs PASS
D-02 Dual registration (golem15.journal.embed_providers YAML + Go EmbedRegistry on backpack.App), fail-loud boot validation ../sm-journal-plugin/classes/embed_registry.go, plugin.go TestEmbedRegistryDefaultAndRegistration (YAML merge, invalid key/regex/mode errors naming provider) PASS
D-03 Pair-aware (data-embed, data-id) enforcement + thread-safe per-registry policy under -race ../sm-journal-plugin/classes/format_html.go TestEmbedRegistryPairAwareSanitizationAndFallbackXSS, TestEmbedRegistryConcurrentIsolationRace (go test -race -short ./...) PASS
D-04 Allowed <figure> attributes (data-embed, data-id, validated data-aspect/data-height; zero CSS injection) sm-journal-plugin & vue-journal-layer TestEmbedRegistryPairAwareSanitizationAndFallbackXSS, embeds.test.ts (CSS injection & orphan attr stripping) PASS
D-05 Static fallback <img>/<figcaption> preserved; XSS (<script>, <style>, <iframe>, <svg>, onerror, javascript:) stripped sm-journal-plugin & vue-journal-layer TestEmbedRegistryPairAwareSanitizationAndFallbackXSS, embeds.test.ts (pair-aware htmlGate ...) PASS
D-06 Dynamic blogRequestOptions.embedProviders, adaptive Blog Editor dialog, fallback-preserving TipTap Embed node & preview ../sm-journal-plugin/classes/blog_editor.go, assets/src/blogeditor/* TestBlogRequestOptionsEmbedProviders, tests/blogeditor/embed.test.ts (264/264 Vitest), scripts/check-dist.sh PASS
D-07 Dual Nuxt registration (app.config.ts journal.embeds + plugin helpers), prototype-pollution rejection, pair-aware htmlGate.ts ../vue-journal-layer/app/utils/embedRegistry.ts, htmlGate.ts, app/plugins/journal-embeds.ts tests/embeds.test.ts (__proto__, constructor, prototype, toString rejected; pair-aware sanitizeJournalHtml/isSafeJournalHtml/gateJournalHtml) PASS
D-08 IntersectionObserver lazy hydration, CLS minHeight reservation, reactive prefers-reduced-motion, Vue async component (appContext inheritance) + plain DOM mount + cleanup + error fallback, script-src 'self' CSP ../vue-journal-layer/app/composables/useJournalEmbedHydration.ts, PostBody.vue, CategoryHeader.vue tests/embedHydration.test.ts (all 4 lifecycle suites under node --test) PASS
D-09 Built-in youtube SSR youtube-nocookie.com iframe byte-compatible; overridable in registry ../vue-journal-layer/app/utils/embeds.ts tests/embeds.test.ts, pnpm build:playground, pnpm smoke:ssr (97/97 checks) PASS
Corpus parity Byte-identical editor-corpus.json across plugin & layer ../sm-journal-plugin/tests/blogeditor/fixtures/editor-corpus.json vs ../vue-journal-layer/tests/fixtures/editor-corpus.json cmp -s in Stage 3 of scripts/check-phase38.sh PASS
Release Ordering Guardrail Zero git tag, tag pushes, consumer bumps, or changelog posts All three repos Verified no tags/bumps executed; ready for /msd-code-review 38 & 38-VERIFICATION.md PASS

Gate Output Summary (bash scripts/check-phase38.sh)

Stage Repo Command(s) Result
Stage 1 sm-journal-plugin go vet ./... && go test -race -short ./... PASS (all 6 test packages green under -race)
Stage 2 sm-journal-plugin npm run build && npm run test && bash scripts/check-dist.sh PASS (10 test files, 264/264 Vitest tests; assets/dist clean)
Stage 3 Cross-repo cmp -s ../sm-journal-plugin/tests/blogeditor/fixtures/editor-corpus.json ../vue-journal-layer/tests/fixtures/editor-corpus.json PASS (byte-identical)
Stage 4 vue-journal-layer pnpm test && pnpm build:playground && pnpm smoke:ssr PASS (211/211 node --test tests; clean Nuxt build; 89 + 2 + 2 + 2 + 2 = 97 SSR smoke checks)
Stage 5 summercms.go go test ./cmd/summer -run TestDocsTree PASS