Skip to content

docs(adr): ADR-0049 — semantic-reference metadata embeds in package docs - #1794

Closed
xuyushun441-sys wants to merge 2 commits into
mainfrom
docs/adr-0048-semantic-metadata-embeds
Closed

docs(adr): ADR-0049 — semantic-reference metadata embeds in package docs#1794
xuyushun441-sys wants to merge 2 commits into
mainfrom
docs/adr-0048-semantic-metadata-embeds

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

Summary

Adds ADR-0048: Semantic-reference metadata embeds in package documentation (Status: Proposed).

ADR-0046 made package docs flat src/docs/*.md Markdown and banned MDX (MDX is code; rendering publisher code in the platform origin crosses the ADR-0025 trust boundary), while §3.4 reserved semantic links like object://crm_lead "renderers resolve" and §3.5 said a diagram of an existing flow is derived metadata — rendered live, never committed. This ADR specifies what walks through that door: how an author shows a live flow/view/dashboard/object in a doc without re-opening the MDX boundary.

Core inversion: the author supplies only a NAME (data); the platform supplies the COMPONENT (code) — the opposite of author-written MDX/SDUI, which must stay banned (SDUI is worse than MDX: its nodes bind actions/data/server-calls).

  • Syntax — extends §3.4's protocol-link family: flow://, view://, dashboard://, object://. Markdown-native (a link) → GitHub/editor preview degrades to an inert link, lint stays a parse-only check. Resolves renderer-side to a read-only SchemaRenderer scoped to one item, no author-supplied props.
  • Two guardrails — (a) read-only + permission-scoped against the current viewer (no "run this flow" in a doc; no access bypass; previews show the viewer's own RLS-permitted rows); (b) cross-package refs degrade to a render-time "not found" notice, never coupling into install-time dependency resolution.
  • Boundary on one line — in-metadata → live embed (this ADR); not-in-metadata conceptual → Mermaid (deferred, separate ADR); author-written component code → never.
  • PhasingP3+. Depends on (A) the §3.4 semantic-link resolution layer and (B) read-only embeddable metadata-view components in objectui (flow viewer, view/dashboard preview, object summary) — neither built. Changes nothing in the running platform on its own.

Alternatives explicitly rejected: inline SDUI component JSON, MDX/author React, author-supplied <iframe>, custom fenced blocks, publish-time baking, and lint-time metadata resolution.

File

  • docs/adr/0048-semantic-metadata-embeds-in-docs.md

Tracking issue: see linked issue.

Review only — do not merge.

🤖 Generated with Claude Code

Specifies how a doc author shows a live flow/view/dashboard/object inside
package documentation without re-opening the MDX trust boundary banned by
ADR-0046 §3.4 / ADR-0025.
Core inversion: the author supplies only a NAME (data); the platform
supplies the COMPONENT (code). Extends ADR-0046 §3.4's protocol-link family
(flow://, view://, dashboard://, object://) — each resolves renderer-side to
a read-only, permission-scoped SchemaRenderer scoped to one metadata item,
accepting no author-supplied props.
Two guardrails: (a) read-only + permission-scoped against the current
viewer; (b) cross-package refs degrade to a render-time "not found" notice,
never coupling into install-time dependency resolution. Boundary stated on
one line: in-metadata → live embed (this ADR); conceptual → Mermaid
(deferred); author-written component code → never. Rejects inline SDUI JSON,
MDX, and author-supplied iframes. P3+ — depends on the §3.4 resolution layer
and read-only embeddable metadata-view components in objectui, neither built.
Status: Proposed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@xuyushun441-sysxuyushun441-sys added documentation Improvements or additions to documentation protocol:ui priority:p3 Low: nice-to-have, backlog labels Jun 12, 2026
@vercel

vercelBot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specReadyReadyPreview, CommentJun 13, 2026 12:31am

Request Review

@xuyushun441-sys

Copy link
Copy Markdown
ContributorAuthor

Tracking issue: #1795

0048 was already claimed by the cross-package-metadata-collision ADR
(branch feat/cross-package-metadata-collision, PR #1796), which predates
this one. Renumber to the next free slot to resolve the collision.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@xuyushun441-sysxuyushun441-sys changed the title docs(adr): ADR-0048 — semantic-reference metadata embeds in package docsdocs(adr): ADR-0049 — semantic-reference metadata embeds in package docsJun 13, 2026
@xuyushun441-sys

Copy link
Copy Markdown
ContributorAuthor

作废。经讨论,文档里的活 UI 应归产品 UI 层(View/Page/Dashboard 的 SchemaRenderer + SDUI 组件库),文档不应成为第二个 UI 授作面。本 ADR 不推进,关闭不合并。

@xuyushun441-sys
xuyushun441-sys deleted the docs/adr-0048-semantic-metadata-embeds branch June 13, 2026 01:40
os-zhuang added a commit that referenced this pull request Jun 18, 2026
feat: iOS desktop home (bento) + tier-B polish (#1794)
objectui@be7c6e9de6363f1001e3749f48c063dece969973
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentationpriority:p3Low: nice-to-have, backlogprotocol:uisize/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@xuyushun441-sys@os-zhuang