Repository navigation
Description
design(id-apps): D2 — transclusion and embedding of ID objects
Programme order: 4. Parent epic: #13880 — ID apps on one graph.
Depends on: D3 (graph layer — embeds reference D3 objects and verbs),
D1 (URI scheme — the reference form an embed carries).
Problem + evidence
Drew (2026-11-23): transclusion "sounds a lot like embedding ID objects
inside other ID objects, which is something I'd like to be able to do."
Cobweb made bulk transclusion its central primitive — embedding
whole collections at once ("directory-scale iframes"), with Willow URIs
as links so embedded content stays mutable without link rot. Cobweb
never shipped, and its model inherits Willow's assumptions (path
entries, no capability story for the viewer of an embed). ID needs
the same capability — a forum post that embeds a live photo collection,
a note that embeds a reply thread, a page that aggregates a whole
subgraph — designed for a capability-scoped graph instead.
Goals
- Two embed kinds, chosen per embed: live-reference embeds (the
rendering reflects the target's current state; mutability without
rot, the Cobweb property) and snapshot embeds (the rendering is
bound to a digest/state at embed time; the target's later edits or
pruning do not silently rewrite the embedding object). The embed
object (a D3 link object with an embed verb) records which kind it
is. - Collection embeds: embedding a D1 collection URI (a subgraph),
not just a single object — the bulk case, with bounds so an embed
cannot demand an unbounded expansion at render time. - Capability discipline — an embed must not become a capability
leak: state exactly what the embedder needs (a traverse right
over the target at embed time?) and what the viewer needs (their
own right over the target, or does the embed confer a scoped,
read-only, possibly expiring view?). The default must be: embedding
grants the viewer nothing the embedder couldn't already delegate
under composition A's rules — and the design says what happens on
screen when the viewer lacks the right (placeholder? redaction?
metadata-only card?). - Cycle handling: objects embedding each other, directly or
through collections — detection, depth bounds, and rendering
behaviour when a cycle is cut. - Rendering contracts for host apps: what a host may assume when
rendering an embed (sizes, lazy loading, failure states for pruned /
unauthorised / not-yet-synced targets), so chat, forum, and media
apps render the same embed recognisably the same way.
Alternatives to weigh
- Copy-on-embed only (snapshots everywhere): simple and safe;
loses the live property that makes transclusion different from
attachment — and duplicates data the graph already holds. - Reference-only with viewer capability required (no delegated
view): purest capability story; makes public embedding nearly
useless (every viewer needs a grant first) — the SSB all-or-nothing
failure in a new shape. - Embed as pure presentation (no object, just a rendering hint in
the payload): no capability semantics at all; embeds become
unauditable and unrevocable.
Slices (dependency-ordered)
- Embed object semantics: live vs snapshot as D3 verb behaviour;
what is frozen in a snapshot (payload digest? rendered form? both?).
Acceptance: fixtures for post-embeds-photo, note-embeds-thread,
page-embeds-collection. - Capability matrix: embedder/viewer rights per embed kind,
including the delegated scoped view if adopted. Acceptance: the
leak test — a worked attack (embed a private object into a public
one) shown to fail or to be an explicit, recorded design choice. - Cycles + bounds: detection and render-time limits. Acceptance:
a cyclic fixture renders to a bounded result. - Host rendering contract: states and obligations for hosts.
Acceptance: contract checklist a host app can implement against,
handed to D5 as an input.
Open questions (deciders named)
- Snapshot semantics (digest-bound vs render-bound) — designer
proposes; Drew decides if both can't be supported in v1. - The no-right viewer experience (placeholder vs metadata card) —
designer decides under the posture, recorded here; it is a product
surface other apps will copy.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T00:12:10Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activity
developing-today commentedon Nov 24, 2026
CODE-5103