Repository navigation
Description
design(id-apps): D4 — sneakernet bundles for ID
Programme order: 6. Parent epic: #13880 — ID apps on one graph.
Depends on: D3 (bundles carry D3 objects and link objects), D1 (bundle
references are URIs). Carrier context: #13752 (one signed ticket
format, many carriers — sneakernet is one of the named carriers).
Neighbour: #5674 (wire format & transport adapters — the adapters are
its scope; the bundle format and sharing semantics are this one's).
Problem + evidence
ID data must be able to move where networks don't: on physical media,
as an email attachment, between machines that are never online
together. Sneakerweb is the shipped proof that this works for
Willow-family data — self-verifying sites on physical media, Ed25519
identity as the address, distribution as a social act (sneakmeets).
But Sneakerweb shares sites (static, whole). ID needs to share
graph slices — objects, their link objects, and the grants to read
them — in a standard format any ID host can export and any other can
verify and merge, without a broker in the loop at transfer time.
Goals
- Bundle format: a signed manifest — bundle ID, creator identity,
contents index (object IDs + digests, D1 URIs), the grant set the
bundle carries, creation time, and an optional expiry/renewal note —
plus the content-addressed objects themselves. Self-verifying: a
receiver can validate every object's digest and the manifest's
signature offline, before trusting anything in it. - Grant scoping: capability grants scoped to the bundle (these
objects, this recipient or bearer, this lifetime) that compose with
composition A's broker renewal — a bundle grant must state what
happens when it outlives, or is overtaken by, the broker's renewal
state. A bundle must not become a way to mint permanent authority
outside the renewal discipline by accident; if bearer grants are
allowed, that is an explicit decision, not a default. - Export/import flows: export a subgraph (by D1 collection URI)
from a host; import on another host with verification steps in
order — manifest signature (fleet CA / IdP binding of the creator),
digest checks, grant acceptance — and a clear report of what was
accepted, what was rejected, and why. - Sync-on-contact merge semantics: when two hosts that have
diverged meet via bundle (or later via network), how bundle-imported
state merges with what sync would have delivered — duplicates,
superseded objects, link objects pointing at not-yet-present
targets. - Carriers: physical media (the primary case), email attachment,
and QR for small bundles (a manifest + a handful of objects) — per
design: fleet transport & pooling — host selection without Tailscale, iroh for non-Muse agents, generic pool primitive #13752's channel design, the bundle is the same format regardless
of carrier.
Research input: SSB tangles + post-mortem
SSB's gossip-by-carrier experience is the cautionary record: its
replication model (append-only feeds, replicate-everything within two
hops, no pruning) made out-of-band sharing heavy and first contact
brutal. This design must answer, per SSB lesson: bundle size discipline
(scoped slices, not whole histories), pruning-compatible contents
(a bundle of pruned-later objects still verifies), and identity that
survives multi-device use (the IdP/linking binding in the manifest,
not a single-device key as the whole identity).
Alternatives to weigh
- Adopt Sneakerweb's format directly: shipped and proven; but it
carries sites, not graph slices, and has no grant story — the two
things this design exists for. - Bundle = a sync session transcript (replay the op log): reuses
composition A machinery; couples the file format to the sync
protocol's evolution, and imports ops the receiver may not be
authorised to replay. - No grants in bundles (data only; authority arranged separately):
cleanest authority story; makes the primary use case — handing
someone a readable slice — require a second, online step, which is
exactly what sneakernet exists to avoid.
Slices (dependency-ordered)
- Manifest + contents format: fields, signing, digest rules.
Acceptance: a hand-built example bundle verifies from the spec
alone (two independent readers agree). - Grant model: bundle-scoped grants and their interaction with
broker renewal. Acceptance: the renewal-collision cases enumerated
(grant outlives renewal, renewal revokes mid-bundle-lifetime) each
with a stated outcome. - Export/import flows + verification order: including the
creator-binding check against the fleet CA / IdP. Acceptance: a
rejection catalogue (bad signature, digest mismatch, unbound
creator, expired grant) with the import behaviour for each. - Merge semantics: sync-on-contact rules. Acceptance: a
diverged-hosts fixture merges to the same state via bundle as via
network sync, or the differences are named and justified. - Carrier profiles: size/shape constraints per carrier (media,
email, QR). Acceptance: the QR profile states its object-count
ceiling honestly rather than aspirationally.
Open questions (deciders named)
- Bearer vs recipient-bound bundle grants — Drew decides; this is
a revocation-posture question (investigation: capability auth + p2p transport — p2panda-first, honestly compared #13779 decision point 1 territory),
surfaced in plain words with the options when the design reaches
it. - Whether bundles may carry link objects whose targets are absent
(dangling-by-design, resolved later) — designer decides with D3's
model, recorded here.
{
"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:25Z",
"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-5105