GeezerVison is showing github.com — design(id-apps): D4 — sneakernet bundles for ID · Issue #13889 · developing-today/code
design(id-apps): D4 — sneakernet bundles for ID #13889Labels app/idPackage/app: id (pkgs/ or apps/ in this repo) Descriptiondesign(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)
{
"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)"
}
}
Activitydeveloping-today commented on Nov 24, 2026 dezren39 commented on Nov 24, 2026 Expansion (per Drew's direction, 2026-11-23 — recorded on the epic, #13880)
Priority standing restated: programme order 6; Drew confirms all six programme items as prioritized, important work — investigate soon, implement when we have the capability. This design is also the multi-transport programme's physical-media member (#13926; the adapter contract's S8 formalises the bundle path as a registered adapter riding this design — already linked from the epic).
Next steps beyond the current slices:
- A live round-trip proof is now named: paired with the core graph app (app(id-apps): the core graph app — Rummager-style organising + Cobweb-style live transclusion over the ID graph #14037) — export a subgraph from the app as a bundle, carry it to a second host, verify-then-merge, and show the imported graph (objects + link objects + grants) working there. That round trip is this design's slice-3/slice-4 acceptance exercised end to end, and it is the core app's own export/import acceptance too.
- Carrier profiles get a chat case: beyond media/email/QR, an offline bundle-carried chat pack (a channel slice for a group never online together) is recorded on the epic as a candidate related app; slice 5's size discipline should be stated with that case in mind, since channel histories are exactly where bundle size discipline bites.
Related apps: the core graph app (#14037 — its offline carrier); the IRC-first chat line (#2049 → #2051) for the bundle-carried channel case; the multi-transport programme (#13926) as the wider carrier story this format plugs into. dezren39 commented on Nov 24, 2026 Triage verdict (task 22453, lane oc-code-01, 2026-11-24):
REAL, PRIORITIZED — no worker packet yet; parked on inputs per epic direction.
Fresh checks: #13889 OPEN, no hold labels. Parent epic #13880 OPEN (programme order 6; Drew 2026-11-23: all six items prioritized important work — investigate soon, implement when capable). No design record, slice task, or doc covers D4 yet; no live queue task holds it.
Why no packet: the epic records R1/R2/D3 design packets as the next design work while D1/D2/D5/D4 stay as prioritised issues until their inputs land. D4 depends on D3 (#13885, bundle contents) and D1 (#13886, bundle-reference URIs) — D1 triage (task 22450) is live right now. Routing D4 design before D3/D1 settle risks rework against undecided inputs. Reaffirms the standing plan; the claimant for the D3/R1/R2 outputs picks D4 up when they land. dezren39 commented on Nov 24, 2026 Triage verdict (lane oc-code-02, queue task 22735, 2026-11-24): still open and a design item, not implementable yet. Depends on D3 (graph layer, under epic #13880) and D1 (#13886, OPEN); neighbour #5674 owns transport adapters. No code packet is routed; the design waits for D1 and D3. Tracking: #14158. dezren39 commented on Nov 25, 2026 Claimed by lane 6, 2026-11-25T01:40Z. Both inputs are in: D3 landed (#13885, PR #13997) and D1 slice 1 landed (PR #14725, which already reserves via=bundle: hints). Starting slice 1 (manifest and contents format: fields, signing, digest rules) with a stdlib reference reader so "two independent readers agree" is checkable. Bearer vs recipient-bound grants stays Drew's decision; the record will put the options in plain words, not settle them.
Generated by Claude Code dezren39 commented on Nov 25, 2026 Slice 1 (manifest and contents format) is in PR #14738.
What it settles:
- the byte layout, manifest fields, signing rule, digest rule, size ceilings and rejection codes;
- a reference writer, two readers and a hand-built
example.idbundle. Both readers agree on the example and on 26 rejection cases.
Designer decision on dangling links: a bundle may carry a link object whose target it doesn't carry. D3 already allows links to absent targets. Forcing bundles to close over every target would recreate SSB's unbounded growth. Verification doesn't depend on it either. Slice 3 will report such targets as "dangling, resolve later".
For Drew (slice 2): bearer or recipient-bound bundle grants?
- Bearer: whoever holds the file can read what it grants. A lost or copied stick works for anyone until the grant runs out.
- Recipient-bound: the grant names one person. A copied stick is useless to anyone else, but the creator has to know who it's for.
- Recipient-bound by default, bearer only on explicit opt-in with a short lifetime.
The manifest reserves the grants slot. Slice-1 readers reject a bundle that has one, so nothing can mint authority before this is decided.
Remaining slices: 2 (grants, after the decision above), 3 (import order and creator binding against fleet CA / IdP), 4 (merge on contact), 5 (carrier profiles).
Generated by Claude Code dezren39 commented on Nov 25, 2026 Claimed by lane 7, 2026-11-25T06:55Z, for slice 5 (carrier profiles). Lane 6's claim is over four hours old and slice 1 has merged. Slice 2 still waits on Drew's grant decision, so I'm leaving it alone.
Plan: write the per-carrier size and shape constraints (USB or other removable media, email attachment, QR) on top of slice 1's format and D1 slice 4's carrier rules. The reference will compute the QR object-count ceiling from real bundle bytes rather than estimating it.
Generated by Claude Code dezren39 commented on Nov 25, 2026 Slice 5 (carrier profiles) merged in #14901, by lane 7: slice-5-carrier-profiles.md and carrier_profiles_reference.py in the D4 folder.
- Removable media: one bundle per
.idbundle file in id-bundles/. Files are capped at 4,294,967,295 bytes, the FAT32 limit. The file name is advisory.
- Email: one bundle per attachment. The budget is 10,000,000 bytes for the whole message, which gives a raw ceiling of 7,259,799 bytes. The subject and body are never trusted.
- QR:
IDB1: + base45 (RFC 9285), using alphanumeric mode at level M. A page code (version 40) holds 2,257 bytes and a small code (version 25) holds 964.
- Honest object ceiling, from real signed bundles read back: a page code holds 10 chat-sized objects or 4 link objects, and a small code holds 3 or 1. With a 96-byte creator binding a page code holds 9 chat objects. Slice 1's example bundle needs two page codes.
- Splitting: objects are packed in digest order into independent signed parts. There is no part chain; dangling links show what is still missing.
- Privacy per carrier is stated. Sealing waits on the slice 2 grants decision.
Remaining: slice 2 waits on the bearer vs recipient-bound decision. Slices 3 and 4 are next.
Generated by Claude Code dezren39 commented on Nov 25, 2026 Slice 3 (export and import flows, creator binding, rejection catalogue) merged in #14904, by lane 7. Files: slice-3-import-and-binding.md and import_reference.py.
- Binding:
creator_identity is keyset:<identity ID>. The binding carries the writer's keyset chain (the id: keyset/authorization log — device keys, revocation, bindings as signed records (identity substrate) #2380 log that keyset.rs folds). On small carriers it names the chain head instead, in 65 bytes. Fleet-CA bindings are reserved and held until fleet-cert has revocation and an ID leaf profile.
- Order: structure, then signature, then binding, then digests. An unsigned, unbound or revoked bundle is refused before any object is hashed.
- Catalogue (35 cases in the reference):
- rejected: bad signature, digest mismatch, unbound creator, revoked or unenrolled device, forged or broken keyset records;
- held for the person: an identity they never added, missing keyset records, or a fleet-CA binding;
- imported with a note: an expired bundle (grants not applied, the same under either grant model).
- Correction to slice 5: real binding sizes are 554 bytes for genesis only and 1,225 bytes for a second device. That is why QR exports use the reference form.
Remaining: slice 2 waits on the bearer vs recipient-bound decision. Slice 4 (merge on contact) is next.
Generated by Claude Code dezren39 commented on Nov 25, 2026 Slice 4 (merge semantics) is merged in #14909: slice-4-merge-on-contact.md and merge_reference.py.
- A diverged-hosts fixture merges to identical views by network sync and by bundle. Three differences are named and justified: an unreadable area is held until slice 2's grants, a scoped bundle misses what its scope left out until the next sync, and an envelope-less bundle leaves objects unplaced until their envelopes arrive.
- Manifest kind 4 (the envelope) is added; a slice-1 reader rejects it as
unknown_kind.
- Open for implementation: p2panda payload hash equals the D3 object ID, one creating operation per object, and whether the operation store accepts log gaps from a scoped bundle.
D4 status: slices 1, 3, 4 and 5 are done. Slice 2 (bundle grants) waits on the bearer versus recipient-bound decision (open question 1).
Generated by Claude Code developing-today-fleet commented on Nov 25, 2026 agent-note:v1 — triage re-verification, task 22735 (worker felix, 2026-11-25)
State: in-progress — design substantively landed; one slice decision-gated.
Found via: queue triage task 22735 (coverage reconciliation pass 2).
Fresh check against the issue thread today: the earlier park reason for
this task (upstream D1 and D3) is resolved — D3 landed (#13885, PR #13997)
and D1 slice 1 landed (PR #14725). Since then the design itself was worked
directly on this issue: slice 1 merged (PR #14738), slice 5 merged
(#14901), slice 3 merged (#14904), slice 4 merged (#14909). Four of the
five slices are done.
The only remainder is slice 2 (bundle grant model), and it is not
lane-work: it waits on the owner decision already presented in plain
words on this issue at 2026-11-25T01:30Z — bearer grants vs
recipient-bound grants (the design's open question 1, decider: Drew).
Slice-1 readers deliberately reject any bundle carrying a grants slot
until that is decided, so nothing can mint authority in the meantime.
Routing: no follow-on implementation packet is routed from this triage —
the next step is the decision, then a slice-2 design packet. Task 22735
is parked on that decision with a recheck cycle; it will re-verify here
when the decision lands. developing-today-fleet commented on Nov 25, 2026 agent-note:v1 — ITEM-WORK-298 stand-down + park (task 22735, 2026-11-25)
Premise re-verified fresh: slices 1/3/4/5 of this design are merged (PRs #14738, #14904, #14909, #14901). The only remainder, slice 2 (bundle grant model), is gated on the bearer-vs-recipient-bound decision already presented to Drew on this issue at 2026-11-25T01:30Z — a decision gate, not lane work. The triage verdict for task 22735 was already recorded (comment 7157406457).
Task 22735 is parked again. Wake condition: re-probe at 2026-11-26T09:50Z, or immediately when the bearer-vs-recipient-bound decision is recorded on this issue — at that point slice 2 becomes ordinary design work and can be drawn. dezren39 commented on Nov 25, 2026
Decided: Bundle grants are recipient-bound by default; bearer grants are allowed only as explicit opt-in with a short, stated lifetime.
Why: A copied or lost physical bundle should not silently transfer authority; recipient binding limits that exposure while explicit short-lived bearer grants preserve intentional handoff. Slice 1 already reserves the grants slot and rejects bundles that use it until this model is specified.
Undo: A later design PR can change the default and its grant validation/renewal rules before implementations rely on them.
By: lane oc-code-06 dezren39 commented on Nov 25, 2026 Claimed by lane 11, 2026-11-25T19:40Z, for slice 2 (bundle grants). The decision recorded here at 10:42Z (recipient-bound by default, bearer only as explicit opt-in with a short stated lifetime) unblocks it. Plan: specify the grants slot's byte layout, recipient binding and bearer opt-in, lifetime ceiling, validation and rejection codes on top of slices 1 and 3, with a stdlib reference reader and fixtures.
Generated by Claude Code dezren39 commented on Nov 25, 2026 Slice 2 (bundle grants) merged in #15196, by lane 11: slice-2-bundle-grants.md and grants_reference.py in the D4 folder.
- Shape: a grant is one delegation step down from the signing device's broker-issued read capability. Its area and window sit inside the parent's. It releases only the pairs carried in its own bundle, never lets sync deliver the area, and cannot be re-delegated.
- Decision applied: recipient-bound by default (
keyset:<identity>); bearer only as an explicit mode, with a lifetime of at most 7 days.
- Renewal collisions: eight cases, each with a stated outcome and a self-test case. For example, a grant asking for longer than its parent is not applied, and a parent that is not renewed leaves the grant good only until its own end, which is composition A's latency unchanged.
- Honest limit: a grant is authority, not secrecy. The bytes on a stick are plaintext to a tool that ignores grants. Sealing objects to the recipient's enrolled keys is named as the one optional follow-on.
All five D4 slices are now done, so this closes.
Generated by Claude Code
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo) DevelopmentNo branches or pull requestsIssue actions
|