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 |