Peerborne runs the application and document replica on each device. GossipSub carries sync envelopes, Helia serves encrypted blocks, and direct streams carry messages such as invitations and load replies.
Select a flow or a component to trace its route. Each step links to the evidence for that decision.
Document engineOn device
Peer networkDirect / relay
On deviceIndependent trustPeer transport
Edit & sync
Default BeeKEM document · The sender emits two encrypted artifacts.
Apply local edit
The SDK applies the local CRDT edit. The editor can show it before persistence or publication finishes.
The SDK exports a signed checkpoint, sealed under an application AES-GCM key. It holds document keys; the application stores it and never transmits it.
The linked Dafny obligation checks the selected production TypeScript under its stated input domain. Runtime tests can cover the boundary that supplies those inputs.
Runtime evidence
The linked properties, integration tests or checks exercise the named behavior under their recorded schedules and environments.
Trust assumption
The claim depends on input supplied by the application, platform or cryptographic provider.
Open guarantee
The linked evidence covers part of the path. The full stated guarantee still needs a proof or a platform check.
Review a proof by comparing the claim to the linked requires and ensures, then checking that the production caller establishes those preconditions. A domain witness demonstrates valid inputs. Counterexample controls check that selected broken variants fail. A passing solver result cannot establish that the contract captures all the behavior the application needs.
Store serialized changes as encrypted CID blocks. Publish a separate encrypted envelope and check its signature against current local writers when signing is enabled.
Signing defaults on, with a legacy opt-out. A local edit may become visible before persistence or publication succeeds.
Share capacity between the ordinary listener and topic validator. Charge a work item and its ciphertext bytes before copying, decrypting, decoding, or queuing it. Keep the latest skipped frame of each of up to eight senders, holding a shared credit, once it decrypts under the current document key, and process it when a credit frees.
Proved The budget policy preserves count and byte bounds across finite histories. Runtime tests check the shared budgets, cutoff on close, and batches of up to four signature checks per verification.
Limits account for admitted and retained frames; retained frames are also bounded by sender count and the local byte budget, with one authentication check at a time. Native heap and wall time need measurement. Other skipped frames rely on a kept frame carrying their changes, or on later synchronization.
Authenticate the offer, request and acceptance. Bind a consumed acceptance to its original request and retire replay entries only after expiry.
Proved Accepted bindings survive every finite ledger history until expiration. Expired offers cannot be revived.
The model starts with authenticated requests and a process-local ledger. Authenticated bearer-link delivery and durable replay protection need separate evidence.
Advance only one generation. Ignore exact redelivery. For a same-generation conflict, check its predecessor and public tree commitment. Grow the tree by at most one leaf.
Proved For validated counters and a supplied digest match, the classifier recognizes exactly stale, duplicate, fork, next and gap. It enforces the configured leaf capacity.
Sender authentication and secret distribution need separate evidence.
Commit a signed PathUpdate only while its parent and writer set are current. An application may pin the exported checkpoint’s SHA-256 commitment in independent storage and supply it on restart.
Proved The guard admits the exact next generation only with current parent and writer inputs. A blanked leaf slot cannot be reused. Finite histories preserve both guarantees across restart when the authenticated checkpoint matches an independently trusted current pin.
The application must keep checkpoints encrypted, since they hold document keys and plaintext state, and keep the independent pin fresh. Peerborne Note and the password-manager example omit the SDK pin. Browser-app rollback protection and group-wide exclusion remain open.
Stop a replica that observes competing BeeKEM successors
After checking the current writers, stop the document on a signed claim at the current generation for the last accepted predecessor and a different validated public tree.
Proved The competing-epoch predicate requires all three conditions. Runtime properties exercise independently generated successors, signed competing removals, and a restored predecessor commitment.
Each document instance stops on observed evidence. The signed public tree alone gives no guarantee that the competing private epoch is usable. Automatic branch selection and old-document convergence remain open.
Keep a stopped BeeKEM document fenced across restart
When configured, persist a session lease before exposing the document. Quarantine after an authenticated fork. A remaining lease blocks restart if the write is interrupted.
Proved Finite histories preserve a quarantined record and prevent release by a stale or foreign lease. Runtime tests exercise restart after acknowledged and interrupted writes.
The application provides independent durable storage and an exact atomic compare-and-swap. An unclean shutdown can require explicit recovery onto a fresh path.
Bind approval to the current logical locator, replacement identity and selected content. Stage the fresh document privately, then advance the application locator atomically.
Proved Modeled activation histories permit at most one successor for the pinned base. An exact retry after activation confirms the same receipt.
The application owns the recovery authority, private staging, recipient enrollment and independently protected atomic locator. This flow creates a new document path.
Carry a BeeKEM removal through every authority boundary
After an authenticated removal, a current replica should use the matching tree, key epoch and writer set together. Restart should preserve that decision.
Pinned founder restarts and new-epoch encryption have runtime coverage. The group-wide guarantee across tree transition, reader and writer ACLs, and loading remains open. Independently replicated ACLs can temporarily disagree.
Bind signed document roles to decrypting membership
In the strict coordinated profile, verify that the signed roles and the provider’s authenticated member list match before exposing the document or accepting new content.
Proved The roster policy accepts equal lists within the size bound. An ID absent from an admitted authority roster is also absent from the matched provider roster.
The provider reports its actual decrypting membership. Replicas enforce the new roles after they receive both authenticated updates. Offline replicas can retain earlier keys and content.
Surviving members need fresh key material after removal. Previously shared keys and plaintext remain readable to the members who had them.
Forward secrecy, post-compromise security and exclusion across every key-distribution path remain open. Native cryptography and provider behavior are trust boundaries.
Check the group context, parent head and action-specific epoch before applying a control transition. Reject a stale or mismatched base.
Proved The append policy checks the supplied parent, context and action-specific epoch. Accepted transitions preserve the epoch rule through finite histories.
A pinned controller and the group provider must authenticate the policy inputs. Recovery from an authenticated fork depends on explicit application authority.
Bind each fresh control head to one controller. Later records must preserve the old head-to-controller bindings and advance the signed role history.
Proved Finite histories preserve old head-to-controller bindings and exclude heads introduced only by unsigned attempts.
The history model assumes current-controller authentication. The role log and provider’s decrypting roster must stay in agreement through provisioning and group transitions.
Verify the content signature and AEAD context before admission. The signed sequence and parent hash connect the change to its author’s accepted history.
Proved Accepted finite histories extend each author’s hash and sequence prefix. Gaps, duplicates and conflicting parents do not extend it.
The model assumes validated context, signatures and author bindings. Provision a separate cryptographic group per document for confidentiality isolation.
A restricted writer may touch only targets inside a granted segment path. Ancestor replacement requires an ancestor grant. A reader cannot author an accepted mutation.
Proved Accepted finite target histories cannot overlap a protected path disjoint from every grant.
The model assumes faithful target extraction. Generated properties exercise the bundled Automerge and Yjs adapters, including changes invisible in the rendered document.
Prepare CRDT changes in a detached session. Reserve count and bytes, then check live authority and context at commit. A prepared change can commit at most once.
Proved Finite histories keep reservations within their count and byte bounds. At most one completion can commit a prepared change with matching context and authorization.
The model receives reservation and completion events. Native staging, cancellation and JavaScript scheduling require runtime checks.
Reassemble encrypted UnixFS files within read limits
Bound traversal and accumulated ciphertext. Check the complete ciphertext before deserializing changes.
Proved The reservation policy charges the exact admitted prefix. UnixFS assembly writes each admitted byte at most twice into its own buffers. A Chromium profile relaunch restores and edits a document with at least 50 MiB of encoded history.
The browser fixture restores an application-held checkpoint and supplies the signed missing history. Renderer memory and latency depend on the workload and device.
Restore coordinated state against a durable anchor
Authenticate the checkpoint, replay admissible entries, and recheck the independent rollback anchor. Expose the recovered document after activation verifies its signing identity and current authority.
Proved The exposure guard checks freshness at the final anchor observation and requires an authenticated current checkpoint or exact next checkpoint with a matching parent. Built-in IndexedDB recovery uses at most 147 logical journal row reads, excluding anchor-provider I/O.
The device key and independent anchor must survive restart. An in-memory anchor cannot detect rollback across process loss.
Merge a controller checkpoint into retained local state
Match current strict roles and epoch. Verify the controller’s response for the current document and the receiver’s request, then publish the native merge after journal acceptance.
Proved Receipt admission preserves existing heads and prevents a peer from seeding the requester’s sequence. Native scenarios exercise current-epoch recovery and restart.
The application retains identity and trust, supplies authenticated control and role delivery, and relays the messages. The snapshot payload is limited to 512 KiB and conflicting receipt prefixes require ordered redelivery.
Preserve accepted publication through journal updates
Retain publication entries bound to the accepted frame and checkpoint token. A failed or stale store update must preserve accepted entries.
Proved Finite store histories preserve accepted entries on failed or stale attempts. Publication count and byte totals stay within the configured bounds.
Platform storage and retry execution determine durability and delivery. This journal belongs to coordinated mode.
Check framed offsets and byte limits before copies. Bound graph admission and retain only live, authenticated sync-response requests within the replay budget.
Proved Offsets and retained chunks fit the frame budget. Work reservations cannot exceed their cap. Sync admission retains at most 46 replay entries in the checked history model.
The sync replay ledger belongs to a live BeeKEM document instance. Total heap, crypto cost and event-loop delay need separate measurement.
Select only deletable candidates, recheck a live unpinned lease before deletion and enter deletion at most once per attempt.
Proved Finite sweeps preserve initially protected blocks under fixed guards. A live unpinned lease is required to enter deletion, at most once per attempt.
The model assumes truthful protection and lease observations. Browser quotas, whole-history compaction and late-join availability require further evidence.
GossipSub carries update envelopes and Helia serves encrypted blocks. The cross-NAT browser suite exercises a configured Circuit Relay path with distinct identities.
Transport identities, coordination metadata, timing and sizes remain visible. Delivery guarantees, mesh saturation and metadata anonymity remain open.
Replicas with the same admissible native operations should converge according to their adapter’s merge rules.
Seeded adapter properties exercise generated histories. Convergence of a partitioned live group through membership changes and missing history remains open.
Secure recovery after eviction requires independently available identity, trust commitments and authenticated document state.
The browser scenario exercises storage eviction. Product-wide encrypted recovery following identity or anchor loss remains open. The application may install an explicit recovery authority.
CI verifies the selected contracts and counterexample controls. The release workflow tests packed consumers and checks dependencies before publication.
The workflows provide evidence for the examined revision, dependencies and platforms. Release clearance requires a current successful audit and the applicable approval.