Skip to content

CashWeb protocol specification ​

Status: normative human semantics and protocol index. This document distinguishes deployed behavior from code that exists but is not on a production path, and from the clean-break target. It does not claim that cashwebd, a wallet, a bot, or the app implements a rule merely because the rule is specified here.

The words MUST, MUST NOT, SHOULD, and MAY are normative as described by RFC 2119, but only inside the status named for the rule. A PROPOSED rule is a conformance requirement for the target cutover, not a statement about the current daemon.

Every normative paragraph or list below is governed by its nearest explicit bold status label. A section without a label has no normative default; tables carry status per row. This prevents a current implementation fact from silently turning a target rule into a shipped claim.

1. Status vocabulary and source hierarchy ​

PROPOSED.

  • SHIPPED — reachable through a normal in-repository runtime path on this branch.
  • IMPLEMENTED-NOT-WIRED — code and tests exist, but normal clients do not use the path.
  • PROPOSED — accepted target semantics; implementation and cutover remain required.
  • UNALLOCATED — a namespace or wire identifier has deliberately not been assigned.

This file owns human protocol semantics, trust boundaries, identity rules, lifecycle rules, and the conformance index. It intentionally does not duplicate every numbered CBOR field:

  1. protocol/cbor/*.cddl owns exact record structure.
  2. protocol/cbor/README.md owns the current frozen FRNK encoding, canonical-validation, resource-limit, transcript, and validation-order profile until each rule migrates here once. It is not a second system architecture.
  3. protocol/cbor/vectors/ and protocol/cbor/vectors.schema.json are executable proof of the claimed bytes and outcomes. Passing vectors proves only the operations they name.
  4. backend-topology.md and public-federation-plan.md are subordinate topology and historical transition inputs. Their service/storage separation remains a constraint, but their protobuf, route, record, and exact-wire sketches do not allocate or override this specification.
  5. Transitional documents, including protocol/cbor/topic-http-coexistence.md, define a bounded coexistence path. They cannot silently redefine record identity or extend the target.

If prose and executable structure conflict, implementations MUST fail closed and the conflict MUST be resolved in these sources; an implementation must not guess. The currently known intentional difference is explicit: the frozen CBOR profile permits a directory subject to publish its identity key as P', while the PROPOSED clean-break wallet/profile rules below prohibit all reuse among P, M, and P'. No writer may present the stronger rule as shipped before the directory record and wallet cutover enforce it.

2. Current boundary and clean break ​

SHIPPED. There is one direct-message path: the canonical CBOR transport on the relay's account message routes. The protobuf path (PUT /message/monad, the version-2 Monad envelope and the wallet's MonadStampClient) is deleted from the relay and the wallet; where later sections still describe it, they describe history. The same long-lived identity key currently serves directory/profile signing, mailbox challenge authentication, DM ECDH, and the base for payment children. That is implementation fact, not the target key model.

SHIPPED. Topic types 40–42 have an opt-in application/cbor write and exact-post read path. Normal wallet construction defaults to protobuf. Topic lists and discovery remain protobuf-only. The exact coexistence and removal trigger are in topic-http-coexistence.md.

SHIPPED. The relay accepts explicit CBOR account registrations and the wallet exports the matching helper. Normal app and bot registration still writes protobuf; explicit helper reachability does not make their default registration flow CBOR.

IMPLEMENTED-NOT-WIRED. TypeScript @frank/codec and Rust frank-cbor implement additional FRNK/deterministic-CBOR families described in their READMEs, and @frank/crypto-box implements versioned deniable envelopes. Production FRNK crypto, DM, checkpoint, wallet, bot and app paths are not wired merely because those codec/crypto pieces exist.

PROPOSED. There are no customer compatibility commitments requiring a mixed protocol. The repository's Rust relay, TypeScript clients, wallet, bots, and app will switch as one reviewed clean break. Legacy readers may exist only where an explicit bounded migration owns them. They are not aliases, writers, identity bridges, or permission to transcode legacy bytes into FRNK.

This specification is the hostile-review point before daemon work proceeds. Implementations MUST NOT independently allocate record types, suites, routes, or persistence semantics covered here; the normative allocation gates stand on their own and do not depend on mutable tracker status.

3. Authorities, keys, and trust ​

3.1 Three independent wallet roles ​

PROPOSED. A wallet derives three independent secp256k1 roles from disjoint, fully hardened branches of the recovery seed. The numeric derivation-path allocation is UNALLOCATED; the live m/44'/60'/1'/0/0 identity path and the CBOR README's non-normative P' recommendation do not allocate the target branches.

  • P — public directory authority. It signs directory statements and key transitions. Its secret is never used for ECDH, mailbox challenges, ordinary-message authentication, payment derivation, or chain funding.
  • M — mailbox and ordinary-DM key. It authenticates mailbox access and participates in the deniable DM suite. It never signs public directory assertions or derives stamp destinations.
  • P' — stamp-receipt key. It is the public base for recipient-controlled one-time payment destinations and nothing else.

All path components below the seed separation point MUST be hardened. A wallet MUST NOT reuse a secret or public point across these roles, derive one role from another role's extended public key, or export a role-level extended public key. A missing M or P' is an unreachable recipient, not a request to fall back to P or to any legacy identity key. Restore MUST recover each role from the seed plus its persisted/verified rotation index; ambiguity fails closed.

SHIPPED. Current protobuf profiles publish one key and current code reuses it across these roles. This conflicts with the proposed target and therefore requires new directory semantics and a coordinated rewrite; it cannot be asserted by a codec-only change.

3.2 Public authority and deniable messages ​

SHIPPED. Explicit CBOR account registration reaches PUT /metadata/:addr through the wallet's registerMonadIdentityCbor helper and the relay's verify_cbor_account_registration verifier. That boundary validates a type-2 attestation and its embedded type-1 schema-3 statement through stage 10.6 and stores the exact accepted CBOR bytes.

IMPLEMENTED-NOT-WIRED. Generalized directory-transition use, including independently reachable type-3 transition workflows, is not a normal client path. Directory statements and transitions are intentionally transferable public evidence. Their exact T2/T2a transcripts, signer selection, key-type and signature-algorithm pairings are frozen in protocol/cbor/README.md#8-cryptographic-transcripts. A relay or peer is a carrier, not an authority: consumers trust a record only after validating its authority chain and network context.

PROPOSED. Ordinary authenticated DMs use M and MUST remain deniable: the recipient can construct a ciphertext accepted as coming from the sender, so the ciphertext is not third-party proof of authorship. Chain transactions authenticate their funding accounts and public directory signatures authenticate P; neither becomes a signature over DM plaintext.

IMPLEMENTED-NOT-WIRED. The crypto-box authenticated modes have no forward secrecy against compromise of the recipient's static key: there are no prekeys or ratchet, and recorded ciphertext can be decrypted after that compromise. A stolen recipient static key also permits key-compromise impersonation to that recipient.

PROPOSED. Directory-bound M revisions do not change those limits. The directory hash selects an accepted public-key revision; it does not prove authorship, restore forward secrecy, or prevent a holder of a compromised accepted M from impersonating a sender to that recipient. Implementations and UI MUST state these limits and MUST NOT claim forward secrecy.

3.3 Required context binding ​

PROPOSED.

Every CashWeb-defined signature, content hash, encryption operation, payment commitment, provider receipt and journal identity MUST use a distinct versioned ASCII domain. Its transcript MUST length-delimit variable inputs and bind the exact network tag and operation context. Target DM authenticated data MUST additionally bind both parties' exact M keys, both exact sender and recipient directory-statement hashes, and every relevant origin/destination provider-binding and descriptor-revision hash. The delivery frame and payment identity cover that same context. A valid object from another network, directory revision, provider binding, record family, or operation is therefore not reusable. Callers do not choose which network or directory hash a transcript uses; those values come from validated records. Missing context is a failure, never an empty-string default.

Native chain signatures are not re-domained by CashWeb. A pinned chain adapter constructs the chain's canonical replay-protected signing preimage, including the exact chain ID and transaction type. Frank separation is supplied by the T4 or provider-fee commitment carried inside that signed transaction. Adapters MUST prove the mapping for every supported transaction family, including EIP-1559 typed transactions; a generic message-signing or wrong-chain preimage fails closed.

The Monad adapter registry MUST distinguish the shipped legacy recipient-stamp calldata POND || 0x02 || legacy_commitment from the PROPOSED target mapping POND || TARGET_T4_TAG || T4, where TARGET_T4_TAG is symbolic and distinct from legacy 0x02. Its numeric value, chain-adapter/transaction-family registry, applicable route and media type, exact calldata bytes and known-answer/hostile vectors are UNALLOCATED until reviewed. No target transaction is admitted under the legacy tag and no legacy transaction is reinterpreted as T4.

4. Namespaces and allocations ​

Identifiers are scoped; equal integers in different columns have no relationship.

NamespaceCurrent allocationStatus
FRNK frame version, explicit slices1 for explicit CBOR registration and opt-in topicsSHIPPED
FRNK frame version, other families1 in codecs, with no normal production routeIMPLEMENTED-NOT-WIRED
FRNK type IDs, explicit slices2/4 registration and 9–11 opt-in topicsSHIPPED
FRNK type IDs, other codec structures1, 3, 5–8, 16, 17, 18; proof-only 0xffff0001, never production; see CBOR E5IMPLEMENTED-NOT-WIRED
Account key type, explicit registrationtype 1SHIPPED
Account key types, other codec allocations2 Ed25519 and 3 x-only secp256k1IMPLEMENTED-NOT-WIRED
Signature algorithm, explicit registrationalgorithm 1 strict-DER low-S ECDSASHIPPED
Signature algorithms, other codec allocations2 BIP340, 3 BCH-2019 Schnorr, 16 Ed25519; individual operations may remain unsupportedIMPLEMENTED-NOT-WIRED
FRNK DM encryption suitesproduction 1 = authenticated secp256k1/HKDF-SHA256/XChaCha20-Poly1305 in type-11 schema 2; proof-only 65535 remains schema 1IMPLEMENTED-NOT-WIRED
Crypto-box suitesproduction suite 1 is the FRNK DM allocation; 0xFE01–0xFE03 remain private library-only suites and are not used by the normal relay pathIMPLEMENTED-NOT-WIRED
Crypto-box KEM/AEAD private useKEM 0xFF00; XChaCha AEAD 0xFF01, inside crypto-box onlyIMPLEMENTED-NOT-WIRED
Target directory statement and standalone presentation profileno FRNK type IDs or schemasUNALLOCATED
Checkpoint journal fact kindsnoneUNALLOCATED
Provider/descriptor, delivery, status, reset recordsno FRNK type IDsUNALLOCATED
Target type-10/type-11 delivery schemasschema revisions, required context field IDs and min_reader_versionUNALLOCATED
Target validation operationsprovider-admission and recipient-acceptance contexts, error taxonomy, CDDL, codec and vector registrationsUNALLOCATED
Destination-sealed payment bundlesealing suite/key/transcript/schema and destination unseal operationUNALLOCATED
DM revision relationauthenticated predecessor/revision/fork schema for post-v1 mutable messagesUNALLOCATED
Chain-adapter transaction commitmentsregistry entry for legacy `POND
Delivery preseal contextdomain, schema and encoding for acyclic preseal_context_id, ciphertext commitment and delivery-hash bindingUNALLOCATED
Target public federationevent/journal/cursor/snapshot, peer capability, retention-mode and subscription-generation wire IDs/routesUNALLOCATED
Stamp-set structural errorsfunding/destination identity rules and duplicate/overlap error registrationsUNALLOCATED
Mailbox/stamp generation fieldsdirectory-authorized mailbox-key and stamp-key generations, destination-provider mailbox-admission capabilities, plus provider-authorized instance generation encodingsUNALLOCATED
Account admission authorizationallowed recipient-M tuples, rotation class/grace bound, destination binding and predecessor/sequence fieldsUNALLOCATED
Inter-provider destination claimexact handoff ID/hash, signed claim receipt and reconciliation/status recordsUNALLOCATED
Legacy-to-FRNK cutoverper-account/mailbox epoch, fence marker, tagged row states and removal evidenceUNALLOCATED
Partial-payment recoveryobligation/status/journal-fact/ack record types and fieldsUNALLOCATED
Recipient-owned output lifecyclechild-derivation/import/checkpoint/ack records and exposure policyUNALLOCATED
Topic logical relationslogical-root derivation; predecessor/edit/tombstone/moderation records; vote-target discriminator and migrationUNALLOCATED
Target hardened wallet branches for P, M, P'noneUNALLOCATED

IMPLEMENTED-NOT-WIRED. A codec writer MUST NOT copy a crypto-box suite ID into the FRNK encryption-suite field, emit proof-only IDs, infer a suite from nonce length, or consume an unallocated number. Allocation requires exact KEM, KDF, AEAD, nonce, associated-data, deniability/authentication, error, and vector rules.

Type 25 (Universal State Channel Update) is the canonical protocol item for off-chain peer-to-peer state execution, atomic cross-chain swaps, and multi-network balance allocations across Monad, eCash, and Solana without gas friction.

5. FRNK and canonical validation ​

SHIPPED. The rules in this section govern explicit CBOR registration and opt-in topic boundaries.

An independently stored, signed, hashed, forwarded, or interpreted object is one FRNK frame. The exact nine-byte header, common envelope, deterministic-CBOR profile, resource limits, and staged error precedence are normative in CBOR sections 1–4 and section 9.

The non-negotiable system properties are:

  • Validate route and global limits before allocation; validate canonical form before typed conversion; then schema, semantic, cryptographic, and external observations in the frozen order.
  • An unsupported frame version rejects at an interpreting boundary. A contract that explicitly permits exact opaque retention keeps the complete frame and stops before parsing its version-specific length or CBOR; it does not interpret those bytes as version 1.
  • For decoded version-1 CBOR, reject length mismatch, trailing data, indefinite forms, non-minimal integers/lengths, non-integer keys, out-of-order keys, and duplicate keys. Never codec-sniff or fall back to protobuf/JSON/BCS after failure. Canonical-at-depth rules do not inspect opaque unsupported-version bytes.
  • The exact complete frame is the byte identity for every transcript. Forwarders MUST retain the original frame and MUST NOT decode and re-encode authenticated, committed, or unknown data.
  • Within one actor's validation boundary, no stage may spend funds, consume a payment, advance a cursor, or persist an interpreted object until every later check available to that actor succeeds. Recipient-only decryption and plaintext checks are not provider stages and cannot retroactively undo valid opaque delivery or its payment.

IMPLEMENTED-NOT-WIRED. The same validation machinery exists for other record families, but no normal production path thereby uses those families.

6. Versioning and authenticated unknown fields ​

SHIPPED. The rules in this section govern explicit CBOR registration and opt-in topic boundaries.

Payload extensions use additive unsigned-integer keys and a monotonically increasing schema_version. Changing identity, ordering, cryptographic meaning, validation, or a required field also raises min_reader_version. Type IDs and field numbers are never reused.

An exact supported schema rejects undeclared fields. A newer schema with min_reader_version <= reader_version may be projected only through the open maps named by its CDDL. The reader MUST preserve the exact original complete frame and the exact unknown fields, and MUST NOT claim the unknown semantics were verified.

An intermediary MUST NOT drop an authenticated unknown field and re-sign the known projection. It forwards the original bytes or rejects. If min_reader_version is too high, the object is opaque only where the containing contract permits exact retention; otherwise it fails closed. Canonical order and duplicate rejection apply at every nesting depth of decoded version-1 CBOR, including unknown extension values; they do not inspect exact-retained unsupported-version bytes. These rules are the system interpretation of CBOR C12 and V1–V6.

IMPLEMENTED-NOT-WIRED. The same evolution and retention machinery exists for other record families, but no normal production path thereby uses those families.

7. Record families and identity ​

Exact maps live in CDDL; this section defines what each record means and what identifies it.

FamilyTypes / structureIdentity and authorityStatus
Recipient-delivery codec structuretype 10 wrapping type 11; decrypted type 12 wraps type 20 and items 21/22Delivery bytes and T3 are recipient-specific; immutable logical identity is (network, stable sender/account authority, message_id); T1a identifies exact type-20 contentIMPLEMENTED-NOT-WIRED
Target recipient-delivery semanticssame structure after production allocationsComplete construction, cryptographic, payment, provider and recipient checks in section 9PROPOSED
Explicit account registrationtype 2 attests exact type-1 schema-3 registrationExact accepted statement and stage-10.6 authority validation through the helper/route/verifier pathSHIPPED
Generalized directory codec structuretype 2 attests exact type 1; type 3 authorizes a subject transitionT1 of the opened type-1 statement, not the type-2 wrapper; generalized transition workflow is not normally reachableIMPLEMENTED-NOT-WIRED
Target directory topologytarget statement type/schema unallocatedAuthority is P plus accepted predecessor/recovery rulesPROPOSED
Transitional registration profileoptional field 9 of type-1 schema 3Exact signed registration statement; not the target routing directory or standalone presentation profileSHIPPED
Target presentation profilestandalone record; schema/type unallocatedSigned by P/account authority, fetched from selected provider, never public gossip by defaultUNALLOCATED
Provider descriptortarget record naming provider identity, endpoints, capabilities, networks, pricing and expiry; type unallocatedStable provider identity and signed descriptor revision; endpoints are not identityUNALLOCATED
Mailbox-checkpoint codec structuretype 14checkpoint_id is stable identity, not a serialization hash; facts keep stable fact_idIMPLEMENTED-NOT-WIRED
Target mailbox journal/tombstonetype-14 facts and future mailbox journal records; fact kinds/live wire unallocatedAppend identity is provider-local sequence plus stable object/fact identity; tombstones target logical identity and optionally an exact revisionUNALLOCATED
Provider delivery/store-forwardfuture obligation, attempt, receipt/status and expiry records; types unallocatedClient operation ID plus preseal_context_id and exact delivery-frame hash; a provider receipt is delivery evidence, not sender authorshipUNALLOCATED
Account admission authorizationP-signed directory rotation or separate P-authorized request; type/fields unallocatedExact recipient-M tuples and destination/grace constraints bound what a provider capability may installUNALLOCATED
Mailbox-admission capabilitydestination-provider-signed generation/policy/fence record; type unallocatedProvider/descriptor, directory hash, accepted M set, current P', instance, sequence/predecessor and expiry define local authorityUNALLOCATED
Inter-provider destination claimsigned claim receipt and handoff/status records; types unallocatedInter-provider ID plus delivery and capability hashes establish the sole stamp-broadcast ownerUNALLOCATED
Destination-sealed payment handoffsealed bundle, destination unseal operation and exact binding transcript; types/suite unallocatedDelivery/operation, directory/descriptor, capability/authorization, generation, type-11/T3 and transaction identities bind the destination-only bearer payloadUNALLOCATED
Partial-payment recoveryrecipient-private obligation/status/journal-fact/ack records; types unallocatedStable obligation and operation IDs bind exact type-10/type-11/payment evidence; never normal plaintext deliveryUNALLOCATED
Recovery-capacity reservationadmission reservation and cap-accounting records/errors; types unallocatedExact operation and recipient scope own worst-case count/byte and unconfirmed capacity through acknowledgement or proved nonrecoverabilityUNALLOCATED
Recipient-owned output lifecyclederivation/import/checkpoint/ack records; types unallocatedStamp generation plus exact type-11/T3, member index and transaction ID identify each childUNALLOCATED
Legacy-to-FRNK cutoverper-account/mailbox epoch/fence and tagged-row records; types unallocatedStable fence identity owns old/new protocol admission and target instance successionUNALLOCATED
Target public-federation lifecycleevent, journal/page, cursor, snapshot, peer-capability and subscription records; types unallocatedSemantic record_id and immutable domain-separated event_id; cursor scope includes remote, stream, network and subscription generationUNALLOCATED
Topic post/submission/votetypes 40/41/42Current stored frame/event identity is exact type-40 T1; burn tx ID is a separate consumption keySHIPPED
Forum content/read/statustype40 schema2/min2 and types43–46 schema1/min1Exact immutable post identity, relay observations and incarnation-bound cursors; runtime switch remains under #675IMPLEMENTED-NOT-WIRED

IMPLEMENTED-NOT-WIRED. Unknown item kinds in an open message-item field remain exact child-frame bytes. Unknown checkpoint sections remain exact bytes and are not interpreted merely because they resemble a frame.

8. Directory, provider, and profile topology ​

PROPOSED. These are separate trust and replication domains:

  • The directory is a small public record mapping a network-qualified account authority P to current M, exactly one current P', their generations, and signed provider bindings. It is publicly replicated.
  • A provider descriptor is a provider-signed public record. It names stable provider identity, service endpoints, networks, capabilities, pricing-policy references, payment keys, and expiry. A directory binding pins its descriptor identity/revision; a URL alone is never provider identity.
  • A presentation profile contains display name, biography, avatar and application fields. It is fetched from a selected provider, may be cached with signature verification, and is not automatically federated.
  • Private inboxes, outboxes, delivery attempts, notification state, checkpoints and mailbox tombstones never enter public federation.

The current MonadProfile conflates several of these roles and MUST NOT be treated as the target directory. Clock time does not choose authority: revisions, predecessor links and valid transition authorization do. A fork is retained and surfaced as a conflict; arrival order or the largest authored timestamp MUST NOT silently select a winner.

8.1 Target directory and profile records ​

PROPOSED. The target directory statement schema and type ID are UNALLOCATED. It MUST contain the network-qualified account, current directory authority P, current M plus its mailbox_key_generation, current P' plus its stamp_key_generation, signed provider bindings and exact descriptor revision hashes, a monotonic revision, predecessor statement hash, issue/expiry data, and recovery/transition attachments. The statement is signed by P or the account authority selected by an already accepted transition/recovery rule. Its identity is the authenticated exact statement commitment, not its wrapper, URL, timestamp, or presentation profile. Migration from transitional type-1 schema 3 MUST create a new target statement and explicit predecessor/migration evidence; it MUST NOT reinterpret field 9 as the target profile or silently invent M, P', generation values or descriptor hashes.

PROPOSED. The standalone presentation-profile schema and type ID are UNALLOCATED. A profile MUST name its network-qualified account, directory-statement hash, revision/predecessor, expiry, and exact presentation payload, and MUST be signed by P or the accepted account authority. It is independently cacheable and replaceable and cannot authorize routing, mailbox access, payment receipt, or directory succession.

8.2 Mailbox, stamp, and instance generations ​

PROPOSED. mailbox_key_generation, stamp_key_generation and mailbox_instance_generation are independent authority sequences; their wire fields remain UNALLOCATED in section 15.

  • mailbox_key_generation identifies M under the account/directory authority. Clients discover it only from a validated directory revision. Its succession is authorized by P or the accepted account recovery/transition rule and pins the exact M and predecessor directory statement.
  • mailbox_instance_generation identifies one destination-provider mailbox instance and capability. Clients fetch it through the directory-pinned provider descriptor/binding and accept only a destination-provider-signed capability linked to its predecessor or authenticated reset. Provider failover creates a separately identified instance; it cannot continue another provider's sequence by assertion.
  • stamp_key_generation identifies the exact current P' under the account/directory authority. The directory names the desired generation, but it becomes effective independently at each bound destination provider through the unified mailbox-admission capability below. Stamp rotation is current-only at an effectively fenced provider: installation retires the prior generation for new admission. This clean target deliberately does not inherit frozen S10a's one-previous-key grace.
  • Every stamped provider delivery binds all three generations. Directory-only M or P' operations bind their respective generation; provider-instance management binds the instance generation. Rotating either account key does not reset a mailbox instance, and instance reset or migration does not rotate, revoke or replace either account key.

A P-signed directory rotation, or a separate request authorized by P, commits the maximum account authority a destination may install. It names every allowed recipient-M tuple as exact (directory_statement_hash, mailbox_key_generation, M) values; rotation class routine or compromise; maximum grace boundary; exact destination-provider identity and descriptor revision; and authorization predecessor/sequence. Compromise authorization permits only the current tuple. The authorization record/hash and its wire fields are UNALLOCATED in section 15.

Each bound destination provider signs and atomically installs one mailbox-admission capability. It binds the account-authorization hash, provider identity and exact descriptor revision, exact directory-statement hash, accepted recipient-M tuple set and policy, current stamp_key_generation, mailbox_instance_generation, expiry, monotonic sequence and predecessor capability hash. Its accepted recipient-M tuple set and grace policy MUST equal or narrow the P-authorized tuple set and policy: narrowing means only removing an allowed tuple or shortening its deadline. Capability-only/provider fields validate independently; the provider signature, capability sequence/predecessor, mailbox instance and current P' may differ only as their own rules define. They MUST NOT alter the authorization-bound destination/descriptor or rotation class, add an older generation, substitute M, or extend grace. Its schema, fields and operation are UNALLOCATED in section 15. Every delivery and mailbox challenge names the selected tuple and capability hash; recipient M is accepted only when that installed capability permits the exact tuple.

Seed restore MUST recover the current and still-graced historical M secrets and verified directory history before acknowledging mailbox replay. Erasing a retired secret is allowed only after its grace, every referenced delivery/checkpoint is resolved, and policy accepts losing the ability to decrypt older ciphertext. Erasure does not create forward secrecy retroactively and does not cure impersonation performed while a compromised static M remained accepted.

A sender MUST resolve the freshest directory state and an unexpired installed mailbox-admission capability before reserving funds. Type 11 and provider-admission bind both its exact hash and its account-authorization hash. Missing, expired, mismatched, superseded, widened or uninstalled capability fails closed. Installing the capability serializes through one provider-local compare-and-set against both delivery-operation claims and mailbox challenge/session issuance. If an old-generation claim wins first, that exact operation has the bounded delivery/recovery authority recorded by its claim. If an old-generation challenge or session wins first, it has only its recorded bounded lifetime and cannot mint a successor session. If capability installation wins, retired M authorizes neither new DM admission nor new mailbox authentication, and retired P' authorizes no new stamp admission. Rejection occurs before payment exposure, credit or consumption.

Rotation is provider-effective, not globally instantaneous. Routine grace and compromise no-grace are explicit capability policy, not clock inference. Compromise closure requires installing the successor capability at every bound destination provider. A partitioned or unfenced provider is explicitly not yet revoked and MUST NOT be advertised as current for the successor M or P'. Already claimed, broadcast or confirmed old-generation operations follow their exact bounded terminal/reconciliation/recovery state, never a normal new-admission path. The recipient retains or seed-derives a retired P' secret while any exposed operation, recovery obligation or unswept/unknown child for that generation remains reachable; it may erase the secret only under the output-lifecycle rule in section 9.2.

This capability is destination/recipient scoped; it is not a portable fence for the sender's M. A destination validates sender M against its freshest locally validated, unexpired sender directory revision. Sender revocation is eventual at unrelated destinations, and a compromised sender M may impersonate until the successor revision converges or the old revision expires. A maximum sender-directory validity/freshness window is UNALLOCATED in section 15; after that bound, missing fresh authority fails closed. A recipient client holding a newer validated sender revision rejects the older revision even if its provider has not converged. A sender-home receipt does not close remote destinations and is not portable authority; a portable origin receipt is a future non-goal unless separately allocated.

Referenced sender/recipient directory statements, provider descriptors/bindings, mailbox key generations, stamp generations, instance capabilities and instance generations MUST remain available until dependent deliveries, receipts, journal entries, checkpoints, disputes, recovery obligations and retries are terminal, or an authenticated compact proof replaces them.

8.3 Target public federation lifecycle ​

PROPOSED. Only validated directory statements, provider descriptors and explicitly public topic/pubsub records enter target federation. Each family defines a canonical semantic record_id that commits its authoritative semantic body and revision/predecessor context as that family requires. A domain-separated event_id derives only from network, stream, record family and that canonical record_id, never from alternate wrapper or signature bytes. The same record_id with different semantic bytes is a conflict. Durable exact deduplication by event_id precedes append and forwarding. For an existing event_id, the receiver validates the record and incoming transport proof as needed, then returns ALREADY_KNOWN without another journal append, forward or durable-byte increase. The original acceptance retains at most one bounded sufficient transport proof, selected by the family's canonical deterministic rule; semantic snapshots exclude alternate wrapper and randomized-signature encodings. If authorization semantically requires a threshold or multiple proofs, the family instead defines one canonical bounded proof set and commits that set in record_id; it is not mutable transport evidence. Bloom filters MAY avoid work but are never acceptance, absence or deletion authority, and false positives fall back to exact lookup.

A cursor and its journal state are scoped to (remote provider identity, stream, network, subscription_generation). Pages name a fixed signed high-water mark and do not grow underneath a reader. CURSOR_EXPIRED is explicit: the peer supplies or identifies a signed bounded snapshot whose completeness claim, manifest and high-water are scoped to that exact tuple plus the negotiated capability. The receiver stages and validates it, merges exact-deduplicated valid events into the global semantic store, and atomically advances only that remote tuple's cursor/high-water. An absent record—even in an empty or head-only snapshot—never deletes global state learned from another peer. Only an authenticated tombstone, succession, expiry or family fork-resolution rule removes state. Retention MUST preserve the journal/snapshot overlap promised by the advertised capability; silent cursor reset or timestamp recovery is forbidden.

Peers perform a signed descriptor/capability handshake before exchange. Discovery is bounded, scheme/port/address allowlisted, redirect-limited and SSRF-safe; fetched descriptors do not gain authority from DNS or URL ownership. Topic retention mode is explicit per subscription (complete history, bounded history with snapshot, or head-only). Changing filters or retention creates a new subscription_generation; the old cursor cannot advance the new subscription. Exact numeric wire IDs, routes and encodings remain UNALLOCATED in section 15. Private profiles, mailboxes, journals, payments and recovery obligations have no federation export path.

9. Direct-message construction and acceptance ​

9.1 Target sender order ​

PROPOSED. A sender performs this order exactly:

  1. Before randomness, encryption, or reservation, resolve, validate and pin both sender and recipient directory revisions, M values and mailbox_key_generation values; the recipient current P' and stamp_key_generation; both origin and destination provider identities, bindings, descriptor revisions and capabilities; and the destination mailbox_instance_generation. A stale, forked, revoked, expired, unsupported or mismatched record fails here. The sender also proves its local M secret/public point and generation match the pinned sender revision; there is no fallback.
  2. Encode the ordered message items, type-20 content revision, and type-12 logical message. Compute T1a from the exact type-20 frame. The target logical identity is the tuple (network, stable sender/account authority, message_id), not bare message_id and not arrival order.
  3. Encrypt the complete type-12 frame to recipient M using an allocated deniable suite. Associated data binds the suite, sender and recipient M bytes, network, protocol context, and the exact directory/provider/generation context pinned in step 1. E and X for stamps are never reused as encryption keys or ephemerals.
  4. Draw fresh stamp scalar e, derive E, X and the DLEQ proof, then assemble and encode the final type-11 recipient payload. Required fields inside its exact bytes carry E, X, the proof, both directory-statement hashes and mailbox-key generations, the exact current P' and stamp_key_generation, both provider identities/binding/descriptor hashes/capabilities, the destination provider's mailbox-admission capability and account-authorization hashes, the destination instance generation, network, and every policy/context digest authoritative for associated data, routing and economics. Any outer copy is derived from type 11 and equality-checked. Compute T3 exactly once over that final type 11, then derive child destinations, amounts and T4 commitments exactly as T3–T4 require. Payments go to children of P', never to P, M, a provider fee key, or a burn address.
  5. Create and durably flush a pre-operation intent that owns the complete funding-account and nonce reservation set before signing. The intent binds the operation, final type-11/T3 identity, destinations, amounts and T4 commitments; no other operation may reuse any reservation. Validate the intended network-qualified funding identities and nonces, require pairwise-distinct intended funders, and require the intended funder set to be disjoint from the complete destination set. Funding identity is the network-qualified chain account/spend authority selected by the pinned adapter; destination equality compares the adapter's canonical destination bytes. Reserving one funder under another nonce is still a duplicate.
  6. Build and sign every payment without network dispatch or other external exposure, derive every transaction ID from the exact signed bytes, recover the actual network-qualified funder from each signed transaction, equality-check it and its nonce against the reserved intent, then rerun pairwise funder uniqueness and complete funder/destination disjointness. A signer substitution fails before signed-ready. Verify member indices, destinations, amounts, IDs and commitments, then compute the domain-separated preseal_context_id over the client operation ID, exact type-11/T3, ordered transaction IDs and domain-separated commitments to each exact signed transaction byte string, all pinned directory/descriptor/capability/authorization hashes, all generations, network, policy and every other authoritative input. It deliberately excludes the sealed ciphertext, ciphertext commitment and final type-10/delivery hash, so the graph is acyclic. Seal the complete payment set to the destination with preseal_context_id authenticated in the sealing transcript. Assemble and encode the final type-10 frame containing the sealed ciphertext plus its commitment and preseal_context_id, locally validate it, then compute exact_delivery_hash over those final bytes. Atomically promote the intent to signed-ready while journaling the exact type-10 frame, exact signed transaction bytes, sealed ciphertext, preseal_context_id, exact_delivery_hash, every pinned input and retry state. Flush before network dispatch. The preseal hash domain/schema and sealing suite/key/transcript/schema are UNALLOCATED in section 15; no target writer may ship before independent vectors fix them.
  7. Submit only the exact frame and destination-sealed bundle to the origin provider. The origin may structurally preflight and forward those opaque bytes but MUST NOT learn bearer-broadcastable signed transaction bytes. The destination reserves worst-case recovery capacity, performs the pre-claim checks, durably compare-and-set claims the exact inter-provider identity, preseal_context_id, sealed-ciphertext commitment, exact_delivery_hash, capability hash and generations, and returns a signed claim receipt binding both context and delivery hashes. Only after claim may it unseal, finish payment validation and enter the idempotent exact-byte broadcast/reconciliation loop in section 9.4. In the same-provider case the roles collapse, but durable claim still precedes unsealing and exposure.
  8. On an ambiguous response, restart, timeout, or reconnect, reconcile and replay only the exact journaled operation. Never rebuild payments or re-encrypt under the same operation ID. A new operation is allowed only after either durable proof that none of the old set can land, or a terminal-partial classification followed by durable recipient import and acknowledgement bound to the exact old risk set and evidence. A late landing updates only that old recovery obligation; it never credits, delivers or mutates the new operation.

The target type-10 and type-11 schema revisions, required context field numbers and min_reader_version are UNALLOCATED. Existing schema 1 MUST NOT be reinterpreted or emitted as this target, and no production writer or daemon implementation may proceed until section 15's CDDL, codec and vector allocations land together.

Restart resumes a flushed pre-operation intent before creating another. If no signed bytes were ever externally exposed, release requires durable proof of that fact and an atomic terminal transition; otherwise the funding account/nonces are conservatively retired or swept under an explicit recovery operation. A crash cannot leak a reservation indefinitely, and a reservation is never returned to the reusable pool merely because signing or journaling was interrupted.

SHIPPED. Current protobuf code enforces reservation-before-signing and exact-byte retry. The app/production wallet composition also provides journal-before-PUT through StampAttemptJournal; the reachable bot composition omits it and is not crash-safe. Neither composition implements the target FRNK frame, M/P' separation, destination-sealed bundle or production FRNK suite.

9.2 Provider-visible admission and economics ​

PROPOSED. provider-admission and recipient-acceptance are distinct named operations with distinct validation contexts and error namespaces. Their operation registrations, context fields, errors, CDDL, codec support and vectors are UNALLOCATED in section 15; the current frozen validation profile is unchanged, and daemon implementation is blocked until those artifacts land.

For provider-admission, the provider context supplies the requested route, exact network, validated sender/recipient directory revisions and mailbox-key generations, origin/destination provider identities and descriptor capabilities, destination instance generation, current P', stamp generation, installed mailbox-admission capability and account authorization, operation identity, canonical finality policy, and chain observations. The common pre-claim order uses only visible data: framing and canonical outer form; target outer schema; equality of visible copies; T3 and visible P'/DLEQ; asserted preseal_context_id shape, equality across visible occurrences and claim binding; sealed-ciphertext commitment; recomputed final exact_delivery_hash; then replay and capacity checks. Neither the origin nor the destination can recompute the full preseal context before unsealing, and the origin never recomputes it. Only after durable claim does the destination unseal, recompute preseal_context_id from the exact signed bytes, transaction IDs and every bound input, and compare it to the assertion. It then checks destinations, amounts, T4 and chain-adapter rules, repeats the pairwise distinct-funder and funder/destination-disjoint checks, then performs external observation and finality. Structural/context failures, cryptographic failures, replay conflicts, payment insufficiency and provisional/finality states remain distinguishable. The origin never runs the bearer-payment stages. A provider never invokes recipient-acceptance or reports its errors.

An origin provider may validate only the outer frame, routing bindings and sealed-bundle commitment; it gains no economic authority and never receives broadcastable transaction bytes. The destination validates the same visible pre-claim structure/context and the still-sealed bundle commitment, atomically reserves recovery capacity, claims the operation and signs the claim receipt. Only then does it unseal, recompute the full preseal context and validate exact transaction bytes, T4 destinations/amounts and chain rules before any recipient-stamp exposure. Unseal, hidden-member or asserted-ID mismatch and every other post-claim validation failure is a zero-exposure terminal claim. Duplicate funding identities (including different nonces) and any cross-member funder/destination overlap are distinct provider-admission error categories whose registrations remain UNALLOCATED; once allocated, they fail after claim but before exposure.

The destination provider verifies the bound account authorization and proves that the capability's accepted recipient-M tuples and grace policy equal or narrow the authorized tuples/policy by removal or shorter deadline only. It independently validates the provider signature, capability sequence/predecessor, mailbox instance and current P', and proves none alters the authorization-bound destination/descriptor or rotation class. It then compares the capability, directory hash and exact recipient-M tuple to its atomically installed generations and policy. Capability installation, operation claim and challenge/session issuance use the compare-and-set order in section 8.2. A generation retired at that provider is a stale-context failure even when its proof and transactions are otherwise valid; only an operation claimed before the fence may enter the broadcast and terminal/recovery path below. The origin's structural preflight never creates payment authority.

Provider admission, provider delivery fees, and recipient stamp payments are distinct. A provider fee MUST use its own domain and record; it MUST NOT be counted as the recipient stamp. Store and forward retries are idempotent by (client_operation_id, exact_delivery_hash). Reusing an operation ID for different bytes is a conflict. A successful duplicate returns the same terminal result and does not rebroadcast, append a second inbox row, or consume payment twice.

Before claim or exposure, the destination atomically reserves worst-case recovery capacity for the operation. Policy has global and per-recipient count and byte caps plus a distinct cap for unconfirmed/could-still-land members; exact retries retain the same reservation. At capacity, admission returns a retryable result with zero claim and zero exposure. Capacity is released only after recipient acknowledgement of imported recoverable outputs or proof of a nonrecoverable terminal state. Expiry may release evidence only for members proved never confirmed and unable to land; confirmed recipient-owned value and its exact evidence never expire merely for quota relief. Cap values, accounting units, reservation records and errors are UNALLOCATED in section 15.

Each required payment member has a durable state: reserved, signed, broadcast, observed-provisional, ambiguous/could-still-land, final, or terminal failure, with its exact signed bytes, transaction ID, block hash/height and observations. The exposure policy deciding when signed bytes could still land is canonical and UNALLOCATED in section 15; member index or settlement order never changes the result. Aggregate state precedence is: final only when every required member is final; terminal-partial when at least one member is final, irreversibly recipient-owned, or exposed/could-still-land and at least one required member terminally fails; terminal failure only when at least one member fails and every other member is proved unable to land; otherwise pending. A later observation may refine a member and the aggregate under those rules, but cannot erase exposure evidence.

Delivery occurs only after every required member independently reaches final with the configured minimum and exact commitment. A terminal-partial aggregate never delivers: recipient-owned or possibly landing value remains recoverable exactly once, and all evidence is retained. It creates no automatic credit, deduction or fresh payment set. Only explicit sender acknowledgement and a new operation may risk additional payment.

A terminal-partial result creates one durable recipient-private recovery obligation, not a normal plaintext delivery. Its stable obligation ID binds the operation ID, exact authenticated type-10 and type-11 bytes and context (including network, X, P' and stamp_key_generation), every final, provisional, ambiguous or could-still-land member's signed transaction/ID/observation/finality, and the destination provider signature. Later landings update that same obligation; they never create a second obligation. Its record, status, journal-fact and acknowledgement encodings are UNALLOCATED in section 15.

The recipient fetches obligations through an authenticated, bounded journal/page operation. Before an idempotent acknowledgement bound to the obligation, stamp_key_generation and mailbox instance generation, the wallet durably imports every child that could still land. The acknowledgement also binds the exact risk set, member evidence and recovery-capacity reservation being released. The provider retains exact bytes and evidence until that acknowledgement. Restart, seed restore, stamp rotation and late landing resume the same obligation; stable member identities permit only one import/sweep effect. Recovery never exposes plaintext or converts the obligation into normal delivery.

Every recipient-owned child, including each child of a fully successful delivery, has a durable generation-bound derivation record keyed by stamp_key_generation, exact type-11/T3 identity, member index and transaction ID, and retaining exact X and authenticated context. Every unswept or unknown child is a reachability root for the retired P' generation, exact frame and rotation metadata. The wallet acknowledges provider output/recovery state only after atomically importing all such records into a durable checkpoint/restore state sufficient to reconstruct them after seed restore. Erasure or compaction requires a verified sweep/spend, or explicit authenticated loss acceptance naming the affected outputs. Restart, reorganization, sweep and acknowledgement replay must produce one import and at most one spend/sweep effect. The derivation, import, checkpoint, acknowledgement, sweep and loss-acceptance records remain UNALLOCATED in section 15.

Finality policy comes from the canonical network descriptor or an owner-approved pinned policy; a provider cannot lower it. Type 11 binds the policy identity and digest. The journal retains each transaction, block hash/height, observation and finality transition. A pre-finality reorganization rolls back provisional member and aggregate state; no irreversible payment consumption or delivery occurs before finality. A post-finality exceptional reorganization enters an explicit reconciliation status, preserves evidence and cannot silently retract delivery or spend the operation again.

A valid recipient stamp pays for opaque provider delivery even if the recipient later cannot decrypt or rejects plaintext/type-12/item semantics. The provider MUST NOT claim that payment, storage, or a receipt proves recipient decryption, semantic acceptance, or sender authorship.

9.3 Recipient-only acceptance ​

PROPOSED. For recipient-acceptance, the recipient context supplies the exact delivery identity, all pinned generations, retained directory/provider records, the named M secret and the committed journal page/cursor. It authenticates and decrypts, opens type 12, then checks its network, T1a/content revision, item graph and application semantics. Its structural, authentication, deterministic plaintext and transient dependency errors are separate from provider errors.

A deterministic invalid ciphertext or plaintext becomes a durable terminal opaque quarantine/rejection fact keyed by delivery identity, atomically with applying that row and advancing the page cursor; it stores no plaintext. This lets a valid/poison/valid page commit both valid rows exactly once without retrying the poison forever. A missing key generation, unresolved directory/provider record, unavailable crypto service, storage failure or other transient dependency does not quarantine the row and MUST NOT advance the cursor past it.

Recipient failure has no plaintext-message effect and does not roll back already valid provider delivery or recipient stamp payment. Recipient acknowledgement, if any, is a separate authenticated status and MUST NOT be forged by the provider.

9.4 Origin and destination providers ​

PROPOSED. The origin/home submission provider and destination/mailbox provider are distinct roles; they MAY be the same provider as a degenerate case. The operation binds both stable provider identities, their exact descriptor revisions, both sender/recipient mailbox-key generations, the recipient stamp generation, destination instance generation, preseal_context_id, sealed ciphertext commitment and exact delivery-frame hash. Client submission ID, inter-provider delivery ID, destination receipt/status, origin-provider fee, destination-provider fee, and recipient stamp each use separate domains and deduplication keys. Every destination claim, receipt and status names both preseal_context_id and exact_delivery_hash; neither may be substituted by the other.

The durable handoff state machine is origin-ready, handoff-pending, destination-claimed, then broadcast/observation/finality or terminal recovery. Only the destination compare-and-set may enter destination-claimed, and its signed receipt is the evidence for that transition. No broadcast or recipient-stamp exposure transition exists before it. These state and operation encodings are UNALLOCATED in section 15.

The origin provider owns handoff retry/failover until one destination provider durably claims the exact inter-provider operation and returns a destination-signed claim receipt binding the inter-provider ID, preseal_context_id, sealed-ciphertext commitment, exact delivery hash, mailbox-admission capability hash and all generations. The origin MAY perform structural preflight and forward the exact opaque sealed bundle, but it MUST NOT possess, broadcast, credit, consume or otherwise expose recipient-stamp transactions. The destination claimant is the sole actor authorized to unseal and broadcast them. If capability installation wins the compare-and-set, the stale handoff terminates with zero exposure and without unsealing. If claim wins, that exact operation remains admitted and the destination owns an idempotent broadcast/reconciliation loop. It MAY resubmit only the exact destination-journaled signed bytes with the same transaction ID; it never rebuilds, re-signs or substitutes a member. Retries converge on one durable exposure transition, one member state, one terminal/economic effect and one destination claimant, even though the exact transaction may be submitted to a node more than once.

SHIPPED. The current protobuf/raw-origin composition lets the origin receive bearer-broadcastable signed transactions. It is not evidence for the target authority boundary.

PROPOSED. The raw-origin composition MUST NOT be reused as the target handoff. Target implementation remains blocked on the allocated sealing suite/key/transcript/schema and independent vectors.

After claim, failover cannot create a second owner; it queries or transfers the same durable obligation under an authenticated protocol. Descriptor expiry or route failure permits another destination only before ownership, or after terminal proof that the prior destination cannot complete. An ambiguous handoff is reconciled against destination status and the signed claim receipt; ambiguity retains the possible owner and exact bytes. If recipient-stamp bytes were exposed despite the required order, every affected member enters the canonical could-still-land recovery state rather than being retried through a new owner. Claim receipt, handoff/status and transfer records are UNALLOCATED in section 15.

10. Mailbox journal, checkpoints, and tombstones ​

PROPOSED. A mailbox has one authoritative provider-scoped change journal. Inbox, outbox, delivery, checkpoint and tombstone views are projections, not independent replay streams. A live event channel only announces a new opaque cursor; recovery always pages the journal.

  • The provider assigns a durable monotonic sequence. The sequence orders transport at that provider and mailbox_instance_generation; it is not object identity, global time, or authority. Every append, cursor, snapshot, status and receipt names that instance generation and governing signed capability/descriptor revision; stamped delivery facts also name both selected mailbox-key generations and the recipient stamp-key generation.
  • Applying a page and advancing its opaque cursor is one atomic client commit. A crash before that commit replays the page; stable object/fact IDs make the replay idempotent.
  • Target DMs deduplicate by (network, stable sender/account authority, message_id). Type 12 has no predecessor or revision field, so each target DM is immutable. Collision under that tuple with different exact content is a conflict, and delivery/page reordering cannot select a winner. Mutable DM predecessor/revision/fork semantics require a future allocated schema; receipt time is never a revision rule. Recipient-specific frames remain separately identifiable for payment and delivery.
  • Checkpoint facts sort by (seconds, nanos, fact_id) only for canonical encoding. Time is not a causal merge rule. Checkpoint authorization, linkage, and journal-fact kinds remain UNALLOCATED until their records and vectors land.
  • A tombstone is an authenticated durable fact. It targets a logical family and object ID and, when known, an exact revision/content identity. Physical deletion is not a tombstone and cannot recreate one after restart.
  • Cursor expiry requires a signed, content-identified snapshot naming its snapshot ID, instance generation, fixed high-water, page count/order/hash chain and complete manifest. The client stages pages in isolation, verifies signature, identity, completeness and frontier, then atomically swaps projection, tombstone/exclusion frontier and cursor. A crash exposes either the old committed view or a resumable/discardable staging set, never a partial new view. Incremental replay begins strictly after the snapshot high-water.

Exactly once means one durable terminal effect per stable identity despite duplicate delivery. It does not mean the network sends a packet once. Providers, wallets and bots MUST tolerate replay, late completion, disconnect after commit, and replacement connections.

All applicable mailbox/stamp generations and capability identity are part of every delivery operation ID and its authenticated context. Late completion performs compare-and-set against the unresolved operation's mailbox-key generations, stamp generation, instance generation, descriptor capability and exact bytes; mismatch is terminal stale-generation, not a write into the replacement mailbox. An instance reset atomically fences the old instance generation before it is acknowledged, persists the successor generation, capabilities and reset boundary together, and only then admits successor operations.

10.1 Tombstone dominance and compaction ​

PROPOSED. Within one authority and mailbox instance generation, an accepted tombstone dominates only the named revision and descendants on its authenticated predecessor branch. A sibling head is an explicit conflict, not a descendant and not silently deleted. A stale create on the dominated branch is a terminal deleted/stale result; it is not appended, forwarded, or allowed to resurrect the branch. Object-wide deletion needs an explicitly allocated scope covering every known head; a later recreation needs an allocated successor identity or post-tombstone revision rule.

An expired-cursor snapshot MUST either carry authoritative tombstones and their dominance frontier, or declare itself a complete replacement for the named instance generation at a fixed high-water mark. A receiver MUST NOT merge a replacement snapshot with pre-boundary positive rows. Neither a frontier nor snapshot compaction may discard a sibling head until an allocated authenticated fork-resolution record covers every head. Exact-branch and object-wide tombstones/frontiers are different scopes and MUST NOT be inferred from one another.

A tombstone is a deletion marker, not automatically a positive retention root for the deleted body. Retaining tombstone T does not itself pin body R; R may be deleted after every other reachability gate clears unless verification/dispute policy needs its exact bytes. Security tombstones or a compact authenticated exclusion frontier are retained permanently across the mailbox instance generation's authority history. Ordinary body bytes and redundant per-event tombstones MAY be compacted only after an authenticated frontier/snapshot preserves non-resurrection and all retry, payment, receipt, checkpoint and dispute dependencies are terminal.

10.2 Client-Side Join-Semilattice Journal & Self-Encrypted Outbox (Shipped) ​

While provider-side snapshot compaction remains proposed above, the client-side mailbox journal and cross-device state projection are SHIPPED in packages/wallet/journal/ (semilattice-state.ts, outbox-sync.ts, checkpoint-manager.ts, tombstone-manager.ts, conversation-subject.ts):

  • Formal Join-Semilattice (SemilatticeJournalState): Client journal state forms a mathematical join-semilattice (S,⊔)(S, \sqcup) whose mergeState and applyEvent operations are strictly commutative, associative, and idempotent regardless of network replay or arrival order:
    • Delivery Status Lattice: sending (0) < error (1) < confirmed (2). Once a message reaches confirmed, late sending or transient error events never regress it.
    • Timestamp Lattice: Relay-acknowledged server timestamps strictly dominate local optimistic send timestamps (serverTimestamp > localTimestamp), with deterministic min(timestamp) tie-breaking within the same authority tier.
    • Tombstone Dominance (G-Set): deletedMessageDigests is a grow-only set (Set<string>); once a message-tombstone is observed for a payload digest, the message entry is permanently removed from messages and any subsequent late-arriving outbox-message with that digest is a no-op.
    • Conversation Subject LWW Register: Per-conversation subjects merge by (updatedAtMs, updatedBy, subject) with deterministic lexicographical tie-breaking on equal timestamps.
    • Checkpoint Watermark (max): checkpointWatermark advances monotonically via Math.max(a.checkpointWatermark, b.checkpointWatermark) across valid self-signed checkpoints.
  • Self-Encrypted Journal Entry Item Types: Cross-device synchronization stores self-addressed, ECDH-encrypted (crypto-box) journal entries in the user's own relay mailbox so the relay remains oblivious to outbox contents, read state, and deletions:
    • outbox-message: Self-encrypted record of a sent message (recipient list, payload digest, send status, and message body) enabling multi-device sent-mail history.
    • message-tombstone: Self-encrypted deletion marker containing deletedPayloadDigests and deletedAtMs.
    • journal-checkpoint: Self-encrypted high-water mark (upToTimestampMs, lastMessageDigest, stateHash) allowing newly paired or recovering devices to bound incremental journal replay.

11. Reset, deletion, and reachability ​

PROPOSED. Reset is boundary-scoped and generation-changing. There is no generic “reset CashWeb” operation.

  • A wallet-local view reset discards derived projections/cursors only; it preserves seed material, operation journals, unresolved payments, and the last verified authority state, then replays.
  • A mailbox-instance reset requires the authenticated destination-provider capability and mailbox authority M, creates a new mailbox_instance_generation, and cannot rotate M or rewrite public directory/provider records. It atomically fences the old instance before acknowledging reset.
  • A directory-authority reset/rotation requires P or an already-pinned recovery authority and a linked successor/tombstone. Losing P is not repaired by M, P', a provider, or a clock.
  • A provider-local operational reset cannot delete customer mailbox state or public authority records without their separate retention/deletion protocol.

Deletion is permitted only when the boundary can prove the object is unreachable from every retained authoritative root, unresolved operation, cursor/snapshot, checkpoint, tombstone, delivery obligation, and payment-recovery record. Exact authenticated frames are indivisible: implementations delete the whole frame and its derived caches or keep the whole frame; they never strip X, unknown fields, or other authenticated bytes. Security tombstones and unresolved payment/delivery evidence outlive ordinary presentation or routing TTLs. A clock may enforce a previously authenticated expiry but MUST NOT manufacture authority, settle a fork, or prove that an ambiguous payment did not land.

Here “tombstone” is a reachability gate only when verification needs the deleted bytes; otherwise its dominance marker remains while the body may become unreachable under section 10.1. A deletion proof MUST cover shared references, retries, payment recovery, cross-generation late completion, snapshot/cursor recovery, disputes, and provider receipts. Permanent security history and bounded body compaction are separate retention policies.

11.1 Legacy-to-FRNK cutover fence ​

PROPOSED. Each account/mailbox has one durable legacy-to-FRNK cutover epoch and fence. The record type, fields, row tags and terminal/removal evidence are UNALLOCATED in section 15; no daemon cutover may begin before their CDDL, codecs, vectors and production-boundary tests land.

The only cutover-wide atomic action is writing the epoch/fence marker together with the admission guard that rejects new legacy creation. Existing legacy keyspace and untagged rows committed before the marker are legacy by rule; they do not need an unbounded atomic rewrite. Background protocol/version tagging is paginated, idempotent and non-authoritative: a crash resumes from its cursor, while row ownership still follows the marker and original keyspace.

General legacy dispatch pauses while the fence and admission guard install. After target admission, a constrained legacy reconciler MAY run concurrently, but only to replay exact pre-fence rows and write legacy terminal/recovery facts. It MUST NOT create a legacy operation, transcode, re-sign or re-encrypt bytes, or write the target keyspace/generation. “Legacy writers quiescent” means no legacy creation or general writer remains; it does not require the constrained reconciler to stop. The target has a separate keyspace and a mailbox_instance_generation strictly after the marker, and rejects legacy late completions rather than projecting them into that generation. Historical messages remain a bounded read-only projection.

A crash or ambiguous completion resumes the same epoch and proves which side of the fence owns each row. Partial payments, unread messages, delayed completion and recovery obligations retain their original protocol/version and exact bytes until terminal. Rollback may restore legacy readers and the constrained reconciler, never legacy creation or a general writer after the fence. Legacy machinery is removable only when no unresolved legacy operation remains and the required terminal/recovery evidence is retained.

11.2 Legacy payment, decryption, broadcast, and read boundaries ​

SHIPPED. POP/BIP70 is a distinct legacy admission-payment family. BIP70 PaymentRequest, PaymentDetails, Payment, PaymentACK and Output describe the request/payment exchange; a successful verifier can issue a scoped HMAC bearer token. That payment/token is neither a recipient stamp nor a target provider fee, and it creates no target credit.

PROPOSED. At the cutover fence, new POP request/token issuance is disabled. Every pre-fence request, submitted payment and issued token is protocol/version tagged. An already-issued token is preserved only for its exact existing scope through its current terminal or expiry contract; it is never widened, renewed into the target, or counted twice after restart/replay. Payment evidence is retained until token disposition is terminal. Tests cover payment accepted before token response, disconnect, token replay, restart and fence installation without double credit.

SHIPPED. Live Monad protobuf rows carry JSON identity-ECDH envelopes. Version 2 derives an AES-256-GCM key with HKDF-SHA256 and authenticates the JSON routing tuple; version 1 is a read-only JSON AES-CBC envelope using the legacy HMAC-SHA256 derivation. Readers try the canonical compressed ECDH point first and, only where the historical reader defines it, the pre-change encoding with leading zero bytes trimmed from the x-coordinate. @frank/crypto-box fixed-layout version 1 and deterministic-CBOR version 2 are a separate IMPLEMENTED-NOT-WIRED family, not protobuf-row cutover inputs unless a row is separately and unambiguously tagged for that family.

PROPOSED. The migration-only legacy decryptor binds each historical row to its exact Monad JSON version, legacy recipient derivation and retained sender profile/public-key bytes. It may decrypt only a protocol-tagged pre-fence row and cannot authorize new mail, mailbox access, directory succession, payment or target identity. Seed restore and GC/deletion cover both Monad JSON versions, the trimmed-x read fallback and sender rotation. Frozen fixtures MUST accept each valid historical family and reject cross-family JSON/crypto-box substitution; a current sender profile is never a substitute for the retained historical key.

SHIPPED. Legacy Lotus topic identity and deduplication use payload_hash, not original SignedPayload wrapper bytes. Parsing derives an omitted hash from exact embedded payload_raw, derives an omitted/zero burn amount from the referenced outputs, validates supplied values, then normalizes and reserializes the wrapper. Later evidence merges distinct canonicalized burn transactions by canonical Lotus transaction ID. The authentication material is public key, signature scheme and signature; the durable content/economic evidence is exact payload_raw plus each parsed burn transaction's canonical evidence and burn_idx. Incoming BurnTx.tx bytes are parsed and normalized; durable evidence is canonical Tx::ser bytes, canonical Lotus transaction ID, parsed outputs and burn_idx, not the exact input transaction encoding. Unknown wrapper fields, wrapper ordering and original wrapper bytes are not preserved authority. parent_digest is an immutable reply edge; BroadcastEntry remains opaque application data and ForumPost one interpretation. A payload-less hash reference may only augment an existing payload. Normalization/merge tests MUST cover omitted derived fields, duplicate and additional burn evidence, nonminimal/trailing transaction encodings canonicalized or rejected by the frozen parser, restart and rejection of a different payload under the same hash.

SHIPPED. Historical read contracts are intentionally different:

  • The authenticated Monad inbox uses strict-exclusive (timestamp, payload_hash) ordering. Its opaque cursor remains valid after the referenced row is deleted; count and encoded-byte caps bound each page.
  • Monad topic listing is inclusive timestamp >= since with payload-hash key ordering but no exposed tie-break cursor. Equal-time rows require client deduplication/replay.
  • Monad topic discovery performs a full topic scan and sorts by last_activity_ms descending; it is not a durable cursor.
  • Lotus topic range reads are half-open, from <= timestamp < to, over the stored (topic_digest, timestamp, transaction_id) order and expose no transaction-ID tie-break cursor.
  • Monad profile discovery is inclusive over (registration_timestamp, address) and returns exact raw signed bytes; its public since parameter does not expose the address tie-break cursor.

PROPOSED. At the fence, these legacy keyspaces become bounded read-only historical projections. The strict inbox cursor is preserved while its projection exists. A legacy endpoint without an exposed stable tie-break cursor is served from the frozen keyspace with bounded complete rescan plus exact-ID deduplication; it MUST NOT pretend an inclusive timestamp is lossless. If a cursor/projection is retired, the server returns explicit cursor expiry and an authenticated, bounded complete replacement/export rather than silently skipping equal-time rows. Tests cover equal timestamps, exact from/to boundaries, page-boundary crash, deleted-row continuation, restart, cutover freeze and final historical deletion.

12. Topic semantics and transition ​

SHIPPED. For the opt-in CBOR topic slice, the exact immutable type-40 post frame/revision has one T1 event identity. Type 41 carries the initial up-burn; type 42 carries a later vote. Author, direction, and weight come from the independently verified chain transaction. The transaction ID is the consumption key, so one burn counts once across legacy and CBOR entry points.

The shipped Monad topic path computes direction by casting the transaction's u128 value to i128, applying the sign, then saturating the result to the stored i64. Values above i128::MAX therefore sign-wrap at the first cast before saturation and can acquire the wrong sign; this is a shipped defect, not acceptable target arithmetic.

The storage rule is frame-first: a CBOR-origin row retains the exact type-40 frame as authority and may maintain protobuf-shaped indexes only as projections. It MUST NOT reconstruct the frame from a projection. A CBOR-origin row cannot be returned as a semantically false legacy post. Reads select the representation by row origin and Accept, as specified in the coexistence document.

Author selection uses the unsigned tuple (uint64 block_number, uint64 transaction_index, lexicographic raw stored 32-byte tx_hash). Integer comparison is numeric, independent of host endianness. For a non-CBOR or pre-field row, zero block/index fields mean “author tuple absent” and the row is ineligible for CBOR author selection; they do not mean block zero. Updating selected author facts preserves the row's original relay timestamp. Proof covers block/index ties, raw-hash tie-break, endian independence, uint64::MAX, zero/absent legacy rows and restart.

PROPOSED. A future stable logical/root post identity is distinct from every immutable revision or event T1. Its derivation is UNALLOCATED. Predecessor/edit, tombstone, moderation and root relations require explicit versioned records whose type IDs are UNALLOCATED. The vote-target discriminator and migration are also UNALLOCATED; votes MUST eventually state whether they target an immutable revision/event or a logical root. Until those allocations, type 42 targets exactly the immutable type-40 T1 named by its current schema.

For bounded version 1, topic post/vote admission MUST reject a transaction value greater than i64::MAX before broadcast, durable claim or economic consumption. Boundary vectors cover i64::MAX, i64::MAX + 1, i128::MAX, i128::MAX + 1 and u128::MAX in both directions. A future wider unsigned weight requires a new allocated schema and arithmetic rules; it is not an implicit relaxation of version 1.

IMPLEMENTED CODECS. The accepted Forum allocation is now active in both pure codec facades and normative topic CDDL: type40 schema2/min-reader2 contains authored timestamp0 and ordered 1–64 entries1, with kind1/title1/URL2/message3. It preserves exact Unicode, optional-field bytes, full original frames and T1/T7. Authored time contributes to identity but never author or relay authority. Schema1 remains explicitly opaque and its existing writer does not silently switch formats. Per-type schema2 support is required independently of the global reader version, and schema>=2/min-reader<2 rejects without a legacy exception.

Types43–46 schema1/min1 allocate single view, topic page, discovery page and operation status. Every response and required child binds the exact network, topic/query, epoch/revision and immutable target. Closed aggregates use a sign and 32-byte magnitude (no negative zero), with pre-overflow admission rejection; individual burns retain the i64::MAX ceiling. Status0/3 are unverified request echoes; status1/2 are relay observations, with chain positions present iff2. A codec match neither verifies chain facts nor releases a wallet lease. No new read-frame identity/hash domain is allocated.

Both cursor families carry a non-reused u64 incarnation at key7. Cursor lookup binds a retained snapshot by epoch/incarnation, never a recreated query at the same revision. Exact wire fields, budgets, response binding and runtime retention/publication obligations are normative. The pure codec proves parsing and query/tuple coherence, not storage freshness, complete multipage publication, restart, capacity accounting or finality. #675 owns that runtime successor and the normal post/reply/read/list/discovery/vote/reconciliation switch; #718 remains blocked until canonical target selection and reconciliation are reachable.

The normal Forum successor uses canonical type-41/42 operations and type-43–46 reads/status throughout wallet, app and bot. It removes normal protobuf/schema1 routes, decoders and writers without resetting stores. Historical exact records, signed operations and lease references remain retained and unsupported by normal runtime until separately authorized reconciliation/export. Preserve constrained historical storage/bindings until sections11/16 deletion gates pass; never transcode one origin into another identity. Actual integrated client/browser evidence is required before treating the complete #675 outcome as proven. First-confirmed-burn authorship and public front-running remain unchanged.

SERVER STAGE (#769). Canonical Forum submissions retain exact type-41/42 authority in a lazy private sibling store, with synchronous pending admission before broadcast and atomic receipt-observed publication. Types43–46 are served through the explicit HTTP boundary; actual retained snapshots bind epoch/incarnation and expire without recreation fallback. The private storage contract fixes operation/pending records, resource bounds, rebuild and predecessor rollback. Confirmation records an exact successful receipt observed by the relay, not a new finality policy. Legacy column families, schema1 and protobuf replay authority remain intact. #770 owns the immediate whole normal-client switch, bounded complete-page publication and independently approved predecessor retirement; this server stage does not complete #675 or authorize deletion of pending signed operations.

13. Replay, restart, fork, and clock rules ​

PROPOSED.

Across every family:

  • Stable semantic IDs provide deduplication; local sequences and cursors provide transport order.
  • Validation plus durable exact-ID lookup precedes append, forwarding, payment consumption, and terminal state. Duplicate valid input returns already known/the existing result.
  • Record insertion and its journal/dedup row are atomic. Page application and cursor advance are atomic. Journal-before-send records survive restart.
  • Late completion after cancellation or timeout may update only the matching unresolved durable operation. It cannot mutate a replacement generation or a different byte identity.
  • Authenticated predecessor links expose forks. No last-write-wins clock rule is allowed.
  • Authored timestamps express chronology/expiry only after signature and context validation. Provider receipt time is operational evidence only. Clock rollback or skew cannot resurrect a tombstone, lower a revision, reuse a payment, or change authority.

14. Conformance matrix ​

PROPOSED. “Required proof” means evidence needed before the clean-break target can be called wired.

Surface / sliceCurrent evidence on this branchCurrent statusProposed required proof
TypeScript codec, registration/topicsWallet helper emits explicit type-2/type-1-schema-3 registration; topic writers use FRNK/restricted CBORSHIPPEDCross-check every production slice against Rust and hostile vectors
TypeScript codec, other familiesStages 1–9, generalized directory structures/transcripts and shared vectorsIMPLEMENTED-NOT-WIREDProduction DM suite, full type-10 stage 10, generalized transition path, provider/mailbox/status records, target key binding
Rust codec, registration/topicsRelay helper route/verifier performs explicit registration through stage 10.6; opt-in topics use FRNK/restricted CBORSHIPPEDCross-check every production slice against TypeScript and hostile vectors
Rust codec, other familiesStages 1–9, generalized type-2/type-3 transition verification at stage 10.6, pure hashes and shared vectorsIMPLEMENTED-NOT-WIREDTarget structures and full checks independently cross-checked
Relay / cashwebdProtobuf DM/raw-payment outbox, authenticated bounded inbox; POP/BIP70; legacy/opt-in CBOR topics; explicit CBOR registrationSHIPPEDDestination-sealed FRNK DM, recovery-capacity admission, unified mailbox capability, exact replay/restart/fork/reset/deletion and bounded fenced cutover
WalletApp composition wires durable attempt/payment journals; deniable v2 envelope; explicit CBOR registration and opt-in topicsSHIPPEDDisjoint hardened P/M/P', destination-sealed exact order, recovery import/ack, atomic replay and fenced cutover
AppUses ActiveChain, recipient-scoped polling, protobuf presentation/read modelsSHIPPEDReachability UX, fork/expiry/status surfacing, scoped reset/deletion, target CBOR read models
Cross-language vectorsShared TS/Rust/Python/browser codec corpora; account-registration and topic commitmentsIMPLEMENTED-NOT-WIREDFull DM crypto/payment observations, provider/mailbox/status/reset cases, hostile unknown-field retention
Legacy directory/broadcast federationLegacy protobuf directory catch-up and broadcast forwarding paths are reachableSHIPPEDPreserve only as historical migration evidence; do not treat their wire as target FRNK
Legacy public-store capability boundaryPublicFederationStore exposes only the legacy public address-directory operations; peers do not receive the generic database, profile store or mailbox storeSHIPPEDRetain the capability boundary during deletion/migration; this is not a claim or hypothesis that private mailbox data leaked
Target directory/descriptor/pubsub convergenceArchitecture inputs exist; target FRNK convergence is not implementedPROPOSEDThree-node cyclic/partitioned convergence, semantic/event dedup, scoped cursor catch-up/expiry, signed snapshot recovery, hostile peer isolation and subscription-generation reset
Target cross-record federation isolationFull target records and federation facades are unallocatedPROPOSEDReachability proof that only directory, descriptor and selected pubsub records export, while profiles and every private mailbox/journal/payment record have no public-federation path

SHIPPED. Current evidence supports the narrow legacy public-store capability boundary; it does not establish a private-mailbox leak. Any prior leak hypothesis is retracted.

PROPOSED. Target conformance requires the same accepted/rejected bytes and first-failure category in TypeScript and Rust; relay production-boundary tests; wallet restart and ambiguous-outcome tests; and bot/app tests using the same public client. Unit success in one codec is not daemon support.

PROPOSED. Decision-gate review MUST cover: directory/profile migration without field-9 reinterpretation; old/new type-10/type-11 schema rejection and retention; exact construction order with both directory/provider authorities pinned before randomness; provider-admission operation context/order/errors; account authorization signature, exact tuple, rotation-class, grace-bound and destination validation; scoped tuple/grace narrowing by removal or shorter deadline only; independent capability signature/sequence/predecessor/instance/current-P' validation; provider substitution, tuple widening, replay and fork rejection; routine M grace versus compromise no-grace; provider-effective M/P' rotation, partition and restart; missing/expired capability failure, provider-by-provider compromise closure, and capability-installation races against operation claim and challenge/session issuance; bounded authority for a pre-fence winning claim or session; exposed old-generation terminal/recovery handling, restore and secret erasure; fresh e/E/X/DLEQ before final type 11 and exactly-one T3; intent crashes before signing, between signing and journal promotion, and after flush; complete, partial and reorged payment sets including post-finality reconciliation; destination recovery-capacity global/per-recipient count/byte and unconfirmed limits, atomic reservation-before-claim, retry-at-capacity with zero exposure, restart, overflow and confirmed-evidence non-expiry; exhaustive member-index and settlement-order permutations proving aggregate-state precedence and one terminal-partial obligation for every exposed subset; terminal-partial obligation fetch/import/ack across restart, seed restore, stamp rotation and late landing with one sweep/import effect; fully successful and partial child derivation/import across crash, reorganization, sweep, acknowledgement and restore, with unswept reachability and explicit loss acceptance; provider-paid opaque delivery followed by recipient rejection; deterministic poison quarantine in a valid/poison/valid page; signed multi-page snapshot crash/resume/atomic swap; sender-directory partition/convergence, freshness-window expiry, newer-recipient-state rejection and proof that no sender-home fence or receipt is portable; origin structural preflight with proof of zero recipient-stamp exposure before a destination-signed durable claim; destination-sealed bundle context/key/suite/schema vectors, acyclic preseal_context_id/ciphertext/final-delivery KATs, visible asserted-ID/claim checks, hostile hidden-member mutation and post-unseal mismatch rejection; proof the origin never receives bearer bytes, unseal only after claim, and rejection of the unsafe raw-origin model; same-provider claim ordering; destination fence-wins zero-exposure and claim-wins idempotent broadcast/reconciliation; disconnect before node submission, disconnect after node acceptance, already-known response and restart, each preserving exact bytes, transaction ID, one exposure transition, member state, terminal/economic effect and claimant; ambiguous handoff/status reconciliation, duplicate claims and accidental-exposure could-still-land recovery; generation reset racing late completion; branch-scoped tombstone dominance, sibling forks, stale creates and object-wide deletion; permanent exclusion history with bounded body compaction; deletion reachability across shared references and payment recovery; immutable DM identity collision/reordering and rejection of unallocated revision semantics; duplicate funders with different nonces, pairwise funder uniqueness, signer substitution against the reserved identity/nonce and every cross-member funder/destination overlap before and after sealing; EIP-1559 and every supported chain adapter's canonical replay-protected preimage, chain ID and registry-selected legacy POND || 0x02 versus symbolic target POND || TARGET_T4_TAG || T4 mapping, route/media type and exact vectors; topic-weight bounds through u128::MAX; unsigned topic-author tuple ties, endian independence, maximums, absent-zero legacy rows, timestamp preservation and restart; POP token restart/replay without double credit; frozen Monad JSON v1/v2 decrypt and trimmed-x fixtures, cross-family crypto-box rejection and sender rotation; Lotus normalization/merge, payload-hash identity, half-open boundaries and payload-less augmentation; equal-time legacy cursor/page crashes; checked protobuf descriptor/AST inventory, stale-snapshot rejection and runtime reachability before source deletion; randomized-signature/wrapper flood and restart proving one federation journal row, bounded retained proof bytes, no duplicate reforward and byte-identical semantic snapshots, plus same-record_id/different-semantic-body conflict; deterministic three-node federation under partition, cycle, Bloom false positive, offline catch-up, crash, tuple-scoped expired-cursor snapshot, multi-peer head-only/empty snapshot without global deletion, subscription reset and hostile peer discovery; cutover of a large mailbox with paginated tagging, page crashes and idempotent resume; marker/admission ambiguity, partial payment, unread pre-marker row, delayed legacy completion rejected by the target generation, rollback-reader/reconciler-only behavior, creation-writer quiescence and removal gates; topic root/revision/relation/vote migration; legacy and target federation reachability/convergence/cursor recovery; and proof that profiles/private mailbox records have no public-federation path. These proofs do not allocate numeric identifiers.

15. Unresolved allocations and review gates ​

UNALLOCATED.

The following remain deliberately unresolved rather than inferred:

  • numeric hardened paths/rotation encoding for P, M, and P';
  • target directory-statement and standalone presentation-profile type IDs, schemas, fields, authority transition/recovery and migration records;
  • target type-10/type-11 schema revisions, required context field IDs and min_reader_version, with explicit old/new compatibility and rejection rules;
  • destination-sealed payment-bundle suite, destination key/certificate, transcript, schema, unseal operation and independent known-answer/hostile vectors; the domain/schema/encoding for acyclic preseal_context_id, exact signed-byte commitments, sealed-ciphertext commitment and final delivery-hash binding;
  • immutable DM logical-identity encoding and any future authenticated predecessor/revision/fork schema; type 12 version 1 allocates no mutable revision relation;
  • chain-adapter/transaction-family commitment registry, including route/media selection and exact vectors for legacy POND || 0x02 and target POND || TARGET_T4_TAG || T4, including allocation of the numeric TARGET_T4_TAG;
  • provider-admission and recipient-acceptance operation IDs, validation contexts, error taxonomy, CDDL, both codecs and independent vectors;
  • network-qualified canonical funding/destination identity encodings and provider-admission errors for duplicate funders and funder/destination overlap;
  • mailbox_key_generation, stamp_key_generation and mailbox_instance_generation wire fields, current-only stamp semantics, unified destination-provider mailbox-admission capability/hash with exact provider/descriptor/directory and account-authorization-hash binding, accepted-M tuple-set/policy, expiry/sequence/predecessor, installation and compare-and-set against operation claims and challenge/session issuance, plus succession/reset/rotation records;
  • P-signed account admission authorization or authorized request, including exact allowed (directory hash, generation, M) tuples, routine/compromise class, maximum grace boundary, destination provider/descriptor and authorization predecessor/sequence; the scoped tuple/grace narrowing order and independent capability-only/provider-field validation;
  • maximum sender-directory validity/freshness window and expiry/convergence validation; portable origin receipts remain unallocated and are not authority;
  • provider descriptor, delivery, receipt/status, mailbox-journal and reset record type IDs;
  • inter-provider handoff ID/delivery-hash binding, destination-signed claim receipt, destination status/reconciliation/transfer operations, sole-broadcaster/exposure state and idempotent exact-byte/transaction-ID resubmission state;
  • checkpoint journal-fact kinds, checkpoint authorization and chunk linkage;
  • per-member/aggregate payment states, canonical exposure/could-still-land policy and state precedence, canonical finality-policy descriptor/digest, partial-set and exceptional-reconciliation status records, and provider-fee commitment/pricing semantics;
  • recipient-private partial-recovery obligation/status/journal-fact/ack types and fields, bounded fetch operation and generation-bound acknowledgement;
  • recovery-capacity global/per-recipient count/byte and unconfirmed caps, reservation/accounting records, retryable-at-capacity error and confirmed-versus-never-confirmed release rules;
  • recipient-owned child derivation/import/checkpoint/ack/sweep/loss-acceptance records for complete and partial sets, plus their restore and reachability encoding;
  • pre-operation reservation-intent and signed-ready promotion/release/retire/sweep records;
  • per-account/mailbox legacy-to-FRNK cutover epoch/fence and admission guard, paginated protocol/version row tags, legacy terminal/recovery evidence, constrained reconciler, rollback/removal state, separate keyspace and target-instance succession;
  • legacy POP request/payment/token tags and disposition; legacy decrypt derivation/version and sender-key retention; historical cursor-expiry/replacement-export records where needed;
  • opaque quarantine facts and signed snapshot identity/page-chain/manifest/frontier records;
  • branch-scoped versus object-wide tombstone/frontier encoding and authenticated fork resolution;
  • directory fork resolution and recovery cryptography beyond fail-closed conflict reporting;
  • public-federation record_id/event_id domains; journal/page/cursor/snapshot and CURSOR_EXPIRED encodings; peer descriptor/capability handshake; discovery limits; topic retention modes; subscription-generation reset; route and wire IDs;
  • topic logical-root derivation; predecessor/edit/tombstone/moderation/root relation records; vote target discriminator and migration; list/discovery/status schemas and their cutover release;
  • cryptographic approval of the current T3a/T3b stamp derivation and proof.

PROPOSED. No daemon, client, or migration may allocate these locally. Each allocation updates this index, the relevant CDDL, both codecs, independent vectors, production-boundary tests, and the conformance matrix in one reviewed sequence.

16. Checked legacy protobuf inventory ​

SHIPPED. The sources and production-role column below inventory every tracked .proto source on this branch. Backend/client copies and generated response duplicates are grouped when they intentionally share wire shape; grouping does not make either copy authoritative over the runtime that actually decodes it.

The deterministic executable gate is check-protobuf-inventory.sh; its committed protobuf-inventory.snapshot is generated from protoc descriptors using exactly libprotoc 36.2. It also maps and hashes every tracked *_pb.js and *_pb.d.ts artifact. Run ./docs/protocol/check-protobuf-inventory.sh --check. Every descriptor message, enum and field inherits its explicit source's owner/family/disposition; only the snapshot's explicit_source_group may group generated mirrors. An added or changed source, message, field, enum, default or presence rule, or an added, removed, changed or unclassified generated binding makes the gate fail. Historical JS/TS generator/plugin versions are not recoverable, so binding hashes prove exact-artifact drift only, not equivalence to source. Deterministic regeneration and runtime conformance remain cutover gates. Backend CI pins protoc 36.2 and invokes this checker for backend, protobuf-source, generated-binding, checker and snapshot changes.

PROPOSED. The fence-disposition column defines the clean-break migration target. It is not a claim that those fences or deletion gates are implemented.

Sources / familyProduction roleFence disposition
backend/cashweb/cashweb-payload/proto/payload.proto; packages/cashweb/signed_payload/proto/payload.protoLotus signed payload, signature, payload digest and burn transactions; package copy uses older field names with the same material wrapper roleRetain normalized reader plus exact embedded payload and canonicalized burn evidence; delete only after payload, burn, reply and federation reachability clears
backend/cashweb/cashweb-registry/proto/broadcast.proto; packages/cashweb/registry/proto/broadcast.protoLotus topic BroadcastMessage/opaque entries; client copy additionally declares ForumPost and parent_digestHistorical-only exact reader; preserve immutable reply/burn evidence; no new post after fence
packages/cashweb/bip70/proto/paymentrequest.protoLegacy POP request/payment/ack and output contractDisable new issuance at fence; retain exact pre-fence request/payment/token evidence through scoped terminal/expiry
backend/cashweb/cashweb-registry/proto/evm_message.proto; packages/cashweb/relay/proto/evm_message.protoLegacy Monad encrypted DM, raw stamp-payment set, stored timestamp/network and list responseConstrained migration reader/decryptor and reconciler for pre-fence rows; no new writes; remove after decrypt/payment/cursor reachability clears
backend/cashweb/cashweb-registry/proto/evm_profile.proto; material profile messages in backend/cashweb/cashweb-registry/proto/registry.proto and packages/cashweb/registry/proto/metadata.protoMonad/Lotus timestamp+TTL profile entries, exact signed profile discovery; peer and range/put response shapesExact read-only profile/directory history where referenced; target migration creates new records, never transcodes; transport responses may disappear with their route
backend/cashweb/cashweb-registry/proto/topic_message.proto; packages/wallet/proto/topic_message.protoMonad topic post/vote, stored author/tx/time/network/CBOR-origin facts, vote tally, topic page/discoveryPreserve exact historical storage and retained signed obligations; normal routes/readers/writers are removed by #770; retain generated bindings while historical storage/test reachability remains
packages/cashweb/relay/proto/relay.protoLegacy relay profile, encrypted Message/Payload, stamp/outpoints, pages and push errorsRetain exact constrained reader only for reachable legacy stores/migration; no authority in target; delete after runtime/storage reachability proof
packages/cashweb/relay/proto/filters.protoLegacy inbox price/notification filter (false/zero proto3 defaults)Preserve only with legacy inbox projection; never reinterpret as target pricing or provider-fee policy
packages/cashweb/relay/proto/p2pkh.proto; packages/cashweb/relay/proto/stealth.protoLegacy serialized P2PKH and stealth payment/outpoint transport payloadsOpaque historical transport-only data; preserve if referenced, otherwise delete with owning legacy feature after reachability proof
backend/cashweb/cashweb-http-utils/proto/http.protoHTTP error code/message/user-error responseTransport-only; may be deleted with the last protobuf HTTP route; never protocol authority
backend/cashweb/cashweb-registry/proto/registry.proto response/peer messages and client-side list/range response duplicatesPeer URL, put transaction IDs, address+signed-payload range/list envelopesTransport/index projection only; retain while route/federation reader exists, then delete with reachability proof
backend/bitcoinsuite/bitcoinsuite-chronik-client/proto/chronik.protoChronik upstream RPC schemaThird-party/non-CashWeb; excluded from CashWeb wire migration and retained according to the Chronik client dependency

16.1 Material legacy semantics ​

SHIPPED. SignedPayload wrapper bytes are parsed and normalized, not retained authority. Proto3 absent values decode as empty bytes, zero integer, empty repeated list and signature-scheme zero (SCHNORR). The parser derives an omitted payload hash from exact payload_raw, derives zero burn amount from referenced outputs, validates non-default claims, and reserializes normalized fields. payload_hash is identity/dedup; public key, scheme and signature are authentication material. Exact payload_raw, plus each parsed transaction's canonical Tx::ser bytes, canonical Lotus transaction ID, parsed outputs and burn index, are durable evidence, and later distinct burns merge. Defaults document historical reader fidelity without promising unknown wrapper-field/order or incoming transaction-encoding preservation. A payload-less wrapper must name an existing hash before adding evidence.

SHIPPED. BIP70 is proto2: Output.amount defaults to zero, PaymentDetails.network to main, PaymentRequest.payment_details_version to 1 and pki_type to none; required fields and explicit presence remain distinguishable. Outputs/payment URL/merchant data and payment transactions carry economic or bearer meaning and are never inferred into recipient stamps or target provider fees.

SHIPPED. Legacy Monad DM authority binds exact encrypted payload/hash and the repeated (child_index, raw_tx) payment set. Stored timestamp and network tag are relay facts; an absent network tag decodes empty for older rows and is not invented during migration. Legacy profile timestamp/TTL/entries and discovery raw signed bytes retain their original presence/defaults. Legacy Monad topic post authority includes topic, empty-or-32-byte parent hash, exact signed EVM burn-transaction bytes, ciphertext and payload hash; stored sender/transaction/time/network fields are relay facts. Topic vote weight has the shipped cast/saturation defect documented in section 12.

SHIPPED. Legacy relay Message separately carries source/destination keys, malleable server time, payload digest, stamp, encryption enum/salt/HMAC/size and ciphertext. Stamp.None/enum zero, empty byte fields and zero numeric fields are protobuf defaults, not target semantics. When payload_digest is empty and payload bytes are present, the frozen reader derives the digest; both empty is invalid. payload_size == 0 means infer the actual payload length, while a nonzero mismatch is invalid. Price-filter zero/false defaults, P2PKH transaction bytes and stealth ephemeral-key/outpoints remain scoped to their owning legacy reader.

16.2 Inventory and deletion gate ​

SHIPPED. The executable descriptor inventory above enumerates every tracked .proto file, package, message, field number/type/cardinality, enum/default/presence rule and owning runtime. Every source maps to this appendix as retained exact/constrained legacy reader, migrated by creation of a new authenticated record, deleted at fence, transport-only, or third-party/non-CashWeb. The checker fails closed on an unclassified or stale source/descriptor. Passive generated duplicates are grouped only by explicit source mapping; material authority, economics and presence semantics are not elided.

Deletion additionally requires runtime reachability proof: routes, stores, federation, app, wallet, bot, restore, retry and historical export must have no remaining caller or retained row. Source-file absence alone is not proof. Exact embedded Lotus payload, canonicalized Lotus burn evidence, ciphertext, payment and broadcast bytes remain non-transcodable throughout the migration; normalized wrapper bytes are not misrepresented as the original wrapper.

Frank & Cashweb High-Assurance Protocol Documentation