Skip to content

Adapters

One adapter per source. A module with three names: NAME (the source it writes), sniff(path) -> bool ("is this file mine?", cheap, never raises) and run(input_path, since) -> iterator[dict] where each dict has the keys at, end, tz, source, kind, tier, payload (see SPEC §2) — everything except the chain fields, which the logbook adds on append. Give every line a stable payload.raw_id; logbook add skips lines whose (source, raw_id) are already in the log, so re-adding an export appends nothing.

Adapters built by the project ship inside the package under logbook/contrib/adapters/ (ADR 0012); the first are dawarich, google-takeout-location (Google Takeout's Records.json and Semantic Location History, and the phones' own Timeline exports, Android's Timeline.json and the iPhone's location-history.json; see docs/adapters/takeout.md), google-takeout-photos (the Takeout Google Photos/ folder → one photo/v1 line per media file from its JSON sidecar, RFC 0002; the pixels are hashed, never copied; the logbook/contrib/adapters/takeout/ package has calendar beside them and will gain activity) and google-takeout-keep (the Takeout Keep/ folder → one note/v1 line per note, RFC 0010: raw_id keep:<created usec>@<modified_at> so an edit is a new line and a re-import nothing, labels, pinned/archived/trashed/colour under extra, list notes as [x] lines, attachments by digest from the file beside the note and stored only with --attachments) and google-takeout-tasks (the Takeout Tasks/Tasks.json → one task/v1 line per task, RFC 0016: raw_id <task id>@<updated> so a ticked task is a new line, status open/done, due as a day, completed_at, list, notes, parent for subtasks) and google-takeout-chrome (the Takeout Chrome/ folder: History.json → one browse/v1 visit per entry, Bookmarks.html → one bookmark per link with its folder path, RFC 0017; raw_id from the instant and the url's digest, never the file) and safari (Safari's History.db from an iPhone backup — import backup copies it out and runs this — or the Mac's own → one browse/v1 visit per row, the columns discovered by PRAGMA so an older or newer Safari still reads; the same visit from the phone and the Mac dedupes) and google-takeout-youtube (the Takeout YouTube and YouTube Music/history/ JSON → one watch/v1 line per video watched and per search, RFC 0018: title, channel, url, video id, the product as the service; ads and other activities skipped and counted; streamed with ijson). Not an adapter but of the same family: logbook setup places import-takeout reads Takeout's Maps (your places)/ GeoJSON and Saved/ CSVs and proposes entries for places.json, written only with --write. shazam (the app's shazamlibrary.csv → one listen/v1 track per identified song, RFC 0019, the zoneless tag time read in the record's zone) and apple-podcasts (Apple Podcasts' MTLibrary.sqlite, a copy through add, the phone's out of an iPhone backup through import backup --only podcasts, or the Mac's own through logbook sync apple-podcasts → one listen/v1 episode per played episode with its show, how much played, completed from the playhead, and the feed's transcript URL under extra, recorded and never fetched; raw_id the episode uuid with its last-played time so a replay is a new line; the columns discovered by PRAGMA, so a store with more or fewer still reads; see docs/adapters/listen.md) and spotify (Spotify's extended streaming history, the folder of Streaming_History_*.json or one file → one listen/v1 line per stream, RFC 0019: at when playback started (the stop time less the milliseconds played), end the stop, the track, album artist and album or the episode and its show as Spotify spells them, played_s, the skip flag, the device, the reasons and the country under extra; raw_id the URI with the stop time as spelled; audiobook chapters and unnamed rows counted; streamed with ijson; the IP address never kept; see docs/adapters/listen.md) and apple-music (the Apple Music CSVs of Apple's data export, one file at a time by its header → listen/v1: the play activity as one line per PLAY_END with start, end, duration, played, skip flag and device; the library as a snapshot per last-played time, as apple-podcasts; the daily play history coarsely, one line per track per day at its first hour in the record's zone; the columns found by name, so a missing one still reads; the Apple ID and the IP address never kept; logbook add music <file>) and pocket (a Pocket CSV export → one browse/v1 save per saved page with its tags and read state, RFC 0017: not a note, since a saved page is not the owner's words) and ios-contacts (an iPhone's AddressBook.sqlitedb → one resolution/v1 line per phone number and email address, minting the record's person and company ids — how a record gets its people, ADR 0013.2) and whatsapp (an iPhone's ChatStorage.sqlite → one message/v1 line per message, RFC 0008; media by digest only until the §1.1 store exists) and imessage (an iPhone's sms.db from a backup, or live, the Mac's own chat.db through logbook sync imessage — one message/v1 line per message either way, with the same raw_id, so the two dedupe each other; media by digest only) and whatsapp-contacts (an iPhone's WhatsApp ContactsV2.sqlite → one resolution/v1 alias line per contact with a linked-device id, RFC 0006 alias_of: the @lid a group message carries paired with the phone number the address book resolves; nothing is minted) and ios-notes (an iPhone's Apple Notes NoteStore.sqlite → one note/v1 line per note, RFC 0010; the body decoded from the gzip+protobuf archive with a stdlib-only walker) and ios-calendar (an iPhone's Calendar.sqlitedb → one event/v1 line per stored entry, RFC 0009; rules as RRULE text, occurrences never expanded) and ios-calls (an iPhone's CallHistory.storedata, which only an encrypted backup carries → one call/v1 line per call, RFC 0012: direction, answered, duration, the other end as a source-native phone/email/handle ref, never resolved, the service as the phone names it) and apple-health (an iPhone's healthdb_secure.sqlite, which only an encrypted backup carries → health-sample/v1, RFC 0014: steps, distance, energy and flights in 15-minute buckets per device, heart rate capped at one reading a minute, resting heart rate, HRV and weight as readings, sleep stages and workouts as spans; healthdb.sqlite beside the store names the sources) and ics (any iCalendar file, RFC 5545 — a Google Calendar or Takeout Calendar/ export, an Apple Calendar export, a saved feed — or a folder of them → one event/v1 line per VEVENT with the same shape as ios-calendar; a small tolerant stdlib parser, occurrences never expanded; or live through logbook sync gcal, the calendars you own over the Calendar API on the one Google key or their private iCal feeds, read by the same reader so the API, a feed and an export of one calendar dedupe each other (ADR 0017)) and apple-wallet (an iPhone's Apple Wallet passes — the unpacked .pkpass folders a backup keeps under Library/Passes/Cards/, which import backup --only wallet copies out, or any .pkpass zip → one flight/v1 line per air boarding pass, RFC 0013, evidence declared: the route, the carrier and number, the date and the seat and class read from pass.json's front fields by their keys and labels, which differ per airline, and from its semantic tags; one event/v1 line per event ticket and per train, boat or bus pass, RFC 0009, the issuer as the calendar; a coupon, store card or generic pass becomes an event only when it carries a relevantDate, else it is counted; pass.json is the one file read — the barcode, the back fields, the images and the Passes database never — and the booking reference and the passenger's name never reach a line; raw_id from the pass type and serial, hashed, so a re-import appends nothing and an updated pass supersedes; logbook add wallet <folder|pass.pkpass>; see docs/adapters/wallet.md) and ios-wallet (an iPhone's Apple Wallet passes — the unpacked .pkpass folders a backup keeps under Library/Passes/Cards/, which import backup copies out, or any .pkpass zip → one flight/v1 line per leg of an air boarding pass, RFC 0013, evidence tracked, read from the airline's IATA BCBP barcode, the year from the pass's own dates and never guessed; one event/v1 line per event ticket and per bus, boat or train boarding pass, RFC 0009, the issuer as the calendar, the front fields under extra minus names and credentials; store cards, coupons and generic passes skipped and counted; the PNR, the passenger's name and the barcode never kept; logbook add wallet <folder|pass.pkpass>) and easypark (the EasyPark app's recentparkings_<user>.json from an iPhone backup → one trip/v1 line per recently used parking area, RFC 0020 mode parking: the area's description, signage code, operator and coordinates as from, at the app's last-used time, no end and extra.observed last_used, because the phone keeps no sessions; import backup copies the file out and runs it) and wispr-flow (the Wispr Flow dictation app's database.sqlite from an iPhone backup → one transcript/v1 line per dictation, RFC 0004: the typed text, else the tidied text, else what the recogniser heard, as a text/plain attachment in the §1.1 store and never inline; provider wispr-flow, the language, the app it was typed into under extra; tier 3 by default; logbook add wispr <database.sqlite>) and flighty (a Flighty CSV export → one flight/v1 line per flight, RFC 0013, evidence tracked: carrier spelled as IATA, the airports' wall-clock times converted to UTC through the shipped airports table, the PNR never kept; logbook add flights <export.csv>; a flight the owner already declared or the record already inferred is superseded by the merged line, never duplicated; the same adapter reads the app's own MainFlightyDatabase.db from an iPhone backup, which import backup copies out, with the same mapping and raw_id, so the store and an export of the same flights dedupe) and transcript (the universal transcript file adapter, RFC 0004 transcript/v1: JSON already in transcript/v1 shape — the interchange format for any tool — WebVTT, SRT, Markdown and plain text with Speaker: text lines → one line per file, the file's own bytes as the SPEC §1.1 attachment, raw_id <source>:<sha256>, tier 3 by default; logbook add transcript <file|folder> --source <name>) with granola as its live sibling (logbook sync granola: one transcript/v1 line per recording through the same mapping, raw_id granola:<note id>, plus the AI summary as a derived note/v1 line); ais and adsb (ADR 0018: the positions of the owner's own vessels and aircraft, registered in assets.json, as location/v1 lines with subject set; ais reads a saved aisstream.io stream and logbook sync ais listens to its websocket for the registered MMSIs — for --listen SECONDS or --until HH:MM (the record's local time) or LOGBOOK_AISSTREAM_LISTEN_S, one progress line a minute per asset, a reconnect with backoff when the socket drops, Ctrl-C writes what was heard — raw_id aisstream:<mmsi>:<unix seconds>; adsb reads a saved OpenSky states/all response and logbook sync adsb polls it for the registered icao24 addresses, raw_id opensky:<icao24>:<time_position>) and mail (an mbox mailbox — Google Takeout's Mail/ export, or any mbox file or folder of them → one mail/v1 line per message, RFC 0015, streamed one message at a time: raw_id the Message-ID (<account>: first when --account names the mailbox, so the live IMAP source dedupes against the export, ADR 0017), the thread root, sender and recipients as {email, name} refs never resolved, subject, date with its offset, Gmail labels, the body as text (HTML stripped without a library, at most 64 KB of it), size, attachments by name and length never decoded — only with --attachments are they decoded, hashed and put in the §1.1 store; direction from owner_emails in logbook.json; --only-labels/--skip-labels/--since; a message without a Message-ID keyed by its digest, never skipped; built for a 20 GB Takeout: chunked, well over 40 MB/s, progress every 10,000 messages, resumable through the cursor in inbox/manifest.json, --restart to read it all again; and live, the same mailbox over IMAP through logbook sync mail — read-only (EXAMINE and BODY.PEEK, never a flag change), configured by LOGBOOK_IMAP_HOST, _USER and _PASSWORD alone, resumed per folder by UIDVALIDITY and UID from the last batch written, the headers fetched first so a message the export already wrote costs no body, Gmail's labels and thread id taken once at ingest; and a Gmail mailbox over the Gmail API through logbook sync gmail, on the one Google service-account key, the same line and dedupe key as IMAP; docs/adapters/mail.md) and apple-reminders (an iPhone's Reminders stores, one Data-<UUID>.sqlite per account → one task/v1 line per reminder, RFC 0016: title, status, due — a day for an all-day reminder, an instant for a timed one — completion time, list and notes; raw_id reminders:<uuid>@<modified>, so a reminder completed later is a new line; subtasks by parent, priority as three words; logbook add reminders <folder> reads every store below the folder) and copilot (Copilot Money's CopilotDB.sqlite → one transaction/v1 line per transaction, RFC 0021, tier 3 always: amount signed from the owner's side, currency, the cleaned merchant or the owner's override, Copilot's own category slug, the account id, pending or posted, the owner's note; the bank's original string, the type, tags and a split's parent under extra) and splitwise (Splitwise's database.sqlite → one transaction/v1 line per expense the owner is part of, tier 3: the owner's share signed from their side, currency, description, category, the group as the account; every member's shares with source-native refs under extra; the owner found by owner_emails, else taken as the person on most expenses and said so) and beeper (Beeper's BeeperStore.sqlite, the phone's cache of a Matrix account bridging WhatsApp, Telegram, Instagram and Facebook → one message/v1 line per message in clear: decrypted cached events and each room's last message, RFC 0008; encrypted events without a decrypted copy are counted, never guessed at; senders as contact hints from the bridge — phone, email or Matrix handle — never resolved; extra.network names the bridge; or live, every chat of every network Beeper Desktop bridges through its local API with logbook sync beeper, read-only, one line per message under beeper-<network>, attachments referenced by asset id and never fetched) and notion (live only: logbook sync notion reads the pages an internal Notion integration is shared with and writes what happened to each on each day, one event/v1 line per page, local day and action — created, edited, moved, archived — at tier 1, with the title, the titles above it, the page's id and url and who acted; never the text, only its SHA-256 and word count, and of a database row only its status, select, date and checkbox values, old and new against the page's previous line, its database and its relations as the ids of the rows they link to, never their titles (--relations-backfill for rows synced before); read-only, under Notion's rate limit) and meet (live only: logbook sync meet, the Meet REST API on the one Google key → one event/v1 line per call that has ended, tier 1, the participants as Meet names them, and when Meet transcribed the call one transcript/v1 line through transcript.draft, the mapping and tier granola uses; a Granola transcript of the same call stays its own line) and gaudit (live only: logbook sync gaudit, the Workspace login audit log on the one key → one event/v1 line per sign-in event of the owner's, tier 1, the place Google derived from the address and never the address) and line (LINE's Line.sqlite → one message/v1 line per message, RFC 0008; a sender's phone from Contacts.sqlite and a group's name from UnifiedGroup.sqlite when they are beside the store, as import backup puts them; calls are counted, not logged) and twitter (the X app's <account>-dmv2.db direct-message stores, one per signed-in account → one message/v1 line per message, RFC 0008: the conversation as the chat, named after the other account or its custom title; senders by screen name, never resolved; links and photos as media_kind) and instagram (Meta's "Export your information" archive in JSON, the zip or its folder, in the older and the newer layout, every file found by its name and every string's latin-1-escaped UTF-8 read back → one message/v1 line per direct message at WhatsApp's tier, inbox, requests and archived chats alike, the sender by display name as instagram:<name> since the export gives no handle there, attachments by path and digest; one call/v1 per call; one photo/v1 per image or video of the owner's posts, stories and reels; one social/v1 per follow either way, close friend, block, restriction, follow request, unfollow, like, comment, story like and profile search, RFC 0048; an HTML export refused with how to ask for JSON; see docs/adapters/instagram.md) and apple-books (Apple Books' AEAnnotation*.sqlite, from an iPhone backup or a Mac → one highlight/v1 line per highlight and bookmark, RFC 0022: the quote and the owner's note verbatim, the EPUB CFI as text, the title and author looked up in the BKLibrary*.sqlite beside it and never guessed; reading positions and deleted marks skipped and counted; logbook add books <store-or-folder>; import backup copies both stores out) and voice-memos (Voice Memos' CloudRecordings.db with the audio beside it → one voice-memo/v1 line per recording, RFC 0023: title, duration, the file hashed a chunk at a time and named by digest, put in the §1.1 store only with --attachments (import backup --attachments too); a recording whose file is gone is a line without media, counted; no transcription — that is the later, local step logbook derive transcripts voice-memos: one transcript/v1 line per memo with its audio in the store, heard by mlx-whisper or faster-whisper on this machine with the hub offline, raw_id the memo's own and provenance.source the memo line's id, see docs/adapters/voice-memos.md) and apple-photos (an iPhone's Photos.sqlite → one photo/v1 line per asset not in the trash, RFC 0002: the original file name and the capture time — the merge key a reader folds the Immich line for the same asset on —, coordinates, size, duration, live photo, provenance from the store's own record of how the asset arrived, the number of faces, the ids of the people the owner named under people and their names under extra.faces (a proposal of presence a reader never confirms), favorite, hidden and the owner's own albums; the favourites and the Art album become keeper/v1 lines in the same run, written once (RFC 0024); the pixels stay where they are, named by path and, through import backup, by digest (content_hash), so logbook import attachments import-backup --only photos can fetch them; logbook add photos <store>; see docs/adapters/photos.md) and withings (the Withings app's per-profile <profile>_WTHealth.sqlite and <profile>_Measure.sqlite → health-sample/v1, RFC 0014: the scale's weight and body composition — body fat %, fat, fat-free, muscle and bone mass, body water, BMI, VO2 max — one line per quantity at the instant of the standing, and the app's heart-rate readings; readings the app relayed from Apple Health or another app are skipped and counted, so the record gets them once; either store brings its partner, a folder brings every profile; the same adapter reads the account's data export, logbook add withings <folder> — the scale's standings from weight.csv, the cuff's pulse from bp.csv with the pressures under extra, the nights and the tracker's sleep stages, heart rate, steps, distance and calories from sleep.csv and the raw_* files, the activities as workout — and a later export that changes a sample writes a correction that supersedes the line in the record, never a duplicate and never a rewrite, see docs/adapters/health.md) and myfitnesspal (MyFitnessPal's maindb.sqlite → health-sample/v1: logged foods as energy_intake in kcal from the portion and quantity with the meal, food and portion under extra, weights (pounds converted), exercise as workout; an entry the app keeps only the day of is a span over that local day; daily step totals skipped; the same adapter reads the account's Nutrition-Summary CSV export, one energy_intake per meal per day with the macros, water and note under extra, a re-logged meal a correction as above) and sbb (SBB Mobile's SbbMobile.db and the past journeys store beside it → one trip/v1 line per bought ticket group — validity window, the stations on the ticket, the price as {amount, currency}, class and head count, cancelled when refunded — and one per saved journey the owner took, with its legs, the real clocks and the stations' coordinates, mode transit, provider sbb, RFC 0020; the traveller's name, the QR code and the order reference are never read) and screentime (a Mac's knowledgeC.db — the /app/usage stream only, behind Full Disk Access — and an iPhone backup's Screen Time store RMAdminStore-Local.sqlite → one app-use line per session, or per app per hour on the phone, with an event/v1 payload at tier 2: the bundle id, the app's name when known, the span and the device; raw_id <device>:<bundle id>:<start>; never a window title, a URL or a web domain; logbook add screentime [--mac DB | --backup DIR], import backup --only screentime; read back by rollup attention as hours by app and category, the categories from a built-in table under policy/apps.json; see docs/adapters/screentime.md). and passages (a ship's deck log transcribed as CSV → one declared trip/v1 sea leg per row, RFC 0020 mode passage, the registered vessel as subject, logbook add passages <csv> --asset <id> --routes <dir>; each end positioned from the ECDIS route (RTZ) whose name names both places, else places.json, else a bundled gazetteer of Mediterranean, US East Coast and Bahamas ports, with a location/v1 line of the vessel at each positioned end so the readers see the leg as her own movement; see docs/adapters/passages.md). And the owner's own agents, their words marked as machine text and never a person's (see docs/adapters/agents.md): telegram (Telegram Desktop's JSON export of the owner's bot chats → one message/v1 line per message, the owner's as theirs and the bot's with extra.machine, the bot as the counterpart of kind agent, media referenced by path and digest; logbook add telegram-export <folder>; or live, logbook sync telegram over the Bot API for the owner's own bots, read-only and never confirming an update, the same lines and the same key so the two dedupe each other) and claude-code (Claude Code's session transcripts under ~/.claude/projects/ → one transcript/v1 line per session, the owner's turns as owner and the assistant's as a participant marked machine, tool calls counted and their output never kept; logbook add claude-sessions <folder>) and claude (the Claude apps' data export, its zip or the folder it unpacks to → one transcript/v1 line per conversation in the shape claude-code writes, the owner's turns as owner and the assistant's as a participant marked machine; files and tool calls named and counted, never copied, an attachment's extracted text, a tool's input and output, thinking and users.json never read into a line; the project's name only; a conversation that grew supersedes its line; logbook add claude-export <zip>). Third-party adapters are separate packages registering the logbook.adapters entry point. logbook add <file-or-folder> tries every registered adapter's sniff and runs the first match.

