Skip to content

The crossing

logbook export crossing --to <member> --since <RFC3339|last> [--until RFC3339] [--tier 1|1,2|1,2,3] [--kinds a,b] [--unsigned] [--open] [--out DIR] [--force] [--dry-run] hands one member of your circle the lines of a window that the tier policy lets cross: a crossing-package/v1 folder (RFC 0005) under the member's ceiling in policy/crossing.json (ADR 0016), the lines of signed days only unless --unsigned (the signed day), and one crossing/v1 line in the chain that says what left. --dry-run counts and writes nothing.

logbook export crossing --to kari --since 2026-03-01T00:00:00Z --until 2026-03-02T00:00:00Z --dry-run
logbook export crossing --to kari --since last --out ~/Handover/kari

A member is a person, never a name the policy keeps for its own reader or door: mcp, hermes, dream, site, vault, world, folder, heard, chat, phone, notion, letter and relationship, in any case, are refused in one sentence before anything is written, by export crossing and export share day alike, so a package never lands under a reader's entry, watermark or folder.

Drafts follow the entry they were written under

A model's draft (draft/v1, the dream) crosses only while the entry it was written under allows its tier, whatever the member's ceiling: a person's draft (dream person) the relationship entry, every other draft (a day's, a journey's, a week's, a call's synthesis) the dream entry. Once that entry's until has passed, it is removed, or its max_tier is below the draft's tier (and, for the relationship entry, when it has no until), the draft stays home and counts says how many did, held_back_by_entry (written only when one did); a record with drafts and no dream entry ships none of them. A shared page (export share day) holds its drafts the same way: one its entry no longer allows stays home, counted in the manifest's held_back and in the crossing line's held_back_by_entry. A video scene's draft (video review) is written on this machine under no entry and crosses by its tier like any line. With the entry in force the package is what it was.

A shared page holds what a package holds

export share day sends one day to one person, as a package sends a window, and holds it to the same rules through the crossing's own functions: only a day you have signed leaves (an unsigned one is refused in one sentence that names logbook day sign), and a mail crosses only when a person is on it. The page's manifest counts each: held_back_unsigned always, mail_held_back whenever the day held a mail; both are part of held_back, and the crossing line's counts say the same. A shared page has no --unsigned and no --all-mail.

People's mail

