Expand description
Files sent with a jekt: the manifest, its digest, and how the msgid binds it (docs/specs/SPEC_JEKT_FILE_TRANSFER_2026_10_05.md §3.2–§3.3).
A jekt with files has a msgid ending in .files-v1.<manifest digest>.
Every signing scheme already signs the msgid, so the signature covers the
file list, and through each entry’s SHA-256 every byte of every file,
without any scheme changing. A text-only jekt is untouched.
Structs§
- Cloud
File - A file as a cloud jekt’s manifest carries it (spec §4.4): the file, the key its blob is encrypted under, and the relay’s name for the blob.
- Jekt
File - One file in a jekt’s manifest, in send order.
Constants§
- CLOUD_
FEATURE - What an install that can fetch files sent through the cloud relay says in its agents’ leases, which a sender asks about before sending (§4.4).
- FEATURE
- What an instance that can receive files advertises, in its registry
entries and its
GET /agentmux/reactive/agentanswer (spec §3.4). - MAX_
FILES - At most this many files on one jekt.
- MAX_
NAME_ CHARS - A file name’s length limit, in characters (the attachment store’s).
- MSGID_
TAG - Separates the msgid a sender would otherwise use from the digest.
- SEALED_
KEY_ PREFIX - Leads a file key sealed to its receiver:
x25519.<the receiving agent's WAN key fingerprint>.<base64url of the ephemeral key, the wrapped key and its tag>(spec §7).
Functions§
- bind_
cloud_ msgid - The msgid a WAN jekt carrying
filesis signed under:msgidwithout any digest it already ended in, then the cloud manifest’s digest. - bind_
msgid - The msgid for a jekt carrying
files:basewith the digest appended. - bound_
digest - The digest a msgid says its jekt was sent with, if it says one.
- check_
tier_ limits - Why
filescan’t travel ontier, if they can’t. The text names the limit and where it applies. - clean_
name - A file’s name as a manifest carries it: the base name of
name, with control characters replaced, trimmed, and at mostMAX_NAME_CHARScharacters."file"when nothing is left. - cloud_
manifest_ digest - SHA-256 over a cloud manifest, keys and blob ids included, so the WAN signature that binds it covers them too.
- cloud_
msgid_ binds - Whether
msgidbinds exactly this cloud manifest. - is_
sealed_ key - Whether
keyhas a sealed key’s shape. Says nothing about whether it opens. - manifest_
digest - Lowercase hex SHA-256 over the label and the entries, in order (§3.2).
- msgid_
binds - Whether
msgidbinds exactly this manifest. - tier_
limits - The most one file, and all of a jekt’s files together, may weigh when
they travel on
tier(spec §5):(per file, per jekt). The same machine (host,channel) allows the most; LAN less; anything else nothing yet. - validate
- Why a manifest is refused before anything else is checked.
- validate_
cloud - Why a cloud manifest is refused: the plain checks within the cloud relay’s limits, plus a 44-character base64 key (or a sealed one) and a relay blob id on every entry.
- validate_
for_ tier validate, and the comparison with the limits oftier: what a sender checks before it sends and a receiver checks before it reads a byte.