The Takeout package also has google-takeout-pay (the Google Pay/ folder: the transactions CSV → one transaction/v1 line per payment at tier 3, signed from the owner's side, the currency read from the amount text; the passes that are tickets, transit or flights → one event/v1 line each, loyalty cards, offers and gift cards counted), google-takeout-chat (Google Chat/ → one message/v1 line per message, the chat from the conversation folder and group_info.json, from_me from owner_emails or the one user under Users/, the first attached file hashed and stored only with --attachments), google-takeout-meet (Google Meet/Call history/ → one call/v1 line per call, outgoing when the organizer is the owner), google-takeout-contacts (Contacts/ vCards → one resolution/v1 line per email and phone, one entity per card, merged with the people the record already resolves through the resolved option logbook add passes, so a person ios-contacts resolved is never minted twice), google-takeout-access-log (Access Log Activity/ → one event/v1 line per access to a Google service at tier 3, device and location when the row has them; off by default in policy/import.json) and google-takeout-activity (My Activity/ → searches, visited results and apps opened as browse/v1, YouTube entries through the YouTube adapter's own mapping as watch/v1, Chrome entries left to the Chrome adapter; off by default), google-takeout-maps (Maps (your places)/ → the reviews as highlight/v1, the place as title, the words as quote, the stars under extra; the saved places never lines but candidates for setup places propose --takeout, with their list and the day they were saved) and google-takeout-home (Home App/HomeHistory.json → arrivals, departures and the alarm armed or disarmed as event/v1, the evidence the Day attaches to a night at home; sound events and alarm clips never read) and google-takeout-fit (Fit/ → health-sample/v1 at tier 3 with the types and units apple-health writes, RFC 0014: the All Data/ streams as steps and distance in quarter-hour buckets per device, heart rate capped at one reading a minute, weight, body fat and sleep stages as spans, each line naming the device and the app Fit recorded it from; All Sessions/ as workouts with their aggregates under extra, a sleep session as the night in bed; Daily activity metrics/ as the fallback, a day's quarter hours as buckets and a day-long span for a day no stream touched; calories and the other derived figures never a type; the same quarter hour counted by Apple Health stays a second line, see docs/adapters/takeout-fit.md). The YouTube adapter reads Takeout's default HTML as well as JSON, the clock in the record's zone only when the abbreviation is that zone's. Every Takeout sub-adapter also answers to takeout-<name>; logbook add --dry-run counts any import against the record and writes nothing. The owner's page is docs/adapters/takeout.md.

Rules: pure by default (no network), never write to the source, never invent tier lower than the source deserves, fixture-tested with synthetic data only. Backfill and live share one mapping (ADR 0017): where a source has both an export and an API, one function maps it and both add and sync call it, so a backfilled line and the same line pulled live have one raw_id and dedupe to one line.

One live adapter asks a third party about your days: weather (logbook sync weather, RFC 0026, weather.md) takes the places your own track says each day was spent at, rounds each to a tenth of a degree so no exact place leaves the machine, and fetches that day's weather from Open-Meteo's free archive, cached under inbox/weather/ so nothing is asked twice. It runs only when LOGBOOK_WEATHER=1 is set, by name or in sync --all, and then asks about yesterday and the days since the last run, never your history unless you name the days; no reader opens the network.

One live adapter is deliberately not in the registry, so sync --all never lists its folder: drive-videos (logbook sync drive --videos, RFC 0040, videos.md) writes one video/v1 line per file of the family's videos folder on Drive, from its metadata alone; videos fetch downloads a file at a time into a bounded cache, and videos infer finds its scenes and proposes where and when each was filmed on this machine, for the owner to confirm with review video, one more queue of the review.

Planned first (ADR 0008): google-takeout, apple-health (done), then email — the last now mail, file mode; its live IMAP mode is the next step under ADR 0017.

Wanted — pick one and open an issue with the adapter template: strava, garmin, apple-fitness, eight-sleep, oura, withings, telegram, signal, imap (the live mode of mail), google-calendar, flightradar24, notion, obsidian, spotify, apple-music, letterboxd, goodreads, kindle-highlights, twitter-archive, bank-csv (generic, with per-bank mapping files), revolut, paypal, amazon-orders, uber, airbnb, vivino, steam, boat-passage logs.

Delete after import

An export is read once and then only takes up disk: a Takeout is tens of gigabytes, a phone backup's copies under inbox/ios-backup-<udid>/ a few more. The record does not need the input again — every line is in logbook/, every file worth keeping is in attachments/ by digest — and add and import backup say so with their last line (inbox: Records.json can be cleaned now …). Nothing is deleted for you; two commands do it on request:

logbook import inbox list                               # every file under inbox/: size, the import that read it, whether its lines are all in
logbook import inbox clean --to /Volumes/Archive        # move what is imported in full to the external disk, keeping its path under inbox/
logbook import inbox clean --delete --dry-run           # or remove it; --dry-run says what would go and how much, and touches nothing

How list knows: a run of add or import backup that reaches its end appends one entry to state/imports.jsonl (bookkeeping, like the sync watermarks; never the record) — the input, the adapter, how many lines it produced and how many were new, the seq span appended and the hash of its last line, the record's owner_id, the input's size. A file is ready when its run wrote to this record, the file has not changed since (size, and a lone file's modification time), and the run's last line still stands at its seq with its hash: the record is append-only, so that line standing means every line before it stands, and a line the run skipped was already there. A run that stopped early (an adapter error, Ctrl-C) records nothing, so its input reads not imported and clean keeps it, as it keeps a changed file, a file imported into another record and a file already at the destination — each said so with its reason. A store's -wal/-shm sibling goes with the store; a backup's copies.json and decrypted Manifest.db go when every other file in their folder has. Adapters need do nothing for this: the CLI records the run, and an adapter that is pure (never writes to its source) leaves the input exactly as it found it, which is what the size and time check relies on.