Content-capability portability matrix
- Status: current consumer map for the Portable Content & Universal Publishing epic
- Date: 2026-10-24 (planned rows updated 2026-11-11)
- Issue: #107 (Task P2.1)
- Parent story: #94 · Parent epic: #92
- Depends on completed contract work: #105 (
PortableProjection) and #106 (portability-contract fixtures)
Current publication projections#
One author-owned Markdown document is projected through the shared
PortableProjection. representation(Html)
continues to expose the legacy native body for backward compatibility; portable HTML and Markdown
are separate derived outputs and never become editable source files.
| Surface | Projection and policy |
|---|---|
| Native pages | Existing production renderer and runtime remain unchanged. |
| Portable HTML | Static HTML from authored Markdown with safe raw-HTML handling, accessible capability fallbacks, canonical interaction links, public attribution, resolved URLs, and bounded output. |
| Portable Markdown | CommonMark-oriented text with static quiz/code/web-sandbox/callout transformations, title and canonical identity, public credits and provenance, and explicit raw-HTML/canonical-only notes. openblog export is dry-run-first. |
| RSS / JSON Feed | Full-content RSS content:encoded and JSON Feed content_html use portable HTML. JSON Feed also emits content_text from portable Markdown. Feed metadata remains distinct from provider payloads. |
| Admin Studio | Authenticated unsaved previews offer native site, portable HTML, portable Markdown, and destination-policy views; source-scoped diagnostics accompany the portable output. |
| Syndication | DEV and Hashnode use portable Markdown; Ghost and WordPress use portable HTML; Medium is manual import. The dry run reports the representation, canonical behavior, and portability diagnostics. |
| Other/unknown capabilities | Preserve authored Markdown where possible, label canonical-only behavior, and report loss. Private-only state produces no public diagnostic or output. |
Portability levels and capability ownership come from the ADR, capability descriptors, and planned-capability registry. The rows below are the original native-capability audit and remain useful for parser/native behavior; consumer behavior is governed by the current projection table above.
Destination conversion policies#
Cross-posting provider policies are typed in the shared core and consumed by both Admin previews and syndication dry runs. Feed rows describe destination-neutral generated contracts. Unknown provider identifiers are rejected by configuration parsing; they do not inherit a permissive destination policy.
| Destination | Representation | Canonical behavior | Workflow |
|---|---|---|---|
| DEV | Portable Markdown | Canonical URL is sent | Remote draft by default; public publishing requires explicit CLI approval |
| Hashnode | Portable Markdown | Canonical URL is sent | Draft create/update only; public-publish requests are rejected |
| Ghost | Portable HTML | Sent as Ghost canonical URL | Remote draft by default; public publishing requires explicit CLI approval |
| WordPress | Portable HTML | WordPress core cannot set an external canonical URL | Remote draft by default; verify an SEO plugin before public publishing |
| Medium | Portable Markdown | Verify canonical URL during import | Manual import only; no remote write |
| RSS | Portable HTML | Entry link and feed item URL identify the canonical post | Generated feed; no provider API |
| JSON Feed | Portable HTML plus portable text | Item URL identifies the canonical post | Generated feed; no provider API |
Warnings include source path, capability, observed transformation, and a recommended review or
repair action. Warnings do not attest to correctness, accessibility, or provider-side rendering.
An Admin acknowledgement is kept in the post's tracked .portability.json sidecar and bound to
the portable source revision, capability, representation, and destination. It records review but
does not suppress the warning or override a projection error; older revisions stay visibly stale.
Interactive fallback and state policy#
Portable artifacts use semantic HTML/CommonMark only; they do not depend on open.blog JavaScript, live provider endpoints, reader submissions, or owner snippets. Content below refers to authored, public meaning. Attempts, moderation state, credentials, and private annotations are ephemeral or private and never enter a public projection.
| Capability | Authored/public meaning retained | Portable behavior and order | Interaction loss / private state |
|---|---|---|---|
| Knowledge check | Prompt, choices, designated answer, and explanation | Static question, ordered choices, then answer and explanation; Markdown labels the answer explicitly | Scoring, retries, and remembered attempts are unavailable |
| Runnable code | Caption/title and complete source | Caption, source code block, optional prefilled Rust Playground link, then canonical run/edit link. playgroundLink=false or an encoded URL over 8 KiB omits only the external link | In-copy editing and execution are unavailable; eligible Rust examples can be opened externally |
| Web sandbox | HTML, CSS, and JavaScript source sections | Each source section is a separately labeled code block; canonical link follows | Live preview and execution are unavailable |
| Interactive demo | Title, the authored fallback description (plain Markdown), and the kind's name | Caption, the description, then a labeled canonical link ("Try the interactive Git sandbox on the original article"); an empty body uses the kind's own summary. Raw HTML, images and non-https links in the body are rejected at build time | The live demonstration and anything done in it are unavailable |
| Discussion/comments | Canonical article identity and discussion link | A labeled canonical link after article content | Submissions, reader identity, moderation queues, and hosted endpoint details are not exported |
| Planned public interactions | Existing authored prose and its position | Labeled canonical link after the preserved authored content; planned behavior is not claimed as implemented | Future interactions remain canonical-only until an owning story defines semantics |
| Private annotations/reflection drafts | None; private state has no public authored representation | No content, diagnostic, or link is emitted | All private reader state remains private |
| Raw HTML | Text and elements accepted by the portable allowlist | Safe elements are preserved where possible; unsupported content is removed or escaped and diagnosed | Scripts, forms, frames, embeds, and active behavior are not carried through |
| Video chapters | Timestamp, chapter label, and source video identity | Ordered timestamp list with links to the corresponding video position when available | Player state is unavailable |
| Recipe | Public recipe facts, sections, lists, and author notes | Static facts followed by labeled ingredients/instructions sections | Interactive scaling and local state are not portable |
The portable representations are readable without JavaScript. Any warning associated with a transformation includes a recommended review action; no warning can authorize exporting private state or suppress an unsafe-markup failure.
Discussion links target the generated #ob-discussion region only when that region is enabled
on the native article. Hidden discussions and sites without a backend expose no participation
link. Approved public contributions are not currently imported into exports: any future opt-in
must use the owning moderation/publication story's exact approved public projection, attribution
and privacy review. Pending/rejected material, deleted passages and author-only responses are
never fetched by an exporter. Article prose alone cannot opt private state into publication.
Native capability audit (baseline)#
This table records the source audit completed before the consumer rollout. Its native-renderer descriptions remain useful; feed, Admin-preview, and syndication cells are historical baseline observations and are superseded by the current projection policy above.
| Capability | Status | Owner (code) | Native HTML | No-JavaScript behavior | Feeds (RSS/JSON Feed) | Admin preview | Syndication | Citations |
|---|---|---|---|---|---|---|---|---|
| Articles | Implemented | Markdown→HTML pipeline | Full CommonMark+GFM rendering; raw HTML passed through | Static HTML; no runtime dependency | Native HTML embedded when feeds.full_content, with root-relative src/href URLs absolutized | Same renderer, so authored post HTML is byte-identical | Markdown or rendered HTML per target | crates/openblog-core/src/markdown.rs:1-75; crates/openblog-core/src/feeds.rs:396-397; docs/content.md:194-199 |
| Research/citations | Implemented (bounded) | crates/openblog-core/src/research.rs | ## Abstract/## References sections stay ordinary Markdown; DOI/license meta line inserted (render.rs:1328-1346) | Fully readable; DOI/license line is plain text/links | ResearchMetadata is part of post.html, so included like any article content | Evidence view surfaces the same EvidenceFindings (docs/research-profile.md) | Opt-in [@key] citations (citations: notes or bibliography) are rewritten once into generated footnotes in the publication Markdown, so every destination receives ordinary footnotes (crates/openblog-core/src/bibliography.rs, ADR 0048); everything else passes through with the rest of the HTML/Markdown | crates/openblog-core/src/research.rs:14-109,297-360; crates/openblog-core/src/render.rs:1247-1261 |
| Claim evidence | Implemented (opt-in, claimEvidence.publish) | crates/openblog-core/src/claim_publication.rs | Approved claims become a "Claims and evidence" section of the publication Markdown: headings per claim and per relation, lists of references, locations, rationale, confidence and uncertainty (ADR 0075) | Fully readable static HTML; supporting and contradicting evidence side by side, contested claims marked in text | Same publication Markdown, so feeds carry the same section | Previews show the section for the previewed post | Portable HTML, Markdown and text must carry every claim heading, contested marker and relation heading in order, or the copy is refused (claim-evidence-lost) | Reuses the citation reference allowlist (PublicReference) for the sources links cite |
| Credits/bylines | Implemented | crates/openblog-core/src/contributor.rs | Ordered <aside class="ob-contributions"> list with roles and unauthenticated-ORCID disclosure; legacy posts fall back to <a class="p-author h-card"> | Fully static text/links, no script | RSS <dc:creator> / JSON Feed authors[] ordered by explicit credit (feeds.rs:54-66,144-163); legacy uses site author | Same renderer | Explicit authors carried in Markdown/HTML sent to targets (no structured transform) | crates/openblog-core/src/render.rs:2057-2122; crates/openblog-core/src/feeds.rs:54-66,144-163; closed issues #9/#10 |
| Recipes | Implemented | crates/openblog-core/src/recipe.rs + markdown.rs block transform | Ingredients/Steps sections wrapped as ob-recipe-part with schema.org Recipe JSON-LD | Ingredients/steps remain a plain list; "cook mode" and "print recipe" are progressive-enhancement extras | Included as ordinary HTML | Same renderer; preview shows summary card | Rendered HTML/Markdown passed through unchanged | crates/openblog-core/src/recipe.rs:1-80; tests/fixtures/portability-contract.json:58-90 (recipe-callout-media fixture); docs/content.md:394-481 |
| Callouts | Implemented | markdown.rs::callout_label + block transform | <aside class="ob-callout ob-callout-<kind>" role="note"> with a <p class="ob-callout-title"> | Fully static; no JS involved at all | Included verbatim in post.html | Same renderer | Passed through as part of HTML/Markdown | crates/openblog-core/src/markdown.rs:182-189,1340-1349 (test github_style_callouts); tests/fixtures/portability-contract.json:63-90 |
| Quizzes (knowledge checks) | Implemented; gracefully transformed | markdown.rs::parse_quiz/render_quiz; capability.rs | <ob-quiz> with visible <fieldset>, radio inputs (data-correct marks the answer in source), and a hidden feedback/explanation paragraph | Choices are visible and selectable as plain radio inputs; feedback and retry button stay hidden without JS (no scored interaction) | Quiz markup is embedded in full-content feeds as-is (no simplified text fallback yet) | Same renderer; Admin also offers a form-based "Add knowledge check" authoring UI (docs/content.md:212-235) | Passed through as raw HTML/Markdown with the quiz markup intact | crates/openblog-core/src/markdown.rs:252-360; crates/openblog-core/src/capability.rs:63-69; fixture knowledge-check in tests/fixtures/portability-contract.json:91-116 records level: "gracefully-transformed", fallback static-question-and-choices, and semanticLoss: "The current text view omits fenced quiz content" |
| Runnable code | Implemented; gracefully transformed | markdown.rs fence handling; capability.rs | rust runnable → <ob-rust-playground> wrapping <pre><code>; configured-language fences → <ob-code-runner> | Source code remains fully visible/readable/copyable in <pre><code>; only Run/Reset/output require JS (docs/specs/executable-code-lessons.md) | Embedded verbatim in full-content feeds | Same renderer | Markdown/HTML sent as-is; no remote execution occurs during syndication | crates/openblog-core/src/markdown.rs:1290-1330 (tests); crates/openblog-core/src/capability.rs:64-68; fixture runnable-and-web-sandbox, tests/fixtures/portability-contract.json:117-142 (level: "gracefully-transformed", fallback pre-code) |
| Web sandboxes (HTML/CSS/JS) | Implemented; gracefully transformed | markdown.rs::valid_web_sandbox_source; capability.rs | <ob-web-sandbox> with the authored HTML/CSS/JS escaped into visible <pre><code> sections | Authored source stays readable as escaped text; the live, isolated iframe preview requires JS | Embedded verbatim | Same renderer | Markdown/HTML sent as-is | crates/openblog-core/src/markdown.rs:165-179; fixture runnable-and-web-sandbox, tests/fixtures/portability-contract.json:117-142 (fallback source-code); docs/specs/interactive-web-video-comments.md |
Interactive demos (demo fence) | Implemented; gracefully transformed | markdown.rs::render_demo/DEMO_KINDS; capability.rs | <figure class="ob-demo"> around the demo element (ob-git-sandbox, ob-practice-lab, ob-fetch-lab, ob-component-lab, ob-evolution-lab, ob-audio-lab, ob-native-lab) whose children are the authored fallback | The authored fallback stays visible; the element replaces it when JavaScript runs | Caption, description, canonical link | Same renderer | Portable HTML or Markdown as above | web/components/ob-lab.js; docs/content.md |
Before and after (compare fence) | Implemented; fully portable | compare.rs; markdown.rs::transform_blocks; capability.rs | <ob-compare class="ob-compare"> around two <figure class="ob-compare-pane"> each holding <img> and a labelled <figcaption> | Both pictures and captions are side by side; the element adds the reveal control when JavaScript runs and motion is welcome | Two figures, no wrapper | Same renderer | Portable HTML is the two figures; portable Markdown is two images with italic captions | docs/content.md; ADR 0291 |
| Video | Implemented | crates/openblog-core/src/video.rs; crates/openblog-core/src/embed.rs | YouTube embeds have a visible fallback link; VideoObject JSON-LD when fields are present | Fallback link stays visible | Included as part of post.html | Same renderer; Studio's Words for YouTube composes YouTube copy | Passed through as-is | docs/video-production.md |
| Audio episodes | Implemented; portability partial | crates/openblog-core/src/audio.rs; crates/openblog-core/src/podcast.rs | Native audio controls, transcript and keyboard chapter buttons | Native controls and transcript remain; chapter seeking needs JavaScript | Opt-in podcast RSS has enclosures and transcript/chapter references; regular feeds carry the post body | Same renderer; Studio can copy audio, edit chapters and add a transcript | Inline transcript travels with the body; structured audio metadata and player are not guaranteed in syndication | docs/audio.md; docs/specs/audio.md |
| Timestamps (video chapters) | Implemented (as plain Markdown + Admin-only validation) | web/studio/parts/video-rules.js | Chapters are "ordinary timestamp lines" the author writes directly in Markdown body text (docs/video-production.md:52-66); no Rust parser or dedicated renderer owns them | Fully static plain text — no JS dependency for reading | Timestamp text is ordinary body text, carried through feeds like any other paragraph | Studio's Words for YouTube (Before you publish) parses/validates chapters (first at 00:00, ≥3 chapters, chronological order, ≥10s each) purely client-side in JS and composes a YouTube release description; it does not alter the published post | No special handling; plain text travels with the rest of the Markdown/HTML | docs/video-production.md:48-66 |
| Shared Perspectives | Private multiple-contribution drafting, reveal, revision-bound approvals, participant credit choices and publication are implemented | crates/openblog-core/src/shared_source.rs, reflection.rs, third_perspective.rs, perspective_publication.rs | Published shared reflections render ordered accessible sections; <ob-third-perspective> is a separate interactive component | Published reflections retain their reading order without scripts; see the collaboration spec | Full-content feeds carry the published sections in order; the separate planned interactive capability uses a labelled canonical link | Studio's Writing together covers invitations, parts, sharing, layout, each writer's name, rule suggestions, agreement and publication, several parts per writer, sharing with the people a writer chooses, and starting a layout again after a part is taken out (Studio) | Published reflections have sequential portable HTML, Markdown and text; the separate planned interactive capability uses a labelled canonical link | Epic #143, Third Perspectives #201 and workflow epic #592 |
| Questions/discussions | Implemented: generic comments, passage questions, suggested sources and correction decisions (OPENBLOG_CORRECTIONS_ENABLED) | crates/openblog-core/src/model.rs::CommentsPolicy; participation.rs; correction_decision.rs; evidence_submission.rs; netlify/functions/engagement.mjs | Per-post <ob-comments>; passage participation forms | <ob-comments> keeps its explicit no-JavaScript text; see hosted engagement | Comments are not embedded in feeds; passage questions and corrections follow the registry: Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Moderation and correction decisions in Admin | Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Story #29 and tasks #81–#83 closed as completed; CHANGELOG entries for corrections |
| Reflections | Implemented on the site | crates/openblog-core/src/reflection.rs; web/components/reader-reflections.js, ob-reflection-history.js | Reflection history and reader reflections components | See the collaboration spec | Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Admin Studio | Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Stories #144 and #146 closed as completed |
| Source previews | Implemented on the site | crates/openblog-core/src/citations.rs; web/components/ob-citation-previews.js | Accessible citation anchors with no-JavaScript reference navigation; the preview component enhances them | Citation anchors navigate to the references without JavaScript; see the citations spec | Citations export as numbered notes (citations capability, markdown-footnotes); previews: Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Admin preview carries citations and their exports | Citations as footnotes; previews: Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Story #25 and tasks #65–#67 closed as completed |
| Guided explanations (reading modes) | Implemented: supplements and their static groups (ADRs 0140-0142); controls (#69) | crates/openblog-core/src/reading_depth.rs; capability.rs (guided-reading-supplements) | <div class="ob-supplement" role="group"> with a <p class="ob-supplement-label">, the author's quote and a visible <p class="ob-supplement-end"> end marker; <ob-reading-modes> wraps the article when the post has supplements | Every supplement is written out visible, labelled and in order; no control appears and nothing is hidden | Same groups in full-content feeds; the text copy carries Definition supplement (guided): Aporia. ... End of definition supplement. lines | Same renderer; the build, check and Admin warnings list each marker that could not be read | Portable HTML keeps the groups; portable Markdown keeps the quote and its marker as written (fully portable, no canonical link needed) | docs/specs/reading-modes.md; crates/openblog-core/tests/reading_depth.rs; tests/browser/reading-modes.spec.mjs |
| Knowledge relationships | Implemented on the site (Knowledge Atlas) | crates/openblog-core/src/knowledge_atlas.rs, atlas_query.rs, atlas_publication.rs; web/components/ob-atlas-trail.js, atlas-terms.js | Atlas terms and trails | See the Knowledge Atlas spec | Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Admin Atlas | Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Stories #21 and #27, tasks #73–#75 closed as completed |
| Translation comparisons | Implemented on the site (edition, translation and interpretation comparisons) | crates/openblog-core/src/interpretation.rs, interpretation_publication.rs, alignment.rs; web/components/ob-compare-model.js | Comparison components | See interpretation comparisons and passage alignments | Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Admin Comparisons | Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Stories #22 and #31, tasks #53–#55 and #89–#91 closed as completed |
| Timelines | Implemented on the site (Knowledge Atlas chronology) | crates/openblog-core/src/chronology.rs, chronology_index.rs; web/components/ob-atlas-timeline.js | <ob-atlas-timeline> | See Chronology in the Knowledge Atlas spec | Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Admin Atlas | Labelled link to the canonical page (labeled-canonical-link) until the capability ships its own portable fallback; see the planned-capability registry | Story #23 and tasks #57–#59 closed as completed; ADRs 0096, 0097 |
| Diagrams | Implemented; gracefully transformed (epic #566) | crates/openblog-core/src/diagram.rs, diagram_svg.rs, diagram_theme.rs; markdown.rs fence handling | <figure class="ob-diagram"> with sanitized inline SVG (role="img", title and description), caption, a list of node links and <details> with the source | Fully static: drawn at build time, no JavaScript; colours follow the look through CSS variables | A PNG copy (assets/diagrams/<digest>.png) with alt of the title and description, then the source | Studio's A diagram form asks the server, which draws with the build's renderer; the WebAssembly build's parity is checked in CI | PNG with its text alternative and the source; every provider manifest declares diagram unsupported | docs/diagrams.md; docs/specs/diagrams.md; ADRs 0416-0419; crates/openblog-core/tests/diagram_publication.rs |
Notes on scope and gaps#
- The portability gates for planned research/reader capabilities live in the planned-capability registry and its machine-checked contract data; planned work must use its existing story and unique contract owner rather than adding parallel exporters.
- Shared Perspectives (in part), passage questions and corrections, reflections, source previews, the Knowledge Atlas, comparisons and timelines are implemented on the canonical site. Except for guided reading supplements, they do not yet ship a fallback of their own in portable copies, which carry a labelled link to the canonical page instead, as the planned-capability registry records. Diagrams (epic #566) travel as a PNG with their text alternative; audio is in epic #604 and the rest of Shared Perspectives in epic #592.