GeezerVison is showing github.com — design(id-apps): D3 — the ID graph layer: typed links and verbs as first-class objects · Issue #13885 · developing-today/code
design(id-apps): D3 — the ID graph layer: typed links and verbs as first-class objects #13885Descriptiondesign(id-apps): D3 — the ID graph layer: typed links and verbs as first-class objects
Programme order: 2 — HEAD OF THE PROGRAMME (top priority). Parent
epic: #13880 — ID apps on one graph. Inputs: R1, R2 (programme order 1).
Everything after this — D1 (URIs), D2 (transclusion), D5 (graph display),
D4 (bundles) — names, embeds, renders, or carries what this design
defines.
Problem + evidence
The ID project's app ambition (Drew, 2026-11-23): chat, forums, and image
sharing as separate apps over one object graph, sharing the same IDs,
all able to reply to each other. The substrate we adopted in #13779
(composition A: p2panda data plane + Meadowcap-as-spec) gives us signed
operations and capability-scoped sync, but its objects are content —
entries are, in the Worm Blossom design, deliberately dumb: a path plus a
payload. Nothing in the substrate says what a reply is, so every app
would invent its own reply convention in its own payloads, and
cross-app replies — the entire point — would be pairwise negotiations
between apps instead of a property of the data.
The Worm Blossom evidence cuts the same way: Rummager's free-form
nesting (chat/forums/images as emergent shapes of nesting) never
shipped; Cobweb's transclusion assumes links the substrate doesn't
define. Freeform data defers the graph semantics to every app, forever.
The design thesis
Links between ID objects are themselves first-class objects carrying a
verb. A link object has: its own ID, an author, a source object, a
target object, and a verb — reply, mention, quote, attach,
supersede, and an extension rule for new verbs. Because the link is an
object, it can be signed, capability-gated, replied to, counted,
revoked, rendered (D5), named (D1), embedded (D2), and carried in a
bundle (D4) — uniformly, by every app, without app-pair agreements.
Goals
- An object model: content objects, link objects, and the identity/
authorship rules both live under (same ID space as the rest of ID).
- A verb registry discipline: the initial verb set, what a verb means
operationally (not just socially), and how new verbs are admitted
without breaking old readers.
- Freeform nesting: objects embedded inside objects (the Rummager
insight) expressed in this model — nesting as a verb/structure, not
as a rival data model.
- The cross-app interop contract: how a chat app, a forum app, and
a media app read and write the same graph — shared IDs, cross-app
replies, and what each app may assume about objects it did not
create.
- Capability rules per verb: what capability an app (or a principal)
needs to create a link with a given verb, and what it needs to
traverse one — including the Roc platform declaration/grant/omission
model applied to verbs (an app declares the verbs it uses; ungranted
verbs are unnameable in that app).
- Placement on composition A: link objects as p2panda operations /
objects over the existing data plane — explicitly NOT a new store on
raw Willow entries. Reconciliation with design(id/atlas): ID-graph publication format — Atlas objects + provenance/lineage relations as ID-graph objects #6062 (ID-graph publication
format) and id: note reference edges in the native graph + backlink query (#7587) #13233 (note reference edges + backlink query) as named
cases the model must cover, not fork.
Research input: SSB tangles + post-mortem
Secure Scuttlebutt's reply tangles — a reply references its root and
its previous messages, forming a DAG — are a direct ancestor of this
verb/link-object model; the design must evaluate the tangle model
explicitly (what to take: root+previous references as the reply
structure; what to leave). SSB's decline is a lessons list the design
must answer point by point: single-device identity with forked-feed
corruption on multi-device use; append-only-forever with no deletion or
pruning; replicate-everything within two hops; no capability scoping
(a feed is all-or-nothing public); brutal first-sync onboarding. Our
answers come from pairing this layer with the IdP/linking story,
scoped sync, and ticket-based bootstrap (#13752) — the design states
how, per lesson.
Alternatives to weigh (with tradeoffs)
- Links as fields on the target/source object (backlink counters,
reply-to fields in payloads): simpler, but links inherit the object's
authorship and lifecycle — a reply from another app becomes a write
into someone else's object. Rejected or adopted, say why.
- Links as substrate-native relations (extend the op layer): best
performance story, worst portability story; composition A was chosen
partly to avoid forking the substrate.
- Freeform nesting only (the Rummager model): maximum app freedom,
no interop guarantee — the evidence above is the counterexample.
- Tangle-only model (SSB-style: replies are the only structured
link): proven socially, too narrow for attach/supersede/quote.
Slices (dependency-ordered, each with its own acceptance)
- Object + link model core: schemas for content and link objects;
ID assignment; authorship/signing. Acceptance: schemas validate
against fixtures for chat-message, forum-post, image, and a
cross-app reply chain.
- Verb registry v1: the initial verb set with operational
semantics + the admission rule for new verbs. Acceptance: every
verb in the set has a create-rule, a traverse-rule, and a rendering
hint; id: note reference edges in the native graph + backlink query (#7587) #13233's note edges expressible as verbs.
- Capability mapping: per-verb create/traverse capabilities in
composition A's terms + the Roc declaration mapping. Acceptance: a
worked example per app type (chat/forum/media) showing declared vs
granted vs omitted verbs.
- Interop contract: cross-app read/write rules, unknown-verb and
unknown-object-type behaviour for readers. Acceptance: a
three-app walkthrough (chat replies to a forum post that embeds a
media object) expressed end to end in the model.
- Tangle evaluation + SSB lessons annex: the explicit
adopt/adapt/reject record per SSB element. Acceptance: every lesson
in the list above has a named design answer or a named open
question.
Rollout / verification
Design lands as a dated design record in doc/ + this issue as its
tracker; slices above become queue items only after Drew-visible
surfacing of the open questions. Verification is by fixture: the
acceptance walkthroughs are written as concrete object graphs, not
prose claims.
Open questions (deciders named)
- Verb set v1 membership — designer proposes, Drew decides any verb
with social semantics (e.g. is react a verb or an app concern?).
- Whether link objects are deletable by their author, their target's
author, both, or neither — interacts with investigation: capability auth + p2p transport — p2panda-first, honestly compared #13779's revocation
posture; Drew decides if the lane's recommendation differs from
composition A's non-renewal default.
- Multi-device identity for link authorship (the SSB lesson) — owned
by the IdP/linking story; this design consumes its answer, and names
the dependency rather than re-deciding it.
{
"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:11:48Z",
"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)"
}
}
Activitydeveloping-today commented on Nov 24, 2026 dezren39 commented on Nov 24, 2026 Enqueued to the pilot queue (repo-health-code-pilot, priority 70) as task 21552 on 2026-11-24, under epic #13880. added a commit that references this issue on Nov 24, 2026This issue will close once commit 7a1915f is merged into the 'main' branch.7a1915f dezren39 commented on Nov 24, 2026 D3 design landed for review: PR #13997 — record at doc/2026-11-24_design_id-graph-layer-typed-links-verbs/D3-graph-layer.md, fixtures + stdlib checker in fixtures/ (python3 -I fixtures/check.py exits 0).
Acceptance status: the four fixtures are present and machine-checked (chat message, forum post, image, cross-app reply chain with reply link across authors — chat-authored reply targeting a forum object). SSB annex present (§7: tangle adopt/adapt/reject + all five decline lessons with named answers).
Gaps recorded in the record itself: (1) R1 (#13884) / R2 (#13883) were still open with no landed record at claim time and their on-disk workspace sources are absent from this environment — proceeded from the issue text + composition-A records; slices are gated on Drew-visible surfacing of the open questions. (2) The packet's #13233 does not resolve in this repo (verified) — the note-edge/backlink case is covered anyway (§11: outbound refs as mention/quote/attach, backlinks as derived index); link the correct number when known.
Open questions needing Drew (§9, with options + lane recommendations): verb-v1 membership (react excluded — recommend app concern); link deletability (recommend author-only supersede-tombstone + non-renewal expiry); multi-device authorship is an IdP-story dependency.
Lane oc-code-02, task 21552. dezren39 commented on Nov 24, 2026 R2 input for D3: #14027 (Refs #13883) — shipped-middle survey with D3-relevant findings (verbs/edges as typed data; deletion as first-class primitive; first-sync UX dominates). Claim 8 / #13779 tension flagged in doc, not resolved. — oc-code-07 dezren39 commented on Nov 24, 2026 Expansion (per Drew's direction, 2026-11-23 — recorded on the epic, #13880)
Priority standing restated: programme order 2, head of the programme; Drew confirms all six items as prioritized, important work, and adds the build stage: designs landing is stage one, PoC builds and the core live app are stage two.
Status this expansion builds on: the design has landed for review (PR #13997; fixtures machine-checked), with R2's input now landed too (#14027). The open questions in §9 of the record remain Drew's to answer as recorded there — this comment does not touch them.
Next steps beyond the design slices:
- First build consumers are now named: the core graph app (app(id-apps): the core graph app — Rummager-style organising + Cobweb-style live transclusion over the ID graph #14037, programme order 7) opens with two PoCs — a Rummager-like organising PoC (needs D3 only) and a Cobweb-like live-transclusion PoC (D3 + D1 + D2). Their runs extend this design's acceptance walkthroughs from fixtures to a live surface; any model gap they hit is filed against this issue, per the build-on-system principle (features are added to the system generally, then used by each app).
- First verb-admission test: when the core app's organising PoC needs a verb the registry v1 lacks (a collect/pin-class verb is the expected case), that admission is worked as the registry's first real admission and recorded here as the worked example of the admission rule.
- Housekeeping owed: the epic's pointer to "id: note reference edges in the native graph + backlink query (#7587) #13233" (note reference edges) does not resolve in this repo, as the landing lane already noted; the note-edge case is covered in the record (§11). The correct issue number, once identified, should be linked from the epic and here.
Related apps (consumers of this layer): the core graph app (#14037); the IRC-first chat line (#2049 → #2051) and ID boards (#2052 → #2054) under #2056; the social app reference model (#9128) — a reply in any of them is this design's link object, which is the cross-app interop contract exercised for real. dezren39 commented on Nov 24, 2026
Triage (task 22449): #13885 CLOSED (status:done), correctly so. Design PR #13997 MERGED 2026-11-24T07:36Z with the record, fixtures, and machine-checked acceptance. Build stage (#14037 PoCs) is programme-owned under epic #13880, not a triage follow-on. No packet queued. dezren39 commented on Nov 24, 2026 PoC 1 of #14037 (PR #14451, merged 9944945) hit a model gap: D3 v1 has no collection kind and no collect verb. The PoC admits a provisional collect link to organise D3 fixtures, with the check at apps/id-graph-poc/check.py (11 checks pass). Decision needed under D3 §5 admission: whether collect is admitted (operational semantics, create/traverse rule, rendering hint, second implementation or Drew's sign-off) or organising is modelled another way. Recorded here for D3 to decide; no app-local answer is treated as final.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|