Since 21 October 2026 (RFC 0045), mail crosses only when it is a person's: a mail you received from someone the record names as a person, or one you sent to one, its sender not let go in Hold (people's mail). Whenever mail is among the kinds (no --kinds, or --kinds naming mail), the rest stays home, its resolutions and attachments with it, and counts says how many as mail_held_back, written whenever the window held a mail the tiers and signed days let through (0 when every one was a person's); a package with no mail is what it was, byte for byte. --mail all (or --all-mail, the same) crosses every mail the tiers and signed days let through, as before, and the manifest's policy says "mail": "all".

All except junk

--mail chooses one of three: people (the default, above), all, or all-except-junk: every mail crosses but a received one your own rule calls junk (RFC 0045, amended 20 November 2026). The rule is yours, written in the destination's entry of policy/crossing.json as mail_junk; Logbook names no label of anyone's mailbox:

{
  "per-hansen": {
    "max_tier": 2,
    "mail_junk": {
      "categories": ["promotions"],
      "labels": ["Triage/Unsubscribe"],
      "never_labels": ["Triage/Action", "Triage/Reply", "Triage/Waiting"]
    }
  }
}

A received mail stays home when its Gmail category (extra.gmail_category) is one of categories, or one of its labels is one of labels (case aside), and nothing spares it:

  • its sender is a person of the record (the sender only, never a cc; you and your own addresses never count);
  • one of its labels is one of never_labels;
  • its sender is an invitation platform (paperlesspost.com, evite.com, partiful.com, lu.ma, eventbrite.com, greenvelope.com, punchbowl.com, zola.com, withjoy.com, or a domain under one);
  • its sender is bound to an org a portfolio holds (read on this machine to decide; the portfolio is never written in the package, printed or counted by name);
  • Hold keeps its sender (keep, RFC 0042 §4; Hold writes no fates yet, so nothing is kept yet).

A sender Hold let go is held whatever spares it. A mail you sent always crosses, and a mail with neither a category nor a label crosses. The IMAP road never sees Gmail's category, so a label is what lets a mail read both ways be judged the same.

Without a mail_junk rule in the destination's entry, --mail all-except-junk is refused in one sentence and nothing is exported. With one, the manifest's policy says "mail": "all-except-junk", and counts says how many mails were held back (mail_held_back), by reason (mail_held_by_reason: let_go, junk_category, junk_label) and how many of those were from a first-time sender (mail_held_first_time: no earlier mail from the address in the record, not a no-reply address, not a list's mail): counts only, never an address, a subject or a name. The dry run prints the same counts:

  7 mail(s) held back by your mail_junk rule: 0 let go in Hold, 5 junk by category, 2 junk by label; 3 from a first-time sender (--mail all sends them)

logbook day sign DAY says the same of the day it signs, one line per destination with a rule, so a quick sign never hides what was held:

per-hansen: 7 mails held back (3 from a first-time sender)

An agent asks the same of a day through the door's held_mail tool (MCP).

The package

<DIR>/
  manifest.json          what crossed and why, and the list of every other file in the folder
  entries.jsonl          the lines that crossed, verbatim
  resolution.jsonl       the resolution lines their refs resolve through, when any cross
  attachments/<sha256>   the files those lines point at that the store holds

A line's refs are the {kind, value} refs in its payload (a message's sender, a calendar guest), a mail's from, to, cc and bcc addresses, and a transcript's participants' email, phone and provider id, so the resolution that names someone on a mail or in a transcript crosses with it.

manifest.json lists every other file of the package under files, in path order:

"files": [
  {"path": "attachments/<sha256>", "sha256": "<hex sha256>", "bytes": 48213},
  {"path": "entries.jsonl", "sha256": "<hex sha256>", "bytes": 1840}
]

path is relative to the package, with / on every platform. sha256 and bytes are those of the file as it is in the package: for an attachment resealed to the member, of the sealed file, while its name and its entry in blobs give the plaintext's. The digest of manifest.json itself is the package_sha256 the crossing line records. A reader checks that the folder holds these files and manifest.json and nothing else, and hashes each one.

The output directory

Without --out, every run writes a folder of its own, <root>/export/crossing/<member>/<time>. With --out DIR, the bundle replaces DIR whole, so DIR never holds anything the new selection left out.

The bundle is built from nothing in a hidden folder beside DIR, .DIR.<random>.staging, on the same disk. It is checked against its own manifest, every file in it listed in files and every listed file there at its length, and only then renamed to DIR. Whatever was at DIR is first renamed aside, to .DIR.<random>.old, and removed once the new bundle is in place. At every moment DIR is the earlier bundle whole, nothing, or the new one whole, never a mix: a tier-1 crossing into the folder of an earlier --tier 1,2 one leaves none of its tier-2 lines, resolutions or attachments behind.

What DIR may be:

  • Missing. It is made, and its parents with it.
  • An empty folder. It is used.
  • An earlier bundle. A folder whose manifest.json is a crossing-package/v1 manifest, from a crossing or a trip bundle, of this version or an older one. It is replaced, and so is anything you put in it since.
  • Anything else. A file, or a folder that holds anything and no such manifest, is refused (exit 2) before anything is written: no crossing line, no watermark, no policy file. --force replaces it and removes everything in it.
  • The record, or a part of it. The record's own folder, a folder that holds it, and any path inside it that is not under <root>/export/ (where the default --out is) are refused whatever the flags, --force included, and a path inside it is refused even before it exists, so a second run is never the first refused. Folders are told apart by the disk, not by the name, so ~/logbook on a disk that ignores case is the record at ~/Logbook.

A symbolic link at DIR is followed: the folder it names is replaced, and the link names the new bundle.

An export that fails, for example on a store file that no longer hashes to its name or a full disk, removes its staging folder and leaves DIR as it was, and appends no line. A crash part of the way can leave .DIR.<random>.staging (a bundle not yet in place) or .DIR.<random>.old (the earlier one) beside DIR, and, between the two renames, DIR itself missing. Nothing reads either folder: delete them, and run the export again.

Before this, a second export into the same DIR overwrote the files it wrote and left the rest. A folder that more than one export was written into may hold files its manifest does not name: an attachments/<sha256> that is not in blobs, or a resolution.jsonl when the manifest has no resolution_file. Look before you hand such a folder over, or export into it once more.

logbook export trip-bundle (shared trips) writes its package the same way, its trip.json among the listed files, and takes --force too. logbook export notion (export for Notion) writes its folder the same way, its own manifest listing its files, and replaces only an earlier folder of its own.

The pickup

What crosses can come back. The receiving side keeps the calls it was handed or recorded itself (Granola's, Fireflies'), and the Purser, a separate program on your Mac, collects them into a folder of its own. Until they are moved in, they wait outside the record. logbook import pickup moves them:

logbook import pickup ~/Purser/pickup                       # what it would take; nothing written
logbook import pickup ~/Purser/pickup --write               # take them: store, append, move out
logbook import pickup ~/Purser/pickup --write --source granola   # the provider of the files that name none
logbook import pickup ~/Purser/pickup --write --keep        # take them, leave the files where they are
pickup ~/Purser/pickup: 61 files
  58 to take: granola 31, fireflies 27
  skipped: 2 already taken (by hash), 1 without a source (name it with --source)
took 58 files: 58 lines appended (granola 31, fireflies 27); 58 files removed from the folder

Every file below the folder, in path order, subfolders included, is read by the transcript adapter, the one mapping every transcript source shares, and so takes what logbook add transcript takes: a transcript/v1 JSON, a WebVTT, an SRT or a Markdown file. Hidden files, and an attachments/ folder where an export keeps the files its JSON references, are passed over. Each call becomes one transcript/v1 line:

  • Its source is its own. A transcript/v1 JSON names its source (its source, else its payload's provider), and the line keeps it, --source or not. A WebVTT, SRT or Markdown file names none: --source names its provider, and without it the file is left in the folder, counted without a source. Nothing is taken as manual by default.
  • Its tier is the file's, else 3, as for any transcript (it carries other people's words in full); --tier sets one for every line.
  • Its text is stored in the attachment store before the line that points at it (SPEC §1.1, ADR 0015).
  • It says where it came from: payload.extra.picked_up is {"sha256", "file"}, the SHA-256 of the file's bytes and its path below the folder.

A file already taken is skipped by its hash: the same bytes again, under any name, in any later run, are already taken, never a second line. A file whose call the record already holds by the same source and raw_id (the same Granola note pulled by sync granola, say) is already in the record: no line is written, its text is stored if the store lacks it, and the file is left for you to look at. A file the adapter does not read, or one with no start, is counted and left.

A dry run unless --write. Without it nothing is written, stored or removed. With it, the files taken are removed from the folder once their lines are in the record, and so is a file found already taken (a move an earlier run left half done, say by a crash between the append and the removal); --keep leaves every file where it is. A file that cannot be removed is named on stderr and the command exits 1; its line is in the record, and the next run finds it taken. The folder is never the record or a part of it, told apart by the disk and not by the name (exit 2), and nothing is fetched from anywhere: the files are on this machine.