Changelog
1.2.0 — 2026-11-21
Documentation
- The install page names no version: every line installs the newest release, a screen it shows writes
X.Y.Zfor the number, and the extras lines pin through$(logbook --version).pipx injectgains the--forcewithout which pipx seesopenlogbookinstalled and changes nothing. - The home server installs the release with
uv tool; installing from the repository is an aside for developers, from thestabletag. - The docs use today's command names (
logbook show year,logbook serve mcp,logbook import backup, ...) where they used the old ones, which still run; a page about a renamed command says the old name once. A test holds every command, subcommand, flag and repository path the README, the docs and the changelog fragments name to the parser.
Fixed
imessagecounts every attachment of a kept message that names no file found beside the store under its reason,skipped_attachment_<reason>(no attachment row, no filename, an unsupported kind, a file that is not there), sologbook addandlogbook sync imessagesay where the gap to the attachment table went. The message's line stays as before,extra.media_missingand all (#80).derive flightscounts a draft merged into a flight already in the record as a merge, not as a new flight, so its dry run and its real run tell the same counts (0 new flights … also 3 mergedfor the demo, which said3 new flights). Two numbers for one leg met in the same run are one new flight and one merge into it, no longer a merge "into a flight already in the record" (#109, #458).- Keep and sign take a sentence only from the day's current draft. When the day was dreamed again and the
newer draft is withheld (the
dreamentry no longer allows its tier, or the Day page's gate does not read it), the older draft it superseded is still shown, butlogbook day sign DAY --keep Nand the Day page now refuse to keep from it, in one sentence that names the current draft (its number, its id and when it was written) and how to keep from it; a retracted draft is refused the same way. On the Day page a superseded draft's keep boxes are gone and the form says a newer draft exists, with a link to it as written (a draft above the page's gate is said to exist and never named). A keep made before its draft was superseded stays as it was written, andlogbook show DAYsays which draft it was kept from (kept from draft #8, superseded by #9). review receiptsreads a sender's address as the address it is (Unicode NFKC): a fullwidth@or fullwidth letters no longer hide a person, or you, behind a lookalike, and an order address written so is read.- The demo record's places are the persona's own coordinates or public landmarks: the museum is the Kunsthaus, and no hotel, flat, office or cabin points at a real address.
- A request the Library refuses before reading its body (a proxy's POST, another host's, a form over the size it may carry) is now closed gracefully: after the answer, at most 64 KiB of the unread body are read and dropped, never parsed, for at most a second, so the client always reads the refusal. On Windows the client could see the connection reset (WinError 10053) before the answer arrived.
- Today, the morning's plan on the Day page (where
/todaylands), gives a time its own column: each row of the plan, what is due and the day's tasks puts its time in a<time>cell of its own (all dayfor an all-day entry,due,taskortripwhere there is no clock), a column on a wide screen and a line above the row on a phone, and the title and the people are the row's text. A title that opens with a name (Ola Nordmann's birthday cakeat 17:00) no longer reads as17:00 · Ola Nordmann…in one row. - A promise said more than a week before the day it is due says the person after a word,
you were promised on 2026-05-20, by Ola Nordmann(, to …for one you made), on Today and in the Day's loose ends, never a date beside a name.
Adapters
logbook add instagram <zip|folder>reads Instagram's "Export your information" archive (JSON, the older and the newer folder layout alike): direct messages from the inbox, message requests and archived chats as messages, calls as calls, the images and videos of your posts, stories and reels as photos with their caption and place, and follows, close friends, blocks, restrictions, follow requests, unfollows, likes, comments, story likes and profile searches associal/v1lines (RFC 0048, a draft). Meta's garbled text (Ã¥forå) is read back as written. Adding the same export again writes nothing; a newer one adds only what is new. An HTML export is refused with how to ask for JSON. Instagram senders are proposed against the people you know by name inpeople review, never merged on their own. See docs/adapters/instagram.md.- The Day and
showsay asocial/v1line in words (followed by @ola.example,liked a post by @sailing.example); a handle is an account, never a person: no door lists one among your people.
Security
- A page read through a gate (
export site --tier, orserve mcpunder themcpceiling ofpolicy/crossing.json;serveitself reads every tier) no longer counts, dates or hints at a line above it, from the privacy review's LATER list: the People door's last real contact and the Day's morning reconnect read the people's contacts through the gate;/shelvessays the lines at the gate's tiers and their days, not the record's seq; the window every page opens on and the search's year filters run over the days of the lines the gate reads;/gapscounts its sources, silences and missing days at the gate's tiers;/worlddraws only the tiers the gate reads and says it held back only lines the gate reads; a promise closed by a task line above the gate is still open through it. - The Sign form of a page that reads no notes carried the record's last seq in hex, a count of every line above the gate: it is sealed, for its day, with a key kept on this machine beside the index, and Sign reads it back as before; a page read before the upgrade is read again before it signs.
- The MCP server's gated index answers every method the Library calls through its ceiling:
by_seqsandlines_ofreturned lines above it, and the ids, kinds, years, totals, attachment counts, newest stamp and search it gave counted every tier. - The Library is one login at a time: tailscaled keeps a connection open for many requests, and a
request on it that names another login, none, or is this machine's own is now a 403 and the
connection is closed. Every proxy header (
Forwarded,Via,X-Real-IPas well asTailscale-*andX-Forwarded-*) is a proxy's on a form's POST too, and the docs say so. - No pencil without evidence: outside the Day's own Draft, a model's sentence (the letter's story, the week's proposal under Today and on the week page, the intention it prefills, a goal's proposed verdict, a call's decisions, the chapter on Life, what was drafted about a person) is shown with the ids of the lines it cites, and only when every one is a line the page reads; one with none, or one that rests on a line above the page's tier, is not shown. A letter no longer carries a story sentence that rested on a tier-3 line.
Added
export notiongives each person'sbirthdayin the facts, read off a resolution line (YYYY-MM-DD, or--MM-DDwithout the year), or null, also when two cards disagree; nothing else the line holds there is passed through, and the page has no line for it. A birthday binds nothing, so its line passes the gate as a fact's does: at the entry's tiers, on a day you have signed unless the entry and--include-unsignedlift the gate, not retracted. Held back, it is counted with the other lines held back, never beside a name; the dry run says how many persons would leave with one (export for Notion; from #459 by localboy21).
Changed
- The Library's old addresses answer 301 Moved Permanently (they answered 302 in 1.1);
/todaystays 302.
1.1.0 — 2026-11-02
Fixed
- A request counts only when a person wrote it.
promisesproposes "asked of you" from a mail only when it is a person's mail (RFC 0045: the sender resolves to a person, is no no-reply address, no agent's) and from a message only when its sender resolves to a person, never in a conversation with an agent. A newsletter's "please let us know", a notification, a company's mail and a message from a number nobody is named by no longer show as asked of you, inpromises, on the Day page's loose ends, the person page, the shelf or the Notion export; resolve the sender to a person and they count again. Commitments, transcripts and notes are read as before. - An all-day entry says
all day, neverfrom 00:00 to 00:00+1, whichever calendar carries it: one that another calendar carries timed (a Notion date-only page, a copy of a birthday) and one that runs from a midnight to a later one are all-day too, on the Day'sall dayrow, in Today's plan, under the day's ribbon on the week page, and first indigest's tomorrow (tomorrow.all_dayin its JSON). Two all-day entries have a word between them,Away with Per Hansen and 17 May dinner. doctor's install hint in a clone is the shortuv sync --extra <name>where that syncs the environment doctor runs in as it is, and adds--python(when the clone's.python-version, uv's global pin orUV_PYTHONasks for another Python than the venv's) or--no-default-groups(when the venv has no dev group) where it would not, so the extra lands in that environment; withUV_NO_DEVorUV_NO_DEFAULT_GROUPSset it prints no line.logbook serve --built(labs): the rebuild after an act renders every page on a site of its own, so it no longer keeps a built page's old bytes again with a secondbuilt hh:mmin its footer, nor marks pages as asked for. A built page older than the record's head (a CLI act, a sync) is still served, its footer saying when it was built, and starts one rebuild for that head, however many pages are asked for meanwhile.- The built pages'
pages.jsonis written only underbuilding.lock, whole and moved into place: the server no longer loses the 06:00 close's writes, nor the close the server's; a page an act dropped stays dropped until a page that read past the act is written, even when a build begun before the act writes the old one back. - Every built page records the tiers it was built at, and is served only to a request read through that same gate; a build through another gate renders every page again.
- A sealed record without
plaintext_cachekeeps no built page through any write of the lab, and a record sealed while a build runs keeps nothing that build wrote. - The rule that no number stands beside a person's name reads the name in any case:
kari 2026,KARI 2026and2026 kariare held asKari 2026is, in drafts, the week, the people door, Ask and every check of a page; the owner's own name is held on Ask too. Ask's heading and title, and the search's sentence, no longer say the words back when they set a number beside a name the record knows; the words stay in the field as typed. - A page says the tier its gate reads,
read at tier N(read at tiers 1 and 3for a gate with a gap,tier 3 alonefor one tier), in place ofnothing read above tier N: in a shelf's heading, the week's, the timeline's, the search's, and Ask's foot (Read at tier N.). The old words came from the lines the page read and could understate where a name on it came from. A page that read no lines still saysno lines. - A page read through a tier gate completes the Day's "with…" field with only the names its tiers give. Days lists who you were with last, as Trips does, so no figure of the day stands beside a name, and a search hit sets each field of its excerpt on a line of its own, so a name and a number beside it in the record are never side by side on the page.
- The Manifest sets each of an org's facts on a line of its own, an introduction says "on" before its date, and an evidence row counts the line ids it leaves out in words ("and 21 more"), so no count or date stands beside a name there either. A review queue's proposals, a model's proposal in the week's intention field, an agent's own summary and a promise's verdict from the reader and the judge are pencil, titled. Gaps keeps its dates and clocks whole on a desktop, a line's JSON scrolls in its box on a phone, and every link that stands alone on a phone is a 44 px target.
Security
- A page that reads no notes (a tier-1 page) looks exactly as if the day had no reflection: its Sign form carried a digest of the reflection, or of none, and so told the two apart; it carries the last line the page read now, and Sign refuses a form older than the reflection. A page that reads notes but not the tier a reflection is at reads the newest reflection it can see, as if the other were not there.
digest's tomorrow says the title, then its time after a word (Ola Nordmann's birthday, from 19:30), never a clock against a title that opens with a name.- The ribbon's spoken label says the span, what was lived, then the plan, so no clock stands before
Lived(whose first letters may be a name, as the demo's Liv);tasks donesays“Call Ola Nordmann”, the task of 2026-06-09, and the rows oftasksandtasks --propose-donegive the due day, the list, the shared words and the ids each after a word. - A draft's evidence ids follow a word,
from […6742a9f5], inlogbook day,show tripand the Day page, so an id that opens with a digit never stands right after a name; the test guard reads the ids as printed. - The week page holds its goals, places, threads, intention and question to the main guard (
figures.adjacent, every separator, a date in words, the first name too), not a guard of its own with fewer separators. export share dayholds a day to the crossing's rules: only a day you have signed leaves (an unsigned one is refused in one sentence naminglogbook day sign), and a mail crosses only when a person is on it; the page's manifest and its crossing line count each,held_back_unsignedandmail_held_back.export crossingandexport share dayrefuse a name the policy keeps for its own reader or door (mcp,hermes,dream,site,vault,world,folder,heard,chat,phone,notion,letter,relationship, in any case) as a person or destination, in one sentence. A nightlyexport crossing --to hermesnow stops: give the person's own name and its own entry inpolicy/crossing.json.- docs/export.md says that a folder, the vault, the site and the world are your own copies and take no signed-day gate.
Added
- Ask (
/ask?q=…, RFC 0047 §4.5, v1): the field at the top of every door now answers with moments, not lines. One row a day, each day once and newest first across the pages, with where you spent the night, who was with you (names only, each a link to their page) and the words that matched, your own first, the match marked and its source (message, mail, call, note …) in pencil, each a link to its row on the Day. It searches whatlogbook searchsearches, held to the page's tier; a hit a later line corrected says so, and?standing=1leaves it out./searchkeeps working as it is. No number, date or clock touches a person's name anywhere on it, the record's own words in its excerpts included. - The gear (RFC 0047 §4.6): the icon at the end of the Library's header opens
/gear, the machinery in its own words, one card per part with one line of state./gear/sourceslists each source with the day of its last line, a source quiet for a week marked, and the command that brings it back;/gear/crossingslists what left this machine, when, to where, the tiers, the lines and the kinds, under which policy entry, each a link to its crossing line (a member of your circle is never named);/gear/buildsays when the pages were last built, how long it took and the command that builds them again./gear/agents,/gear/manifestand/gear/assetsare the old pages, exactly;/agents,/manifest,/assets,/gapsand/shelvesanswer as before, and the gear links every shelf (serve). - The Library's Life door,
/life(RFC 0047 §4.2), which the header's Life door now opens: the chapter you are in and its rules, the year's goals and those for life with their last review, then one timeline of your life at five zooms (Life, Year, Month, Week, Day) or one trip, your ideas as a band on it, the chapters not yet placed, and the Volumes, the years as spines. Every zoom and move is a link (/life?at=2026-06-15&zoom=week,/life?trip=FIRST/LAST), no script, no number beside a name, held to the page's tier. Its bounds arelifeinlogbook.json,{"from", "to"}, else the record's first day to the end of next year (settings). Every old address works as it did. - The Library's People door (RFC 0047 §4.3) at
/people: everyone the record names by closeness, the people you live with first, on four rings around you (Home, Family, Friends, Everyone else, a rule's reading set in pencil), each a link that opens their thread beside the orbit (?sel=ID); the rest A to Z. A thread is the last contact in words, the moments newest first, the beginning, the promises open both ways and the links on to Life and Places;/people/IDis the whole thread, with the days together as marks over the years, the words of what was said when asked (?said=1) and what a model drafted about them in pencil. Closeness is only the order: no number stands beside a name anywhere on the door. The review queue stays at the foot, as it was, and/people?year=keeps its address. - The Library's Places door (RFC 0047 §4.4), at
/places: the globe of your life, drawn on the page as one inline SVG with home near the centre (the coastlines whensetup mapnames the offline map file, the graticule alone without it), your places as dots and your trips as arcs, the lived ones muted and the ones ahead dashed and labelled; a time scrubber over the years of your life (/places?at=YYYY); Next, the trips and visits ahead from your calendar and your plan, each linking its span on Life; and Your places, home first, each with what it is in your words or a pencil placeholder. The register ofplaces.jsonand the review queue stay under it, as they were. /places/ID: one place, with its days as a strip over the years (each a link to its Day), the people who were there with you, by closeness, and the trips that passed through it.export sitewrites a page per place besideplaces.html.- The doors' look on every page of the Library that is not a door's own (RFC 0047): the Day in all four shapes, the week, the timeline, search, the shelves listed, Journeys, Trips, Days, Goals, Ideas, Promises, the Manifest, Agents and Assets (in the gear and at their old addresses), Gaps, a line, the error pages and the world read one stylesheet, the paper and the surface, Instrument Serif for titles and names, Inter for the text, JetBrains Mono for small labels, lists and tables on cards, the page's actions as pills and every control 44 px, in the light face and the dark, no text under the size a phone needs. No page's address changes. A model's text is pencil wherever it shows, lighter, with a dotted rule and the model named on hover; every text keeps 4.5:1 against its ground in both faces.
Changed
- Every Library address from before the doors leads to its door (RFC 0047 §9):
/days?from=&to=opens Life at those days (a whole year of them, Life at that year),/trips?year=and/journeys?year=Life at that year,/goalsLife,/world?from=&to=Places at that year,/search?q=Ask with the same words, and/agents,/manifest,/manifest/people,/org/IDand/assetstheir pages in the gear, each with a 302 for this release and a 301 from the next. A value the door would refuse is a 404; a form still posts where it always did, and every other address answers as before.docs/serve.mdlists them all. - The printed edition is called Volumes (RFC 0047 §10, §15): the help of
starand--print, the Day page's photo review and the docs say "a Volume" and "the Volume's pick" where they said "the paper edition" and "the press's pick". The commands and their flags are unchanged.
1.0.0 — 2026-10-29
Security
- The MCP write tools
add_noteandpromise_doneare refused unless themcpentry ofpolicy/crossing.jsonnames them underwriteand has not expired, assign_dayandnote_dayare, and the lines they write have sourcemcp, nevermanual: an agent never writes as the owner. - A signature never confirms pencil: the dream's draft, a note a model derived (a photo's description, a meeting's summary) and a line an agent wrote through the door are left out of
confirmedbyday sign,day reflect --sign, the Library's Sign and the door'ssign_day, and a disposition a standing signature gave one is no longer carried forward. export share dayholds a draft to the entry it was written under, as every other crossing and the MCP door do: a draft whosedreamentry is missing, lowered under its tier or expired stays home, counted in the manifest'sheld_backand the crossing line'sheld_back_by_entry.sync heardfetches only from the public internet: an address that is not global (the tailnet's 100.64.0.0/10, Tailscale's 100.100.100.100 and a MagicDNS name that resolves into it among them) is refused, the connection goes to the address that was checked and never to a second answer of the resolver, on every redirect, never through a proxy the environment names, and an https page's redirect to http and a port other than 80 and 443 are refused.sync heardfetches a feed's transcript only under aheardentry inpolicy/crossing.json,{"heard": {"max_tier": 2, "fetch": true}}:LOGBOOK_HEARD=feedalone fetches nothing, the entry is checked before any request, anddoctornames it.export worldand the Library's/worldfail closed: a record whose policy names noworldentry shows tier 1 alone, and{"world": {"max_tier": 2}}adds the chapters;doctornames it on aworldline.doctor --packetsends its probe of the dream endpoint, with the bearer key, only while the policy'sdreamentry allows the dream; with no entry, or one expired, it says the probe was not sent and why. SECURITY.md lists every command that may open a socket.logbook servereads for this machine and for your phone through Tailscale Serve oncelogbook setup phonenames it, and nobody else: a page asked under any otherHost(a website pointing its name at 127.0.0.1, DNS rebinding) is a421, and a request through any other proxy, another login, twoHostheaders or Tailscale Funnel is a403, both before anything is read. Withoutsetup phone, the phone no longer reads the pages through Tailscale Serve: run it once. Through an SSH tunnel, use the same port on both ends (ssh -L 8765:127.0.0.1:8765).- No Library page can be framed by another (
frame-ancestors 'none',X-Frame-Options: DENY), and a form posted from a frame or from another site (Sec-Fetch-Dest,Sec-Fetch-Site) writes nothing. logbook dayand the Day page, its ribbon's tooltips and its spoken label included, print a calendar entry's title and then its time after a word (Dinner with Ola Nordmann, from 19:30 to 21:00,Ola Nordmann's birthday, from 19:30), so a clock touches no name at either end of a title; the ribbon's label saysthenbetween its entries; an entry several calendars carry saysfrom 2 sources (…)after its title, inlogbook day, the Day page,digestandtasks, never×2beside a name.- A digit stuck to a name with no space between (
Ola Nordmann2,3Ola) counts as a number beside that name, and so does one through a separator that is a letter (3xOla), with no boundary asked of the name: the dream holds the sentence, every reader holds a stored draft's, a name thedreamentry withholds is still found there (and held out of a confirmed event's title), anddoctor --packetscrubs the owner's name with a digit stuck to it. Guillemets, an ellipsis,+,~,_and the zero-width spaces count as separators too. - A week's threads print their kind and count in words after the title (
“Dinner with Ola Nordmann” calendar 1 time), so a count stands beside no title that holds a name. - The Day page holds the reflection to its tier, as every other line of it: through a gate below the reflection's tier (a note, tier 2) a page or a built Library page neither shows, quotes, offers nor numbers it, nor its Wispr Flow dictation (tier 3); Sign still signs with it, its form naming no line.
- A sentence kept from a draft as a note above the page's tiers no longer reads "kept as #N" on that page; keeping it again there is refused in one sentence that names no line.
Added
- Keep and sign on the Day page: in the evening, and when a signed day is signed again, the Sign form
keeps the pencil's sentences and links (numbered as
--keeptakes them), a kept decision's revisit day, the day in a word and each task of the day answered (done, tomorrow, let go; a task shown by its title alone, no number beside it), then signs, in one click and one hold of the writer lock; the page writes whatlogbook day sign DAY --keep …writes, byte for byte, and any refusal writes nothing and says why in one sentence. A page that reads fewer tiers than the record shows and keeps only the draft its gate shows, as the rest of the Day does, and neither shows nor quotes a day's word above its gate. - Today's evening offers Dream the day so far (
logbook dream day TODAY --evening) while yourdreamentry stands, its draft in pencil above the form; without the entry, or on a page whose tier gate is below the entry's, the page says why in one sentence, and nothing is sent.
Fixed
- The dream sends a name only at its entry's tiers: a person the record names only in a tier-3
resolution never reaches the model under a
dreamentry ofmax_tier2, in the day, the week, the month, the journey or the chapter, and a draft's tier rises to the tier of a name it was given.day sign --acceptrefuses a person thedreamentry's tiers do not name, and writes a name learned at tier 3 at tier 3. - No number beside a name in a dream's draft: the journey and the person dreams hold such a sentence
as the day does, and
day, the Day page,show trip, the journey's page, the week, month and chapter readers andexport letterhold one in a day, journey, week, month or chapter draft already stored, whatever wrote it. A gated Day names a proposal's people only at its tiers. - The Library on a phone: every target the pages name is 44 px or more (a Day's line as written, every fold's summary, the Places review's name, skip and reject, the week's keep box and day links, the life's years and zooms, the Days' links, window and show button, the pagers, the world's map buttons); a Day's eyebrows, its ribbon, a row's kind, ids, evidence and the footer are at least 13, 12 or 14 px; and a row's kind and a promise's or an asset's badge keep 4.5:1 on the page in the light face and the dark.
/worldon a phone: its play button and scrubber sit above the doors' bar instead of under it, and a navigation of its own wraps inside the screen.- Names, dates and sources in exports are held to the tier of the lines that give them. An output
names a person only from resolutions at its own tiers: a name only a tier-2 or tier-3 resolution
gives is no longer in a tier-1
export vault,export siteorexport trip-bundle, a name only a tier-3 resolution gives is in none below tier 3, and neither is counted in a bundle'sheld_back.people.export site's Today, its span and its years andexport world's window come from the lines that cross, so a tier-3 health line no longer moves them; a vault's day page counts only the sources and flights that cross, and a day with none has no page; a trip bundle'strip.jsoncarries only the flights, stays and moves whose lines cross. - No date or clock time sits beside a person's name with only separators between:
people not-withwrites "from DAY to DAY", a proposed event "from 19:30 to 22:10" after its title, a site's people index names only, and a vault's year row puts its people last; the dream holds a sentence that sets a date or a clock beside a name, as it holds a count, and a confirmed event's title holds a surname and a genitive too. - The readers print people by name only, the most days together first, never with a count beside a
name:
rollup peoplereadsPer Hansen last 2026-06-30 · Office(was10 days · 0 nights · … · 11 confirmed), andshow year's people section and its page the same;show assetandshow placereadwith Anders Vik, Ola Nordmann, Sigrid Moen(wasAnders Vik (2 days), …); the Library's People page names each person with their last real contact, the evidence uncounted (was10 days together,evidence · 11 lines).rollup places --withlists each place's people,with Per Hansen, Liv Berg, androllup people --driftingeach person's last real contact (last 2026-06-12), the quiet channels and the last shared place, without the counts, the fall or the days ago. The year's page setswithbefore a place's people, a trip's paper edition names a day's people last, and an org proposal on the Manifest the names it was seen under without their count. The counts stay in--json, unchanged; a person's own page (show person, /people/ID) still counts the days together. - No date, clock time or other number sits beside a person's name with only separators between: the
digest's promise reads
Kari Nordmann, due 2026-06-05 (by Friday)(wasKari Nordmann, 2026-06-05) androllup listen's top artistsKari Nordmann played 0.2 h · 4 listens. - An event the owner accepts from the dream (
day sign --accept,day reflect --sign --accept) is a tier-1 line, and names a person only from the resolutions at tier 1: someone the record knows only by tier-2 or tier-3 lines is no attendee, and their name in the title readssomeone. - A fast test checks the site's people pages at tier 1 and at tier 1,2 on a small synthetic record: a tier-1 site has a page for the person a tier-1 resolution names and none for one named only at tier 2 or 3, and a tier-1,2 site has pages for both the tier-1 and the tier-2 people. Before, only the slow forty-year export, which pull requests skip, checked these pages.
export --dayand--dayswith nofolderentry record what is true in their crossing line: no entry exists and the default applied ("entry": null, "default_tier": 1), never amax_tierno policy set; an entry is recorded by name with its ceiling. The refusal of a tier above the default says the file names nofolderentry, and doctor's newexport-dayline says the same.- In a clone run with uv, doctor's install hint is the short
uv sync --extra <name>again, the clone named before it; sinceuv synckeeps only the extras it is given, the line names every extra the clone has beside the new one, so following it removes none. The pipx and uv-tool lines are unchanged. - A night the record does not place reads
not recordedon Today (Last night: not recorded), the Day page andlogbook day;in transitonly when the Day holds a move or a flight across that night. The Day's JSON is unchanged. logbook doctorbefore any record exists saysNo record yet: runlogbook demo --out ~/Demo/Logbookto try one, orlogbook setupto start yours.(it still exits 1). Its install line for an extra is the short one for how this Logbook was installed:pipx inject openlogbook "openlogbook[ais]==…"(withPIPX_HOMEonly when the venv is not in pipx's own home),uv tool install --force "openlogbook[ais]==…"(with the--pythonthe receipt asked for, if any), and in a cloneuv sync --inexact --extra ais, the clone named before it.- doctor's
homerow is nowscheduleand says what it is: which machine runs the scheduled syncs. Itsrestore-testwarn says to runlogbook backup DESTonce first when no backup is recorded. - The Day page and Today, on a machine with no transcription engine, give the command that adds one
for how this Logbook was installed (doctor's line), never
install openlogbook[transcribe]. - The Day page: the
withrow's words and its field are apart (proposed below · add); its footer says what is true,Reflect and Sign, the with field and the stars write to your record; nothing else here does, in place ofread-only; a past day is headed by its weekday alone, the shape's name (morning,live,evening) being today's. logbook show statsnames the record's format as such,record format logbook/0.3, beside a program whose version is another number.- An asset is printed by its registered name, once:
rollup places,rollup nights,rollup people,rollup places --with,show year,show person,show place,peopleandplaces proposereadaboard NordlysandNordlys (yacht)(wereaboard nordlysandNordlys (nordlys) (yacht)). The JSON SPEC §6.1 compares keeps the id. show trip, the trip's page and its paper say the day you came home in words,back on 21 June, for the morning after the last night (SPEC §3.2.6'suntil, unchanged in the JSON); they saiduntil 2026-06-21, which read as one night too many.show personcounts a person's days together asrollup peopledoes, by the confirmed evidence (a face on the morning after a confirmed evening is no day together; the demo's Ola reads 3 days in both, was 4), and says so:first confirmed … · last confirmed …,3 days together, by the confirmed evidence,last 6 shared stays, confirmed or proposed.show assetreads the runs aboard asrollup placesdoes, so its stays, hours and people agree with it.logbook export --day DAY --out DIR(and--days) reads its ceiling from afolderentry ofpolicy/crossing.json, as the vault and the site do, tier 1 without one;--tiermay lower it, never raise it, and a tier above it is refused naming the entry. Each run that writes a folder appends acrossing/v1line like every other export: destinationfolder, the folder's last part, the tiers, the kinds, the line count and the folder's digest (ADR 0026). It wrote every tier and left no line, though the README promises that your record keeps a line that says it left. docs/export.md.
0.7.1 — 2026-10-27
Adapters
add beeperandsync beepermark your own bots as machine text, as the Telegram adapters do: a line a named sender wrote carriesextra.machine, every line of a one-on-one chat with oneextra.counterpartof kindagent, so no reader takes the bot for a person. The senders are yours to name, never in the code:logbook setup agents list|add SENDER [--name NAME]|remove SENDERkeeps them inpolicy/agents.json(your own agents).logbook doctorhas anagentsline: the lines marked machine, per source, and the senders named.- Mail lines keep Gmail's inbox tab and the list headers, never their links (RFC 0015, amendment of
20 October 2026): every new line from
add mail(a Takeout or any mbox),sync mailandsync gmailmay carryextra.gmail_category(primary,social,promotions,updates,forums; from Takeout'sCategory …labels and the API'sCATEGORY_*, never over IMAP, which does not say the tab) andextra.list(unsubscribe,one_click,idfromList-Unsubscribe,List-Unsubscribe-PostandList-Id, of which only the list-id itself is kept). The unsubscribe URLs andmailtoaddresses, and aList-Id's phrase, links and addresses, are never kept.labels,raw_idand every dedupe key are unchanged; lines already in the record are not rewritten, so older lines lack both keys. A list header that does not parse is kept by its name and counted.
Added
- Close the week, on the week page and at the command line (RFC 0043 §8, slice D part 2): each goal open
on the Sunday with the five verdicts of
review goalas one choice, your words on it and the command beside it, and the two honest moves when it stalls (goal add --supersedeswritten out for the goal); the week's one proposal, or your own sentence, kept as next week's intention, onenote/v1labelledintentionon the Sunday. One press, one writer lock, every item checked before the first line: a refusal writes nothing.logbook day reflect SUNDAY --intention "…"keeps the same line, byte for byte; kept again in other words, it supersedes the first, never a second. Next week's mornings show the intention under For, in ink, with its Sunday, in place of the pencil (the week). - The Day page shows everything a day held, folded: under each stay or move, its messages by
conversation (who, the network, how many; each message's time, sent or received and its text,
the whole a click away on its line), and at the foot Everything this day held, every line of
the day by source, each linked to its line. Every fold is closed until opened, or
?open=1. - Today is the Library's front door (
/, RFC 0047 §4.1): the date and where you spent the night; what's open, the promises both ways in pencil, the day's tasks from the task tool and the replies owed, seven at most, the oldest first, each a link to its moment; one memory, this day a year ago, else the same date in the nearest earlier year with a signed reflection, a starred photo or a trip; and the Day's Reflect and sign. It works on a phone first, renders live, andexport sitewrites it astoday.html. - The doors share one header: the wordmark, Today, Life, People and Places (a bar at the foot on a phone), the Ask field, which searches the record, and the gear. Its stylesheet carries the owner's colours, and its typefaces (Instrument Serif, Inter, JetBrains Mono, under the SIL Open Font License) ship with the package and are served by the Library itself; nothing is fetched.
people askanddream personsend the days you spent together in the window (RFC 0036 amendment 2): each its date, theplaces.jsonname of the place you shared (a place with no namewhen it has none, never coordinates) and the references of the lines it rests on, under the same gate as the lines, so a sentence about time together cites them;people ask --jsoncounts them (days_together) (the relationship reader).logbook dream month [YYYY-MM]drafts a month once it is over, told from the days you signed (their drafts and your reflections, never a raw line's text), with where it went computed by the code (places, nights by class, people in order and never with a count), what the month shows for each goal, one proposal for next month and one question;logbook dream chapter [ID]drafts a chapter from the month and week drafts it spans: its arc, its rules, what it held and what it closed. Both are pencil, every sentence cited,--jsonprints the draft, anddream --catch-updreams the month before on the first close of a month and a chapter on the first close after it closes, again only when what it read changed.logbook export letter FROM TO: a range of your signed days read back as one HTML file to print or hand to someone, and the same as Markdown: a page per day, week, month or journey with the dream's story in pencil, your reflections, your stars and starred photos, your goal reviews, who was there and where;--unit month --cardmakes the month card. A crossing under the policy'sletterentry, recorded as onecrossing/v1line (the letter).logbook add gift DAY NAME WHAT [--received]writes what you gave someone, or were given: one note in your words labelledgift, the person underextra.recipientorextra.giver; a name that is nobody, several people or you is refused in one sentence.logbook people gifts [NAME] [--json]reads them back both ways (gifts).logbook lab companies DAY [--json]: the orgs the Manifest names that a day touched (an update mailed from one of their domains, a meeting with someone of theirs, a document in one of their repositories), each with its lines and the people of theirs on them, never a bare address; grouped by portfolio; status and portfolio only where tier 3 is read (companies).- The money slot's reader,
money.money_in: a window's transactions with merchant and amount (tier 3), and, when no payment source covers it,No payment source covers this day — the last ends <date>, never an empty sum. day sign DAY --keep N,Nandday reflect DAY --sign --keep N,Nkeep what you choose of the dream's draft before they sign: a sentence learned, decided or about an idea as a note, a proposed link as the entity linereviewwrites, the photo of the day as a star with its note.logbook day DAYnumbers them after the proposed events.--mend N="…"keeps a sentence in your own words,--revisit N=YYYY-MM-DDgives a kept decision the day it comes back, and--word WORDkeeps the day in a word, one a day. Every item is checked before the first line is written; one refusal writes nothing.- The plan answered at the close:
day sign DAY --done T,T --tomorrow T --let-go Twrites one note per task, labelledtask, with the Notion row, its line and the answer, for the agent that runs your task tool; it crosses with the signed day.show plannumbers today's tasks and marks the ones you answered, and a task's day is itsPlanneddate, else itsDuedate, unless the mapping names one. - Search in the Library:
/search?q=…inlogbook serve, under search in the navigation, finds the record's words through the functionlogbook searchcalls and holds every hit to the page's tier gate. Each hit shows its day (a link to the Day), its kind, an excerpt with the match marked and its line's id (a link to/line/ID); a hit a later line supersedes is marked as the command marks it,superseded by #N, with the last correction the gate lets through. The filters by kind and year and the pages of fifty are links, never state in the browser. An empty query is the form alone; a query with no hit says so in one sentence. A GET form only: nothing written, no script, nothing fetched, phone width first (search). - RFC 0044 (draft), local days: proposes that, behind a
local_dayssetting off by default, a day is the local calendar day where the owner was when it began (a flight west makes a long day, east a short one), and that a signed day keeps the zone and the span it was signed in and is never moved. Nothing changes in the readers yet. logbook lab hold census senderscounts, per sender, its mails withList-Unsubscribeand in Promotions, Social or Updates, in the report and its JSON (list_unsubscribe,tabs,lists_and_tabs); the terminal summary gives the totals and still prints no address.export share dayshares a day of a sealed record whose lines name an attachment: each sealed file is opened with this machine's identity, checked against its name and zipped opened, as the lines are; a store file that does not hash to its name, sealed or not, still stops the share (#320).export siteleaves a model's drafts (pencil) out: no Day page or Year pick carries a day's draft, its week's or a call's synthesis unless--with-drafts, which puts them in headed with their model, as the Day page heads them; the owner's reflection follows its own tier as before (the site).- A voice's name keeps its tier (RFC 0038): the name a reader shows for a voice bound to a person takes
the highest tier of the lines that give it, and a reading below that tier (a site, a vault, a trip
bundle, a gated Day) shows
a named voicein its place and names nobody in its company from that voice. - People's mail, one rule (RFC 0045, draft): a mail is a person's when
someone the record names as a person sent it to you or you sent it to one; no-reply addresses, agents
and companies are not people.
logbook people mail [--since DAY] [--until DAY] [--json]counts people's mail and the rest, never an address or a name in the terminal (people's mail). export crossingsends people's mail only and counts the rest asmail_held_back;--all-mailsends every mail as before, and the manifest says so (the crossing).- The owner's own phone may write through the Library behind Tailscale Serve, off by default:
logbook setup phone --origin https://<machine>.<tailnet>.ts.net --login LOGINnames it inlogbook.jsonafter a yes typed at a terminal, and the Day's Reflect, With, Star and Sign and the shelves' forms are then answered from that origin, that Host and thatTailscale-User-Loginas from this machine; a form from any other origin, Host or login is still a 403 with nothing written.--offremoves it, anddoctorsays on itsphoneline whether the phone may write and from where (from your phone, ADR 0024). - A form posted through Tailscale Serve, or any proxy (a
Hostthat is not127.0.0.1or[::1], or aTailscale-*orX-Forwarded-*header), is answered only as the phone's: a program on another tailnet device that sends noOriginis refused, the setting on or off, where before it was answered as this machine. Requests tohttp://127.0.0.1:8765orhttp://[::1]:8765from this machine are answered as before; one naming any other host,localhostincluded, is treated as coming through a proxy. logbook import pickup FOLDER [--write] [--source NAME] [--tier N] [--keep]moves a folder of call transcripts collected from the receiving side (the Purser's) into the record: one transcript line per file through the transcript adapter, each with its own source, its text stored, where it came from underextra.picked_up. A file already taken is skipped by its hash; a dry run unless--write, which removes each file taken from the folder unless--keep(the pickup).review receipts [--since D] [--json]proposes the receipt mails the record holds as payments, the money bridge until a payment source covers the day (RFC 0043 §12): a received mail from an order or no-reply address, or a domain an org of the Manifest binds, never a person the record names, whose subject or kept body carries an order or receipt marker and an amount with a currency, read by rules (CHF 1'234.50,€ 12,90,$12.90,NOK 1 840), the total over the line items, a refund as money in.--accept N,Nwrites one tier-3transaction/v1line each (source: receipts,extra.fromthe mail's line), a second mail of one payment in the same batch refused and counted;--reject None tier-3not-a-paymentline (receipt-review/v1), never proposed again; the queue never shows a sender's address, it names a merchant by its domain; a receipt another source already holds is shown and never written, and one a payment source delivers later is listed as covered, with the retraction that lets the source's line win (receipts).logbook searchmarks a hit that a later line of its kind supersedes: the row ends· superseded by #N, and--jsongives every hitstandingandsuperseded_by;--standingshows standing hits only, still filling--limit(search).- The dream learns (dream-day/4, RFC 0043 slice B): a day's draft holds the goodnight story, with its
last line about tomorrow computed by the reader and never written by the model; one answer per lens,
a question of
policy/questions.jsonmarked"ask": "day"(RFC 0027 amendment, at most five, never drawn by the digest, and— the day doesn't answer thisprinted by the reader); what was learned and decided; the ideas the day moved; one question where there were two; the photo of the day; and proposed links of a line to an idea or an org (draft/v1amendment 2). The material adds the chapter and its rule, the open goals and the named ideas and orgs with their ids, under the entry's ceiling; a figure the cited lines do not give marks the sentence unsupported, no number ever stands beside a person, and the draft's tier is the highest of every line it drew on, the goals and chapter included.logbook day DAY --jsoncarries the new parts. logbook dream day TODAY --eveningdreams today so far (extra.evening,extra.read_until); the catch-up still never dreams today. Kept lines (an accepted event, a kept sentence, the reflection) never make a day be dreamed again; after a signature only a line that arrived later does, and the reader shows what is newsince you signed, a proposal already kept matched by its fields and never accepted twice.- CI moves the tag
stableto each commit ofmainwhose every check passed; a machine that updates itself installs@stable(docs/install.md, "Following stable"). - The map: one offline OpenStreetMap file (a PMTiles v3 vector extract, a Protomaps build you put on the
home machine) drawn by the server as inline SVG, light and dark, no script and nothing fetched, the
OpenStreetMap attribution on every map.
logbook setup map PATHnames the file after reading its header (--offremoves it);logbook lab map render --bbox … [--track DAY]draws one to check by eye; for an unnamed stay the map proposes the named thing within 50 m. No page draws it yet (the map, RFC 0043 §11). show plan [DAY] [--json] [--coverage]reads the plan you keep in Notion back from the linessync notionwrote, for one day: today's open tasks (dated today, or overdue in the current sprint; five, the rest counted; between sprints, one line says no overdue task is shown), the current sprint and its dates and the next trip as a countdown, each row with its Notion link and never its text. It reads tier-1sync notionlines and nothing else. Which databases are which is aplanentry inpolicy/notion.json; without it, one sentence.--coveragesays how much of each database the record knows. Nothing is written, to the record or to Notion (RFC 0043 §9; the plan).- The week page,
/week/YYYY-Wwwinlogbook serve, read-only: seven ribbons, one a day, each a link to its Day; where the week went (the week draft's numbers, each with its lines; sleep and training only where tier 3 is read); each goal with what the week shows for it, the five verdicts and the command that gives one; the one proposal for next week, in pencil; the stale question, once; the people who moved, names only; the sprint and the next trip; Hold's census, counts only. Every Day and the Sunday's week draft link to it (the week, RFC 0043 §8, slice D part 1). - The timeline:
/timelinein the Library andlogbook show timeline [--day | --week | --month | --year | --life] [--json], the record's moments beside the map at five zooms. A moment is a stay of note with its place, time, the people confirmed apart from the proposed (each with its reason), its photos, what passed during it and, at tier 3 only, what was paid; the month and the year count the nights by class, and all years lists each place and vessel with who was there, by name only (the timeline, RFC 0043 §11-12). - A place's class (
home,family,aboard,away), the colour of its nights on the timeline, read from whatplaces.jsonalready says: a place of kindhome, a place taggedfamily, a night aboard an asset, else away. logbook doctor --attachmentslists the lines whose attachment the store lacks, by source.- What you heard (RFC 0046, draft):
sync heardstores the words of the podcasts and videos you played, oneheard/v1line beside each listen or watch, the text kept as it came in the attachment store: a feed's own transcript fetched once (WebVTT, SRT, JSON or plain text; at mostLOGBOOK_HEARD_MAX_FETCHESa run, two seconds apart, a failed fetch counted and not retried for a week), the transcripts Apple Podcasts cached on this Mac, and a video's captions from your own folder (YouTube documents no keyless way to fetch them). Opt in withLOGBOOK_HEARD. logbook show heard [--day D | --since D --until D] [--json]lists the texts with a one-line excerpt and their length;logbook searchfinds words inside them. A crossing or a shared page leaves every text at home unless the destination's entry inpolicy/crossing.jsonsays"heard": true.- Who was there, as commands and readers (RFC 0043 §11, §12):
logbook with --from D1 --to D2 NAMEstates a person on every day of a stretch, at each day's longest stay;people not-with,people lives-withandpeople lives-inare your word as one note each;review with --journey ID|--week YYYY-Www|--from D1 --to D2asks once who was with you over the stretch, the evidence in words, faces from your own camera only, answered with--accept N[,N] [--days D,D]and--not NAME;people city CITY [--trip ID]lists your people in a city, seen or not yet on a journey (who was there).
Fixed
export crossingships the resolution lines that name a mail's addresses (from,to,cc,bcc) and a transcript's participants (email, phone, provider id) inresolution.jsonl, as it did for a message's sender and a calendar guest; before, a mail or a transcript crossed with nobody on it named (the crossing, RFC 0005).- The Day's ribbon says the time before the entry (19:30 — Dinner with Per Hansen), so a clock time never follows a name in its tooltips or its screen-reader sentence.
- A draft is held to the entry it was written under: a person's draft (
dream person) to therelationshipentry, every other unit to thedreamentry. Once therelationshipentry'suntilhas passed, or itsmax_tieris below a person draft's tier, the MCP door holds the draft back and counts it,export crossingleaves it home (held_back_by_entry), anddoctornames it, whatever thedreamentry allows; a day's draft reads as before (the dream, When the entry changes). - Through the MCP door,
sign_daywithconfirm: "all"confirms only the page's lines at or under the door's ceiling, the ones the agent could be shown, and says how many above it were left unconfirmed (unconfirmed,above_ceiling: a count, never the lines).day sign --confirm alland the Library's Sign still confirm the whole page (RFC 0034 amendment 4; the MCP server). - A dream's sentence that puts a number beside a person's name is dropped, not only marked: the draft
keeps its slot as
held: a number beside a name, unsupported, with the evidence it cited underextra.held(a day's), soday, the Day page andexport site --with-draftsnever print its words. A sentence the number rule had already marked is held too. A day's, a month's and a chapter's dream (RFC 0043; the dream). dream daydrops a proposed event whose title, or a proposed link whose text or note, puts a number beside a person's name, counted asa number beside a person.export crossingholds every draft to the entry it was written under: a day's, a journey's, a week's draft and a call's synthesis cross only while thedreamentry allows their tier, whatever the member's ceiling, and one that stays home is counted inheld_back_by_entry, as a person's draft already was under therelationshipentry; a record with drafts and nodreamentry crosses none of them, and a video scene's draft, written on this machine under no entry, still crosses by its tier. Theexport crossingline that counts them now names the entry (the crossing).- Through the MCP door,
sign_daywithoutconfirmon a day not yet signed confirms only the page's lines at or under the door's ceiling, asconfirm: "all"does, and says how many above it were left unconfirmed (unconfirmed,above_ceiling: a count, never the lines).day signand the Library's Sign still confirm the whole page (RFC 0034 amendment 4; the MCP server). people askanddream personsend a day together only when the location lines behind the stay it names are at or under therelationshipentry'smax_tiertoo: the place's name takes the highest tier of the owner's location lines behind the stay and of the line that names the company, so atmax_tier1 a day at a stay found by tier-2 locations is held back and counted, never its name alone (the relationship reader).- The Library's Day page no longer crashes when the day, or a day it looks back to, has a flight
line with no arrival: such a flight counts as ending at its departure, and one with no departure
is skipped.
export vaultwrites it at its departure time. - The shelves listed (
/shelves, the Library's front page until Today took/) answer in a second on a record of millions of lines. The page counted the lines and found the first and last stamp in one pass over the whole index; it now reads the count from the record's head, aslogbook doctorprints it, and the first and last day two steps down the day index. The page reads as before; a record with a torn tail past its head (a crash beforelogbook repair tail) is counted to its head, asdoctorcounts it. Today, at/, makes no pass over the lines on the request either. - A journey's name is held to the tier of the line that gave it: the Journeys shelf and a journey's page,
read through a tier gate that stops at 1, no longer show a name given in a tier-2 note; the journey reads
as it would unnamed, by its dates and places, with nothing that says a name exists. At tiers 1,2, and in
serve, which reads every tier, the name shows as before. - Two Library pages asked for at once no longer fail on Windows when both save the same reading kept beside the index: each thread writes a temporary file of its own, and a save that cannot finish leaves the reading for the next one to make.
- A Library page read while a sync was between
logbook.jsonand the index no longer keeps that earlier reading as the record's: what the server shares between pages, the Day's readings and the morning's replies owed and revisits are kept under the head the index held, and the review pages' tables of observed people, orgs, ideas, assets and places are stamped with it, so the next page after the sync reads the new line. The tables live in the index, so a restart no longer kept the earlier one either. The page's footer and the built pages' record name that head too. - The Library (
logbook serve) on a record of millions of lines: a page asked again at the same head is answered from what the server kept (warm, under a second on every page), and the pages that read the whole record read it once per head for all of them. A night is found by bisection over the owner's stays instead of every stay once a day (the People pages, the World, Trips and Journeys); the people review compares only the pairs that share an address, a number or a name word; the Promises and Agents shelves stream the messages instead of holding them all. The pages are the same, byte for byte.scripts/bench_library.pymeasures every route on a synthetic record of millions of lines. index.sqlitegains an index on a line's id and one on the lines that supersede another; an index built before them is given them when it is next opened.serve: every form of the Library (Name this place, Sign, Reflect, Star, With, the review queues, the status forms) is answered in a real browser again. The pages were sent withReferrer-Policy: no-referrer, under which Chrome, Firefox and Safari post a form withOrigin: null, and the write gate refused it (403, nothing written); they are now sent withsame-origin, so a form names its own page's origin and no other site is sent a referrer. The gate is as strict as it was.- A payment with its mailed receipt is counted once. When you accepted a receipt in
review receiptsand your payment source then delivered the same payment, the Day's spend,rollup ledger,rollup money, a trip's spend and an org's money counted it twice until you retracted the receipt. They now count the source's line alone, on its own day, and name the receipt as its evidence (1 with its receipt). One card line covers one receipt, the nearest in time, in the queue's covered rows too. - A trip's spend reads a corrected transaction in the place of the line it supersedes, as the ledger does, instead of counting both.
- A receipt's merchant is never a raw email address: a sender with no name and no registered domain
(
x@localhost, an address with no domain) isa sender, and two such senders are two merchants. - A week draft's people are printed by name only, the most time together first, never with a count
beside a name (
with Kari Nordmann · Ola Nordmann, wascontacts Kari Nordmann 12): indream week,logbook dayandday --jsonon its Sunday, the Day page,export site --with-drafts, and for a week dreamed before as well. A chat among the week's threads is named without its count, and a title is quoted beside its count. The line keeps each person's name, id, lines and contacts (the week page compares the contacts to name who moved, and prints none), no longer the counts by channel or the days together; and the week's own sentences are held as the day's, month's and chapter's are: one that names a person and writes a figure is dropped,held: a number beside a name(dream-week/2; RFC 0043 §2.5). - The readers of a day, a week, an org and an idea set no number beside a person's name either: a
call on the Day (
logbook day, the Day page) reads19 min ← Ola Nordmann(was← Ola Nordmann, 19 min); a recording's voices are named in the order of who spoke most, without their minutes,you · Kari Nordmann and 1 unnamed; the digest'swithreadsKari Nordmann and 1 proposed; an org's and an idea's people (show org,show idea, the Library) readKari Nordmann, last 2026-06-12; the week's paper, the vault's People lists and the lab's chapters name the people, the most days first, without the days. export notioncounts a person's days together over their whole history in the record, not the export's window:days_togetherwithfirst_togetherandlast_togetherin the facts, and on the page "Tage zusammen: N (zuerst …, zuletzt …)", or no line at all when there are none. Before, every page said "seit" the window's first day, and most said 0 (export for Notion).export notionlists only the open promises said in the 365 days before the export, from a conversation the person is a direct party to (a one-to-one chat, a mail you are both on and no list sent, a call they spoke in), newest first, at most ten a side, then "und N weitere" (promises_morein the facts). Before, a page listed every promise of the window, group chats included.export notionleaves out a promise that talks of money without a figure (a payment, an invoice, a transfer, a price, in German or English) and counts it undersentences_with_money, as one with a sum.export notionlists only promises: your own and the person's own. A request is no longer listed, on either side; before, one the person made of you appeared under "Offene Versprechen von mir" (export for Notion).export notionlists only whole sentences: never a line quoted in a reply, a chat line pasted with its time stamp, or a run of more than 40 words without a full stop (a whole chat message).export notion --dry-runsays how wide the pages' two long sections are, in totals and never a name:pages: days together: N lines on N pages; promises: N lines (N listed, N more not listed).- The World's time slider ends on today, not on the latest line the record holds: one calendar entry
in 2055 no longer stretches it thirty years into the future.
--fromand--tostill reach any day, the future included. /gapsin the Library counts each silence to the server's own clock, so the same page read twice is the same page (the slow test that turnedmainred on 1dd86c2).- A sealed record keeps no reading of its tier 2–3 lines in plain text on this disk: the readings kept
beside the index, the review pages' tables of observed people, orgs, ideas, assets and places, and the
Library's built pages stay in the process's memory instead, and what an earlier version left there is
removed.
logbook serve --builtrenders every page live on a sealed record, to its end, and says why;serve --buildrefuses in one sentence, and the 06:00 close says the build is off."plaintext_cache": trueinlogbook.jsonkeeps them on disk as before,0600in the cache folder; off by default. The index's own columns stay as RFC 0029 §8 has them (sealing; RFC 0047 §15). doctor'sextra:*hints add the missing extra to this Logbook exactly as it is installed, or print no line (#334): this venv's pip (uv's pip in a venv uv made) at the installed version;pipx runpipin the venv pipx made, which keeps its Python, its options and its suffix;uv tool install --forceon the Python running now, at the installed version or git commit, with every extra already there, the index options and each companion at its installed version; in a checkout,uv sync --inexact --no-default-groupson the Python running now, which removes nothing and brings back no group. It prints no line and says in one sentence why and where in docs/install.md to read under Homebrew, beside a receipt it cannot read or one naming a password or token, where uv's receipt names another Python, where the source may have changed since (a folder, a URL, a wheel), outside a venv, and underuvxoruv run --with, whose environment is uv's cache.setupnever adopts the demo record: it says it is the demo, how to make your own (unset LOGBOOK_HOME, thenlogbook setup) and exits 2 without writing.logbook demomarks the record it writes ("demo"inlogbook.json); a demo 0.7.0 wrote is known by its owner (#334).initon a folder that holds a record says so in one sentence and exits 2, never a traceback; with no path it makes the record whereLOGBOOK_HOMEpoints, as every other command finds it (#334).doctor's hints name the current commands (logbook repair index,logbook setup places add …) (#334).logbook --helpsays where a newcomer starts;dreamnamesperson;init --helpdescribespathand--timezone(#334).show personcounts the open promises with the person (logbook promiseslists them), or says none open, in place of a note about RFC 0007; the MCPpersontool gives the same counts and command, under its ceiling, never a promise's words (#334).demo --outon a record says which--outto pick, and that an earlier demo may be removed (#334).setup's timezone question says in words which zone Enter takes and that the other is an example;setup places propose --top Nprints the total and how many it shows (#334).- What the Library says to someone reading the record for the first time (#334): the front page
links Promises, Goals, Agents and the World, as the navigation does; a Day the record holds nothing
for (
/todayon the demo, read months later) says so and names the record's first and last day, each a link;/gapsand/assetson a record that went quiet before yesterday say when, while every silence and age still runs to today; the Day'swithrow says "nobody confirmed; proposed below" when a row below proposes who was there; the headers of the Manifest, Ideas, Promises, Goals and Agents say "nothing read above tier N" or "no lines" for "tier N" and "tier -", the tiers explained on hover; the Manifest and Ideas say why what was seen and not placed has nothing to review, so the counts and the sentence under them agree. - The text of a trip's route names its places (
show trips,show year,show trip,/trips, the Journeys and a Journey's page): an unnamed stay isnear <place>, x kmor the nearest airport's city (Zurich), the coordinates only where nothing names it or where two stays side by side would read the same. The JSON keeps the label SPEC §3.2.6 gives.show yearnames an asset as it is registered ("aboard Nordlys", not "aboard nordlys"), andshow year --jsongives each trip'sasset_name. logbook servenever hangs: a page reads for at most--limitseconds (15 by default) and is then built in the background, said in one sentence; at most two pages are read at once; a browser that leaves stops its reading, and a broken pipe is no longer a traceback; an idle connection is closed.- A page read while a sync writes reads the record up to the last indexed line instead of rebuilding the whole index from under the sync.
serve --statussays "not answering" for a server that takes the connection and says nothing for 5 s, with the command that restarts it; the server's own watchdog leaves for its service manager to start it again, and the scheduled run restarts a service that does not answer.kill -USR1writes every thread's stack to the server's log.add transcriptstores the file a transcript/v1 JSON'scontentreference names when the export holds it (at the reference's own path,attachments/<sha256>or<sha256>beside the JSON; a spans file too), so Granola's and Fireflies' exports no longer leave a missing attachment behind. Bytes that do not hash to the reference are refused and counted; adding an export again fills the store for lines already in the record and writes no line (the attachment store).
Changed
- The Day page's morning looks ahead with what the record already holds: today's tasks from the task tool (five at most, each linked to its line and to Notion) and the next trip as a countdown in words; who you'll see, by name; one person to reconnect with, from the drift rule, in words and never the same person two mornings running; the week's one proposal, in pencil. Loose ends adds the replies owed for more than a week and the decisions to revisit on the day, which Looking back brings back too.
- The Day page takes one of four shapes from the hour: morning, live, evening (from
LOGBOOK_NOTIFY_EVENING_HOUR, and every past day not signed) and signed.?shape=shows another shape for reading. New parts, all read from the record: what the day was for (the chapter and the goals it touched), Yesterday, the ribbon of the planned beside the lived, Today, Loose ends both ways, People by time together, a birthday this week, Looking back 1, 2, 3, 5 and 10 years, and one line naming the parts with nothing. The record is folded with counts on each fold, the dream's draft is in pencil on ruled paper, and the page has a new look in light and dark. No model call and no new write. - The list of the Library's shelves, which was the front page, is at
/shelves, behind the gear. - Every page of the Library carries the doors' header (the wordmark, Today, Life, People and Places, Ask and the gear) in place of the list of fifteen links, with the door the page belongs to marked; the page's own look is unchanged. Every page's policy allows fonts from the Library itself and nowhere else.
- Today's What's open lists the promises said in the fortnight before today, as the Day's morning does, so a promise years old never fills it; every promise stays on the Promises shelf.
- A draft's proposals of a kind this reader does not know are counted, not malformed: the Day shows
the proposals of the kinds it knows, counts the others as
proposals_unknownin its JSON, and saysmalformedonly for a known kind of the wrong shape or a proposal with no kind; every writer still writes only the kinds it knows and refuses any other (draft/v1, forward compatibility, 19 Oct 2026). - A signature never confirms the dream's draft line (RFC 0043 §6 rule 3):
day sign,--confirm all,day reflect --sign, the Day page's Sign and the door'ssign_dayleave it out ofconfirmed, and naming it in--confirmor a disposition is refused. The page digest still covers it. logbook serveanswers every door and shelf from pages built ahead of time, at the 06:00 close and after every act on a page, instead of reading the record while you wait; a built page says when it was built in its footer. Today's Day is always current.serve --buildbuilds them now,serve --liverenders every page as it is asked for. The pages are kept beside the index, never in the record's folder, readable by you alone.- A new record names no one it may send what was said to:
initanddemowrite a policy file with the MCP door at tier 1 and nothing else. You add an entry for each destination yourself. A record whose file already names one keeps it. logbook serverenders every page as it is asked for by default again, with no limit on how long a page reads unless--limit SECONDSgives one, so the heavy pages (People, a person, the Manifest, the World, Promises) answer on a large record instead of Still reading. Pages built ahead are a lab,logbook serve --built(15 s limit,--limit 0none);--liveis still accepted. The 06:00 close builds the Library only on a machine whereserve --builtorserve --buildturned it on, and otherwise sayslibrary: not builtin one line. docs/serve.md lists what the built pages do not do yet.export share dayrefuses a day that holds sealed lines (a tier-2 or tier-3 line of a record with recipients, at a tier the page would send), in one sentence and before anything is written: the page carried them opened, and the receiver'simport pagerefused it because their hashes cover the sealed reference. A sealed day shares after v1, when a page can carry sealed lines to the receiver (RFC 0029); a day whose only sealed thing is an attachment still shares, its file opened as before (#364).- The Library's build renders what the lines since the last build touched: every door, a Day only when
a line landed on it, a journey only when it holds such a day.
serve --build --fullrenders every page, and is never needed in normal use. - The people of the whole record, the promises and each person's last real contact are kept beside the index between readings and brought forward by the lines appended since, instead of read again from every line: on two million lines a person's page reads in seconds rather than minutes. A resolution, a retraction, a corrected line, a backfill or a changed setting reads the whole record again, as before.
- The world keeps each year before the current one beside the index and reads only the current year again, unless a line comes for an earlier year's days.
- The Manifest and each org's page read the org sightings and touches kept beside the index and the lines appended since, instead of every mail, meeting and chat.
serve --buildnames the five pages that took longest to build.- The agents' shelf keeps which lines are a session's beside the index and streams only the messages appended since, instead of every message of the record.
- A year's trips and journeys are built again only when a line lands on the days they were read from (a journey that ran on past the year included), or a draft is written.
- The People page's year so far is brought forward with the record, and a closed year's ranking is kept until a line lands on its days.
- The world reads its tracks and stays from the index rather than from every line of the year, and counts the lines it holds back in one query: the same page, in a third of the time.
- Gaps keeps every source's activity beside the index and adds the lines since; of two equally long silences it names the first.
- A year's trips and journeys read only the lines a trip is made of (flights, weather, events, transcripts, notes and photos) and the stays from the index: the same pages, read faster.
- A build of a large record renders its pages on several processes, the doors first, side by side
(
LOGBOOK_BUILD_WORKERSsets how many). - Places keeps the owner's stays and what the lines name beside the index: a day reads the owner's track from a month before it, and the names of the lines appended, rather than the whole record.
- The People page's review queue keeps each kind's observed people beside the index and reads only the lines appended since.
- The ideas keep which lines name an idea beside the index, and read those and the lines appended since rather than every event, page, task and call.
- Who was there, the owner's answers:
people city CITY --trip IDtakes the journey (--journeythere still works until the release after 1.0, saying once that it is now--trip;--journeyispeople nearby's alone);review with --accept N[,N]takes the queue's numbers like the rest ofreview, each printed on a line of its own under the person, and a name there is refused; the longest stay a stretch's day is stated at counts its waking hours only, fromday_startto midnight;review withrefuses every option it does not take,--sinceincluded (who was there).
Docs
- The pages a newcomer reads first agree with 0.7.0 (#334): install.md prints 0.7.0 and names the
sealedandstreamextras and whatspeakerscosts; the tour uses the current command names, names its stores with--onlyand has its Docker and Nix lines; first-hour.md's check-up is the eighteen checks; serve.md lists the Promises, Goals and Agents shelves; try-it.md's samples are what 0.7.0 prints; index.md's RFC link works; and the release notes have 0.7.0. - The README is shorter and opens on a day; a new FAQ answers six first questions, each with the files that back it; Try it ends in the browser; RULES.md and SECURITY.md say what the code does about other people's words and the default tiers.
- RFC 0043 amended after the task tool's agent read it: a task's day is its
Planneddate, else itsDuedate; let go closes the row with a status of its own, never the task tool's archive or trash, and tomorrow moves the planned day, never the due date; the week page's 90 days count only the owner's own edits, from the row's first line; the agent carries out a verb only on the row as the line saw it; an agent's meeting proposal shows under with as a proposal; a crossing that carries a signature carries the lines it gives a disposition to. - The
show tripssample in the five-minute tour and the Year's trip rows print the route asshow tripsprints it,route Zurich, andaboard Nordlys; the Year's JSON names each trip'sasset_name; RFC 0043 marks as proposed what main does not do (the folded draft, promises to you among loose ends, transcript consent,--keep) and says that Sign already writes delegations as notes. - The launch post says encryption at rest for tiers 2 and 3 is built and off until
logbook key initturns it on, with the envelope plain and older backups still plain, as SECURITY.md does; the adapter bounties no longer list Mac Screen Time, whichscreentimereads.
0.7.0 — 2026-10-18
Fixed
- A stop becomes a stay only through an event that happened somewhere: one that carries a
locationorattendees, or comes from a calendar (ios-calendar,ics) or Google Home's history. A Notion page edited or a Drive file changed (by you or by someone else on your file) inside a ten-minute stop no longer makes it a stay; the Day still shows the edit under the stop.derive stays,day,days,tripsandplaces proposeagree (the Day, What makes a stop a stay). sync gtaskswritestask/v1(RFC 0016), notevent/v1: the Takeout Tasks adapter's own mapping, sourcegoogle-takeout, sologbook tasksreads a task seen live and a Takeout export of the same tasks writes nothing, whichever comes first. A changed task is a new snapshot superseding the last; a done one carries how long it was open (extra.open_for_s); the notes stay a digest. A record that ransync gtasksbefore this fix keeps theevent/v1lines it wrote (they promote no stay);logbook sync gtasks --since 2000-01-01T00:00:00Zonce writes every task as it stands.syncreads a live source's own lines by the source it writes (gtasks→google-takeout,gmail→mail), so a firstsync gtasksafter a Takeout backfill carries on from its newest task.doctor'slast-runwarns when the schedule is installed both for you (the agents or user timers) and for the system (--install-schedule --system's daemons or units): every run would happen twice. The last run is read the same whichever install wrote it (the schedule).dream --catch-up, which the 06:00 close runs, synthesizes only the calls of the last 7 days (by the call's own start on the record'sday_start), never a record's whole backlog of transcripts at once: an older call without a synthesis is counted and named in one line (N calls before DAY not synthesized; run …) and sent only when you ask, withdream --catch-up --since DAYortranscript synthesize --day DAY. The close never passes--since; the days it dreams are unchanged (the last 14).doctorhas asynthesisline counting the calls without a synthesis inside the week, before it and above thedreamentry's ceiling (the synthesis of a call).promisesnever reads a line you pasted back into your own turn under an agent's own name (Claude: …,Claude Code: …) as your promise: it is the agent's, as a line underassistant:already was.claude-sessions: an older copy of a session (a backup, an earlier export) added after a newer one is never written back over it; it writes nothing, as an unchanged session does.export crossingbuilds every bundle in a fresh folder beside--out DIR, checks it against its own manifest and renames it into place, replacing DIR whole. A second export into the same folder used to overwrite only the files it wrote, so a tier-1 crossing into the folder of an earlier--tier 1,2one left the earlierresolution.jsonland tier-2 attachments beside a manifest that said there were none. The manifest now lists every file of the package underfiles(path, sha256, bytes). A DIR that exists and is not an earlier bundle is refused before anything is written, unless--force; the record, a folder that holds it and any path in it outsideexport/are refused even then. A failed export leaves DIR as it was.export trip-bundlewrites the same way and takes--forcetoo (the crossing).- A portfolio typed in an org's status form comes back typed, in its field, when the form is sent
again after a busy
409; it came back hidden. - The dream,
transcript synthesizeand thedoctor --packetprobe can now use a model that refuses any temperature:LOGBOOK_DREAM_TEMPERATURE=nonesends the request with no temperature field, a number from 0 to 2 is sent as given, and unset keeps0.2, so an existing setup sends what it sent before. Anything else is refused, naming the variable. An HTTP 400 that names the temperature now saysset LOGBOOK_DREAM_TEMPERATURE=none for a model that takes no temperature; the request is never retried without one on its own. The packet'sdream endpointsection names the temperature that will be sent. - A draft follows the
dreamentry ofpolicy/crossing.json, not only the head: a draft above the entry'smax_tiertoday (the ceiling lowered, theuntilpassed, the entry removed) is no longer shown on the Day, onserve's Day page or through the MCP door, though no line was appended. The Day sayssuperseded by policyand why in one row, and nothing of the draft's text (draft_withheldunder--json); the door holds it back from every tool and counts it with the lines above its ceiling;doctorwarns, naming the days. Every draft now records the version of the entry it was dreamed under (extra.policy_version, the SHA-256 of the entry'smax_tier,untilandmodel), anddream --catch-updreams a day again when its draft is above the entry or was dreamed under another version of it, superseding the old draft; an expired entry still dreams nothing. The old draft stays in the record (the dream, When the entry changes; ADR 0016). - A source's first scheduled run reads its last 14 days, not its whole history. A live source added
to the schedule started from nothing, so the first
sync --scheduledwalked everything it held (a Drive activity walk of 1.25 million entries spent the account's API quota for the day). Now a source with no watermark yet reads the record's last 14 local days on its first scheduled run, keeps its watermark, and says so in one line with thelogbook sync <source> --since <date>that reads the rest. The next scheduled runs carry on from the watermark, or from the same instant while there is none, so nothing is skipped or written twice.sync <source>andsync --allby hand start where they always did, and--sincealways wins.doctornotesfirst run bounded to 14 days; history not readon the source'ssync:line until a run reads back past it (--since,--restart) (the schedule).ais,adsb,telegramandweatherread no history and are never bounded. - A dry run stops on one line at the source's quota or rate limit instead of waiting it out:
sync: drive: dry run stopped at the source's limit after 0 lines: HTTP 429: …, exit 1, nothing written. The Google sources,notion,github,granolaandadsbsay so; a run that writes waits the limit out as before. sync mail --sinceon a folder with no mark yet and no message from that day on marks the folder at its last message, so the next run no longer reads the whole folder;sync github --sincemarks a repo with nothing from then on at that time, so the next run no longer reads it from its beginning; a firstsync gmail --sincethat finds nothing keeps its time as the newest date, so a later list by date (after Gmail drops the history id) starts there, not at the first message.- The health export reader (the CSV reader the Withings, MyFitnessPal and Google Takeout Fit adapters share) no longer emits an empty row for a degenerate file. A row with no text under any column the header names — its only text past the header, or under a blank name — is skipped as a blank row is, so such a file reads as an empty export does: no lines and nothing counted, where each such row was counted as a bad date or a bad start. A column name the header repeats keeps the last cell with text under it; a blank or missing cell under the repeat no longer covers the text. Found by the reader's property test.
review ideano longer counts a Notion row'srelationsline (sync notion --relations-backfill) as one more line of its idea: a relations line links a row to others and touches nothing. The observed table is rebuilt once.- One email is one line, whichever road brought it:
add mail(a Takeout mbox),sync mail(IMAP) andsync gmaileach skip, before they write, a message the record already holds by itsMessage-IDfrom any of the three, and say so per mailbox (3,412 already in the record from mail (an import without --account)), dry runs included. A Takeout added without--accountwas keyed<Message-ID>and the live roads<account>:<Message-ID>, so a sync over a period the export covered wrote every message a second time.payload.message_idis now the id normalised (brackets and surrounding whitespace off, the domain part lower-cased, the part before the@as written) and a message the record holds under another spelling is found among the lines of its days; a copy in another of your mailboxes is still a line of its own (RFC 0015 rule 1, amended). Nothing written is touched; a message without aMessage-IDis keyed by its bytes and dedupes on its own road, as before, and so is one whose id has no@(unknown), never a key across roads.Message-ID: <>now counts as none instead of folding every such message into one line: a Takeout holding such messages, imported before, writes each of them once more on a re-import, one of them a second copy of the line the old key kept (Mail). - The health row lost the record's
day_startfor every line read after the first sleep stage. - Under a
day_start, the Day showed no weather: a weather line starts at midnight, on the page of the day before. The Day now takes it by its own day. - The Day shows a Notion row once when
sync notion --relations-backfillsaw it again: the backfill'srelationsline folds into the page's own line on the day, which stands for both (--jsonlists both ids underlines,notionits one source). It showed as two rows indayand on the Day page oflogbook serve, and counted twice in a stay's attachments underdays.showlists both lines, as it lists every line (the Day). logbook sync notionno longer stops at a page that holds a block Notion's API withholds from integrations, such as an AI block: reading its blocks answered 400validation_error("Block type ai_block is not supported via the API for your bot type") and the whole run aborted, on a real workspace a thousand pages in. The page's line is written withextra.body{"unavailable": "withheld"}in place of the digest and word count, never a digest of part of the text; the summary, the dry run's too, saysalso N pages with blocks the API withholds; the block type is named once a run on stderr, never the page. A block deleted while a page is read (404) marks the body{"unavailable": "not_found"}and is counted aspages with a block deleted while they were read, where before the body was left off without a word. Any other 400 still stops the run on one line with the watermark kept.words_deltacounts against the page's latest line that has a word count.scripts/check_pii.pyreads a commit range: run bypre-commit run --from-ref A --to-ref B, as a merge desk runs it over a pull request, it checks the linesgit diff A..Badds instead of the staged diff, which is empty then, and no longer reports Passed having checked nothing.--tree REFchecks every line of every file tracked at REF, for a sweep of a whole branch. Every run ends with one line of counts,check-pii: 18 patterns, 9879 lines, 0 matches in …, shown on a pass too; no patterns file, a file of comments only, or nothing to read is that line as a warning. A match names the file, the line and the pattern (its first named group, or its line in the patterns file), never the text.sealandmigratenow refuse a record whose original hashes do not verify:key seal --allandrepair migratecheck every hash, under the rule the record was written with, and every link across the whole record before a line is rehashed, verify the new files before they replace the old, and on a failure name the first failing line and its id and change nothing.- A day signed again keeps your confirmations:
day sign DAYand the MCP toolsign_day, without--confirm, keep what the standing signature confirmed, its dispositions and its note, as the Day page's Sign again andday reflect --signalready did; a line added since stays unconfirmed.--confirm allconfirms the whole page (RFC 0034 amendment 4). - A line superseded twice reads alike everywhere (#321): a superseder that is retracted supersedes
nothing, and a line stays superseded while any superseder not retracted stands, in the index and so
in
show,review speakers, the voiceprint registry and every reader that asks it; the MCP door marks a transcript heard again asshowdoes. logbook serve: when a sync moved the head and left the index stale while the server ran, requests that arrived together each started their own rebuild of the index and all but one failed withdatabase is locked. The index is now brought to the new head once, under a lock, by the first request after the head moves, and the others wait for it.day sign --at(andsign_dayandday reflect --sign, which sign through the same code) checks the moment against the day's start underday_start, by the rule the index puts every line on its day by, rather than against midnight: with the day beginning at 06:00, a moment at 01:30 signs the day before and is refused for the date it falls on, which has not begun, so a signature never covers a page that starts after it. A signature already in the record is never checked again.status KIND ENTITY DISPOSITION --reason "…"for an idea, a place or an asset writes the reason'snote/v1first and then thestatus/v1line, whosenotenames it, as RFC 0037 §10.5 says; it wrote them the other way round, the note naming the status underextra.statusand carrying the disposition. The note now carries the words and the entity only. A pair written the old way is read the same, andstatus list --jsonnames each status's note (note). An org's status is unchanged: one tier-3 line, the reason on it, no note (the profiles).- A crash between the fsync of an appended line and the replacement of
logbook.json(SPEC §3, write order) left the files one line ahead, whichverifyreported; the recovery this documented,repair indexthen append, then wrote a second line of the same seq, the index refused it withUNIQUE constraint failed: lines.seq, and the record held a fork.appendandappend_manynow refuse under the writer lock while the files end pastlogbook.json, or at its seq under another head, in one sentence naminglogbook repair tail, and write nothing.repair tailchecks every line past the head asverifydoes (envelope, seq, prev, hash, timestamps, a sealed line opened when the identity is here) and only then setslogbook.jsonto the last of them and extends the index, in that order;--dry-runlists the tail and what would be done; a line that does not verify, the files behindlogbook.json, or the same seq under another head makes it refuse with the first failing line and change nothing. The gate ofkey seal --allandrepair migratechecks timestamps too now, asverifyreports them. - A writer waiting for
state/writer.lockno longer dies withFileNotFoundErrorwhen the holder's release removesstate/between the waiter's making the folder and creating the lock: it makes the folder again and tries again under the same rules, so a lock another writer took in the meantime is still waited for, or refused under--no-wait. Seen once on Windows CI. dayandserveshow one calendar entry once when two calendars carry it (ios-calendarandics, or two calendarsgcalwrites asics): starts less than a minute apart, the same duration or one side all-day, the same title or flight. The richest line stands and names the others,×2 sources (ics, ios-calendar); the fold is at read time, every line stays (docs/day.md).- A move names an airport pair (
OSL → ZRH) only when it is a flight: its speed and distance are a flight's, or a flight line covers it. A car move between two points near an airport no longer printsZRH → ZRH. verifywalks the attachments the lines name (SPEC §1.1), as it always said it would and never did: a file the store does not hold is listed underattachments:with the first line that names it and is not an error; a present plain file whose bytes do not hash to its name is an error naming the line, hashed by default (--no-attachment-digestsleaves present plain files unhashed on a large store); with the identity, a sealed file is opened and a plaintext that does not hash to its name, or a file that does not open, is an error, which no flag skips. A missing file, a corrupted plain one and a sealed one swapped for valid ciphertext of other bytes all passed before.doctorlooks for the same files and counts the missing ones in itsrecordline, without hashing them.- Timestamps must be RFC 3339 instants.
appendtook anyat,endorrecorded_atending inZ, sonot-a-dateZwas written,verifysaid nothing, and the index rebuild then failed; it refuses one now, andverifyreports one a line already carries as an error naming the line. A valid stamp is still written exactly as given (it is hashed as written), and one with a numeric offset is still converted.
Adapters
telegram:logbook add telegram-export <folder>reads Telegram Desktop's JSON export of your bot chats (and nothing else: a chat with a person, a group or a channel is counted and never read) → onemessage/v1line per message, your words as yours and the bot's markedextra.machine, the bot as every line's counterpart (extra.counterpart, an observed entity of kindagent), media referenced by its path and digest and never copied, a forward marked as one.logbook sync telegramreads your own bots over the Bot API (LOGBOOK_TELEGRAM_BOT_TOKENS,LOGBOOK_TELEGRAM_OWNER_ID), read-only:getMe,getWebhookInfo, andgetUpdatesonly when something is pending, never an offset (no update is confirmed, so your bot still gets every one), never a method that sends or changes; a message from anyone but you is counted and never written; a bot on a webhook is one line and is left alone. Both write the same line under one key, since Telegram gives one message two ids, yours and the bot's.claude-code:logbook add claude-sessions ~/.claude/projects→ onetranscript/v1line per Claude Code session, your turns asownerand the assistant's as a participant marked machine, the text stored once under its digest; tool calls counted by name and their output never kept, nor a subagent's conversation, a compaction summary or thinking; words counted per side; the session, project and working directory underextra. A session that grew is a:v2line that supersedes the one before.immich.placeasks the server for one asset's place by id, andapple_photos.placesreads the places Photos named for given assets from a library, its schema confirmed first.takeout-locationreads the Semantic Location History of a Takeout archive (placeVisit, which carries the place's name and address, andactivitySegment), and the iPhone's own Timeline export (location-history.json, a top-level array); the docs give the steps to export Timeline from the phone.immichkeeps the city, state and country Immich gave a photo underextra.place;apple-photoskeeps the address, city and area names Photos gave it (ZREVERSELOCATIONDATA) underextra.place.
Changed
- An agent is never a person (
docs/adapters/agents.md):people,person, drift, the company of a stay andpeople reviewpass over a conversation with one of your agents and a transcript participant marked machine, whatever its name;promisesreads only your own words in it (a bot's message and a forwarded one are counted underskipped); the dream marks an agent's words for the model and its prompt says agents are not people (dream-day/3). - The MCP tool
note_daywrites through the same note path asday reflect(logbook/core/notes.py); what it writes is unchanged. doctorchecks five extras:extra:speakersjoinsais,crypto,sealedandtranscribe, a pass when pyannote.audio is installed and a warn withpip install "openlogbook[speakers]"when not. It is asked by the installed distribution, so neither pyannote nor torch is imported to find out. A machine with[transcribe]and without[speakers]now has that one warn (the doctor).- The
notionentry's example in export for Notion has nowritekey, as the refusal that names the entry has none: left out,writeis the empty list it must stay, and an entry that spells out"write": []is read the same. people review --rejectwrites anentity-review/v1line of type person; apeople-review/v1line is read as the same no, forever.setup places review --reject, and the Places page ofserve, write the pair as anentity-review/v1line of type place, andstate/places-review.jsonis a cache rebuilt from the lines.--migrate-rejectswrites the pairs the file held before as lines, once; until thenreviewsays how many are not lines yet.- What the sources saw is one table in the index,
observed_entities;observed_peopleandobserved_placesare views over it for one release. The index is rebuilt once, on the first command after the upgrade. sync githubandadd github-export: a line from a private repository is tier 2, with the reason on the line (extra.tier_reason:private repository), so an issue's text, a review and other people's comments in a private repository no longer go wherever tier 1 crosses by default; a public repository's lines stay tier 1. The live sync reads each repository's ownprivateandvisibilityfrom the answer it already asks for (GET /repos/{repo}, orGET /user/reposwith--all): public only when the API says so, so an internal repository is private too. The account export's mark per repository is used where it exists; a clone says nothing of its visibility, so its lines, and those of a repository the export does not mark, are tier 2 (repository visibility not known) unless you passadd github-export DIR --publicfor that run, which never overrides a repository the export marks private. A visibility that changes applies to the lines written from then on; a line already in the record is never rewritten, and the same commit or issue read again at the other tier is the line already there, never a second one. In a record that seals (RFC 0029) both need the identity to write, a tier 1 line too, since only the identity sees an act the record holds sealed; without it they refuse on one sentence before asking anything (--dry-runneeds none).- One Google sign-in for every Google source (
service_account): the key file and the user from the two existing variables, a read-only scope per call, an hour's token held in memory and never written to disk; no refresh token anywhere. The tour's new Google, on one key names the five scopes, gives the one setup and says which sources it covers; the mail page says when to use IMAP (any mailbox) and whensync gmail(Gmail on your own Workspace). doctor'ssync:<name>line names the variables a source reads, and a source with two ways in (gcal) says what to set in words.sync --allrunsmeetandgauditaftergtaskswhenever the Google key is set. A key delegated before this release lacks their two scopes: add them in the Workspace admin console (the tour, Google, on one key, step 4) or switch the two sources off inpolicy/import.json, or each scheduled run reports them failed.review ideasees a repository in two more places: an actsync githubwrote (its own link, else its repository on github.com: a commit, a README's version), and a task's ownurlbeside its links.- A bot's line is nobody's (the owner's decision of 14 October 2026): a line whose actor is a bot
(
sync notion'sbot,sync github'sBot) or whose words an agent wrote (extra.machine) is never a touch of an idea inreview idea, never a person seen on one, and adds no words to one; an agent among a call's participants is nobody, whatever address it joined under. - RFC 0037 §4.3, amended 2026-10-16: a database row is its own root. A row of a Notion database
(its lines carry the row's
database) is an idea of its own inreview idea, never folded into the page above the database; a page under a row is the row's. review ideaproposes a Notion database row as an idea only when itsTypeselect saysIdea(the owner's decision of 14 October 2026), as the row's latest line withextra.propertieshas it; a page under a row of another type is not proposed either, and a page that is no row is proposed as before.idea_rowsinpolicy/entities.jsonnames another select and option ({"property": "Kind", "value": "Spark"}, case aside).sync notionalready writes the select's name and option on the row's line, and nothing else of it.serveanswers a busy record one way: while another command holds the writer lock, every act of the Library (the Places, Journeys and People forms, the Manifest's review and status, the Day's Reflect, Sign, star and with…) is a409with one sentence, Another command is writing to the record; nothing was written. Try again in a moment., the command that holds the lock, and the form you sent kept to send again (a recording is chosen again). Nothing is written.- Every page
serveserves fits a phone's 400 px column: on the Day, the days, trips, places, assets and gaps a wide table scrolls inside its own box, and the Places queue's maps and the World page's canvases keep to the column. One test walks every page from/and holds each to it, the Day among them. serve's navigation wraps on a narrow screen and names journeys and people (/tripsstays, from the front page). A draft of a journey (RFC 0036,unitjourney) is read by its id: asubjectthat is the trip's id, or an array naming it. It follows thedreamentry as a day's draft does: one above the entry'smax_tiertoday is not shown, and the journey's row and page saysuperseded by policyand why, nothing of its text.logbook serve's navigation wraps on a narrow screen instead of pushing the page wider than a phone's 400 px column; the Day page, its new forms included, holds that column without scrolling sideways.logbook day signreads the page and appends under one hold of the writer lock and re-reads the head before it appends, refusing when another writer moved it.logbook sync weatherasks nothing unlessLOGBOOK_WEATHER=1is set, by name as insync --all: it is the source's one setting. Unset, the command says so and exits 2 without a request. The first run asks about yesterday alone, no longer the record's whole history (--sincebackfills), and the week's lookback never reaches before the first day a run covered (docs/adapters/weather.md).logbook sync notionrecords a database row's database and its relations. Every line of a row carriesextra.database({id}), so a reader can tell "a row of Notes" from the record alone; the line that holds the row as it is (the one with the body's digest) carriesextra.relations, each relation property as{name: [page id, …]}— the ids of the rows it links to exactly as Notion gives them, in its order, never their titles, bodies or rollups, and no related page is ever looked up. RFC 0009 has no field for links between entries, so they go underextra. A relation is a change like any other: an edit that only links or unlinks writes its one line, withextra.relations_changed([{name, added, removed}]) saying which relation gained and lost which ids since the row's latest line with relations; a reorder is no change, and a re-sync of an untouched row writes nothing. A relation of more than 25 links, which Notion serves cut short, is read whole from the page property endpoint; when that fails the field is left off the line and the row counted (rows whose relations could not be read whole), never the first 25 alone. Lines written before keep no relations; a row gets them with its next edit.logbook sync notion --relations-backfill [--since DAY] [--dry-run]writes them now: one line per database row whose relations the record does not hold yet (or whose links changed from the other side of a relation with its edit time left alone),extra.actionrelations, dated at the row's last edit,raw_id<page id>/<day>/relations, with the row's reference, path, parent, database and its relations as the backfill reads them, and no body, property or actor.--sincetakes a local day;--dry-runcounts the rows. A row the record holds no line of is left to the next sync; the watermark is never moved. The same pacing as the sync, three requests a second; a rate limit that does not lift stops it on one line, exit 1, the lines already written kept, so running it again finishes the job. A backfilled row shows once more in its Day, at its last edit.review orgsees an org in two more places: a transcript participant's address, and an actsync githubwrote (its own link's code-host org, else its repository's on github.com). A calendar's rooms and a code host's relay (resource.calendar.google.com,users.noreply.github.com) name no company, and your own code-host account (agithub:handle inpolicy/owner.json) is yours, never an org. A person's own account is hintedpersonal, and a family's domain is one whose names are each a given name the address itself spells (kari@"Kari Nordmann"), so a newsletter in its own name ("Nordmann Nytt",news@) is a company. The observed table is rebuilt once.- The diarizer is its own extra,
openlogbook[speakers](RFC 0038, open question 13):openlogbook[transcribe]brings the Whisper engine and nothing of pyannote.audio, torch's diarization stack or CUDA; voices needopenlogbook[transcribe,speakers]. Without itderive transcriptstranscribes as before and saysspeakers: not separated (install openlogbook[speakers], then logbook setup speakers --fetch-model);setup speakersandderive speakersexit 2 with that sentence. A machine that installed[transcribe]frommainfor its voices addsspeakers. - SPEC 0.4: §3.2.3 rule 5 says what #263 made the reference do. An event makes a stop a stay only when
it happened somewhere: it comes from a calendar (
ios-calendar,ics) or Google Home's history, or it carries alocationorattendees. A page edited or a file changed promotes nothing and is not counted inattached; transcripts, notes, calls, messages and photos promote as before (ADR 0023). A reader's rule, not the format: a record still nameslogbook/0.3, and no conformance fixture or head changes. SPEC gains a version history. logbook --helplists 31 commands on 48 lines:star,unstarandwithjoin the write group.export crossingcarries a star only beside its line, asexport share dayand the trip bundle do; and every crossing carries a photo'smemorykeeper (your star on it, or the library's favourite) only beside its photo, so a favourite whose photo stays home stays home too.- A keeper that names an earlier one in
supersedesreplaces it, as SPEC §3.2 defines a standing line. - A live source's
pullmay takerecorded(its own lines from the day beforesinceon, for a source that folds several items into one line or writes snapshots), and a live adapter that writes under a file adapter's source names it asSOURCE, whichsyncthen reads its own lines by. - A live source's
pullmay takeexisting(which of a batch of keys the record holds),owner_emailsandnotice, and may keep a lasting resume state through the checkpoint keeper (RESUMES), described per folder after the summary. - The test suite drops every
LOGBOOK_*variable the shell exported before a test runs (the live sources' hosts and keys, the dial prefix, the notifier's token, a backup password), so a developer's shell can no longer changedoctor's output under a test. - A live source's
pullmay takeprevious: the payloads the record holds under a raw_id prefix, in chain order, for a source that keeps no history of its own.
Added
claude-export:logbook add claude-export <zip>reads the Claude apps' data export (Settings → Privacy → Export data; the zip as it came, the folder it unpacks to, or itsconversations.json) → onetranscript/v1line per conversation in the shape and tier of a Claude Code session: your turns asownerand the assistant's as a participant marked machine, the text stored once under its digest, words counted per side; the conversation's id, its name as the title, its project's name and its created and updated times underextra. Files you gave or uploaded are named and counted, never copied (the text the apps extracted from them never read); tool calls counted by name, their input and output never kept; thinking never kept;users.jsonnever opened; only the branch a conversation stands on when the export links its messages; the thinking and the artifacts an older export writes inline are dropped, never kept. A conversation that grew is a:v2line that supersedes the one before; an unchanged one writes nothing, nor does an export older than one already imported; a malformed one is skipped and counted;--dry-runsays how many conversations, new, grown, unchanged and older.people,promisesand the dream read these lines as they read Claude Code's: your words count, the assistant's never (docs/adapters/agents.md).- The Day page of
logbook serveshows a row's photos as a strip under it, starred first: a thumbnail for each photo whose pixels the record's own attachment store holds (/photo/ID), the rest counted, never a broken image, and nothing fetched from a photo library (In a browser). - A photo review at the foot of the Day page: the day's photos with no star, each with Star (its
memorykeeper) and Not a keeper, which stops the review asking and writes no line (state/photo-review.json); both answer409while another command writes, as every act does. - The Day page draws the day's track from the stays' own coordinates, an inline drawing with no map
tile; links every row that is a line to
/line/ID, the line as written, read-only and through the page's tier gate; shows the week's draft on its Sunday and links to it from the other six days; and says in one sentence under the header what crosses where. - Many edits of one Drive file read as one row on the Day page, the file's name and what was done to
it counted (
Budget 2027 · 5 edits, 2 comments);logbook daylists each line as before. logbook with DAY NAME…and the Day page's with… field say who was there on a day no device saw, the night the phones were off: the same line from either, and the page says why it saw nobody.logbook day reflect YYYY-MM-DD: close the day in your words. The reflection is typed (--text), heard on this machine (--audio FILE, theopenlogbook[transcribe]extra, refused with the install hint without it), recorded from the microphone on macOS (--mic SECONDS, with ffmpeg), or the day's Wispr Flow dictation that begins with the word "reflect" (offered as a draft and written only when you confirm it, or with--from-wispr [SEQ]). It is onenote/v1line on the day, tier 2, sourcereflect,reflectionin itslabels, printed back a sentence a line. Rules only, no model, read it with the cue tables ofpromises: your commitments, delegations to a named counterpart ("ask Ola to ...", "Ola should ...", "Ola soll ..."), and what became of the commitments on the day's page (kept, missed, dropped, carried; matched by token overlap at 0.5), all printed as numbered proposals and none written until you accept it.--signwith--accept N,N(or one y/n each on a terminal) writes the accepted delegations asnote/v1lines labelleddelegationand signs the day throughsigning.sign, the reflection among the lines confirmed, the accepted dispositions in the signature and--atthe moment you spoke; a day signed before is signed again, keeping what its signature said.--dry-runwrites nothing.dayand the Day page ofserveshow the latest reflection in a section of its own, below the header and above the timeline;day --jsoncarries it underreflection, a key present only on a day that has one.day_start(RFC 0036):logbook setup day_start 06:00writes"day_start": "06:00"tologbook.json, and from then on a line whose local clock is before 06:00 belongs to the day before. Every reader that puts a line on a day goes by it, from one rule: the index,show,dayanddays, the nights before and after a day,trips,doctor sources --gaps, the digest, the signed day's page and the crossing of signed days, promises, the rollups, the Year, people, the vault, the printed pages, the shared page, the MCP tools' days andserve's pages,/todayincluded. The comparison is on the wall clock, so the night the clocks change moves no line; no line, hash or month file changes. The Day's header says06:00 to 06:00 the next dayand its JSON carriesday_startwhen the day does not begin at midnight, and only then. Setting it rebuilds an index that exists and counts the signed days whose page moved; a value that is not a clockHH:MMis refused by every reader that groups by day, naming it (docs/settings.md).logbook doctorhas aday-startline when the day does not begin at midnight, warns when the index was built under another boundary, and fails a value that is not a clock.- The schedule runs four times a day:
sync --scheduledat 00:00, 12:00 and 18:00 local, andsync --scheduled --closeat 06:00, which runsdream --catch-upafter the sync when this version has the dream andpolicy/crossing.jsonadreamentry (else one line saying why not), then the rest of the run and one summary line. Two launchd agents or two systemd user timers;sync --install-schedule --systemwrites daemons or system units for a machine nobody logs in to and prints the two sudo commands that install them, asserve --install-service --systemdoes. Installing again moves a schedule of two runs to the four;--uninstall-scheduleremoves them all. The Sunday message comes from the 18:00 run. logbook export sitewrites a Day page for each of the Year's twelve picks,days/<day>.html:serve's Day page written down with every toggle open, nothing to submit, the site's navigation above it. The pick's row in the Days index links its page; any other day stays a row, which a Day page's neighbours link. About twelve pages a year, never one per day. The site's pages inserve's stylesheet, the Day page among them, need no sideways scroll on a phone: a table wider than the column scrolls inside itself.logbook doctor --packet [--out FILE]: a plain-text diagnostic to hand a collaborator when something fails, with no line's content, no name, no path under the home directory and no value of a variable in it (docs/doctor.md, "Sending a diagnostic"). It holds the OS and its version, the architecture, the RAM, Python, openlogbook and the extras installed; the record's line count and head; each source's last-run result and watermark date; the schedule, the last scheduled run and the serve service; the dream endpoint's host and port and model with one probe, the fixed promptReply with the single word ready.sent once, and the reply's HTTP status and body as they came; the names of the variables set; and the last 40 lines of the sync and service logs. What it quotes is scrubbed: the home directory becomes~, the record's folder[record], the owner's names, handles, addresses and numbers frompolicy/owner.json(a number however it is spaced) and the login name[owner], the machine's name[host], places and assets[place]and[asset], a variable's value its name in brackets. The probe is the packet's one network call, made only whenLOGBOOK_DREAM_ENDPOINTis set and a model is named.dream day YYYY-MM-DD [--dry-run] [--show-prompt]: a model reads one day under thedreamentry ofpolicy/crossing.json(max_tier,until, optionalmodel; no entry or an expired one refuses in one sentence) and writes onedraft/v1line (RFC 0036): the day in a paragraph, the threads it moved, two questions, the people and promises it proposes, every segment with the ids of the lines it rests on or marked unsupported. The model is any OpenAI-compatible chat completions endpoint,LOGBOOK_DREAM_ENDPOINT,LOGBOOK_DREAM_MODELand, when it needs one,LOGBOOK_DREAM_KEY, through one small client with a timeout and one retry and no SDK. The material is the Day under the ceiling, messages by counterpart with their count and text, notes, commitments and the signing note, never a raw line above the ceiling; the prompt islogbook/contrib/dream-prompt.md(docs/dream-prompt.md) and says which language to write in, the language most of the day's lines are in. An evidence id the day does not have makes the segment unsupported; more than 30 % unsupported refuses the answer and nothing is written. The draft's tier is the highest tier it read;read_headandread_countsay what it read; dreaming a day again supersedes the standing draft; the whole run holds the writer lock and a head that moved isHeadMoved, nothing written.dream --catch-up [--days N]dreams each of the last N days that has no draft or whose lines changed, one line per day (docs/dream.md).- The Day shows the standing draft between the header and the timeline, above every note, headed with the
model, the head and count it read and
dreamed N×, last on DATE; an unsupported segment set apart with~and the word;day --no-dreamleaves it out and--jsoncarries it asdraft;serveshows the same.showlists a draft line on the day it was written.doctorlists thedreamentry on itscrossingline with the model it names. dream journey IDdrafts a journey once it has come home, and the first 06:00 close after it does dreams it: the trip as a whole, its days, places with their hours, who was on it, what was decided and promised, the photos it would star and one name it proposes.show tripsandshow tripcarry the draft (draftordraft_withheldunder--json, when it has one).dream week [DAY|YYYY-Www]drafts an ISO week from its seven days and their drafts once its Sunday is over, and the close of each Sunday dreams it: the time by place, person and thread, sleep and training when the health lines cross (else no data), who moved against the week before, the promises open both ways, a review proposed for each open goal, one proposal for next week and a personal part. Every figure is computed from the lines, with their ids; a sentence that writes another is marked unsupported.dayof a Sunday carries it (week,week_draft,week_draft_withheldunder--json).- Both follow the
dreamentry as a day's draft does: read under its ceiling, the version recorded, withheld by the readers when the entry no longer allows them, dreamed again by--catch-upwhen their lines or the entry change. - The dream proposes events: beside its segments,
dream dayasks the model for the events the day held ({title, start, end, place, people, evidence}; the prompt is nowdream-day/2) and keeps them inside thedraft/v1line underproposals, kindevent, never as event lines. A stay at a restaurant with two photos and a recording is a dinner with the people in it. The material gives each stay itsplace(a named place's name, orplace:<lat>,<lon>) and the day's canonical people by id; a proposal with a time, a place, a person or evidence not of the day is dropped and counted underextra.dropped, an unresolved person among them (docs/dream.md, Proposed events). day signandday reflectlist the proposed events, numbered;--accept Nwrites one as anevent/v1line, the calendar adapter's own mapping of its fields, sourceowner, tier 1,extra.fromthe draft's id, under the writer lock the signature takes and confirmed in it. Nothing is written without--accept.- The Day shows a proposed event greyed (
?andproposedin text) and a confirmed one as an event of the day;day --jsoncarries them underdraft.proposals, each withconfirmed. - Proposed events follow the policy with their draft: a draft the
dreamentry no longer allows is withheld with its proposals, so the Day shows none of them andday sign/day reflectlist none and refuse--acceptfor them with the reason; the draft the entry still allows, shown in its place, brings its own. An event confirmed before the entry changed stays in the record. logbook review KIND(RFC 0037): one sitting for the five kinds of thing the record names —person(=people review),org,idea,asset,place(=setup places review), the two old commands printing the same as before, byte for byte (review). The org queue is the registered domains of your mail and calendar (a public provider and your own domains name nobody's org), the code-host orgs of the pages and tasks, the group chats and the recurring merchants; the idea queue the Notion roots, the repositories and the recurring titles; the asset queue the track subjects and aircraft registrations the registry does not name; each proposed against what you named with the evidence, or as a new one.--accept,--name N "…",--reject,--all-above; nothing written unless told, nothing looked up.reviewalone lists every queue.logbook status KIND ENTITY DISPOSITION [--reason "…"] [--at DATE]: what you decided about an org (hold,add,sell,let-go,exited,passed), an idea (spark,exploring,build,built,killed), a place (let-go) or an asset (sold,let-go), onestatus/v1line, no money on it, tier 3 for an org (its dispositions describe a position in money) and 2 for the rest;--reasonputs your words on the line, and for an idea, a place or an asset also as anote/v1at tier 2; an org's reason stays on its tier-3 line, never a note. A place let go and an asset sold close their registry entry withuntiland keep it.status list KINDsays the current status of each, the stale ones and the proposals muted for a year by a status you gave a reason.- Three profiles in draft with RFC 0037 (the profiles):
entity/v1(an org, an idea, an asset or a place, and the refs that are it; tier 2, never citing a tier-3 line),entity-review/v1(every no, for every kind) andstatus/v1. Aresolution/v1of typecompanyis read as an org.policy/entities.jsonholds the public mail providers and the review's thresholds. export notion FOLDER [--since DAY] [--include-unsigned] [--dry-run]: the record's facts for the program that keeps your Notion, as a crossing. Persons you had contact with in the window, by their emails, phones and handles: the last contact and its kind, the days together, the promises open both ways (the sentence, its day, its line), and the page in German, emitted whole; ideas with a Notion page: the status, your reason note quoted as written, a dated German entry per status; orgs by domain: the days they were touched, and nothing else. Anything without a key is left out and counted, and so is a sentence that names money. Nothing leaves without thenotionentry ofpolicy/crossing.json; signed days only unless the entry says"include_unsigned": trueand you type--include-unsigned; tier 3, an org's status and money never. The folder is written fresh each run and onecrossing/v1line says what left; nothing is asked of or created in Notion (export for Notion).logbook export world [--out DIR] [--from DATE --to DATE] [--tier 1|1,2|1,2,3]: the record as one self-contained HTML page, a globe you can scrub (the world). On a canvas, with no WebGL and nothing fetched: the world's outline from Natural Earth's 1:110m land (public domain, bundled under 48 KiB aslogbook/tables/land.json, written byscripts/make_land.py), the places ofplaces.jsonas anchors, the assets ofassets.jsonas dots moving along their own tracks, your stays as dots (aboard, you ride with the boat), thejourney/v1lines as tracks, and a time scrubber at the bottom that moves everything, the standingchapter/v1lines as bands on it. Clicking an anchor or an asset opens its summary: nights, journeys, photos, the first and last day. The record's part of the page is one JSON block under 1,000,000 bytes, the tracks thinned to fit (never the counts); every id it refers to is checked before the page is written, and no coordinate is more precise than the record's own (a stay's centre to the fewest decimals of the fixes inside it, four at most). Tier-gated like an export: tiers 1 and 2 by default, under a newworldentry ofpolicy/crossing.json(2 when the file does not name it); every export appends onecrossing/v1line, and a re-run over an unchanged record rewrites nothing.logbook serve: the same page at/world(?from=&to=narrows it), its one script named by its hash in the page's Content-Security-Policy, andworldin the Library's navigation.goal add TEXT --horizon life|year|quarter [--from DAY] [--until DAY] [--supersedes GOAL]writes onegoal/v1line (RFC 0036) in your words, tier 2 and sourcemanual; a goal reworded is a new goal that supersedes the old, and the chain is one goal.goal review GOAL advancing|stalled|done|let-go|superseded [--note TEXT] [--at DAY|RFC3339] [--period day|week|month|quarter|year]writes your verdict as onereview/v1line on the day it is about,recorded_atsaying when you wrote it; one verdict per goal, period and day, never in the future or before the goal's first day.goal list [--open] [--json]lists every standing goal with its latest review.goal import FILEis the first backfill: one goal per line of a text file (text | horizon | from), and--review let-go --at 2026-08-31applies one verdict to all of them, every line checked before any is written (docs/goals.md).chapter open NAME [--from DAY] [--to DAY] [--rules TEXT],chapter close [--to DAY]andchapter list [--json]: a named stretch of your life as onechapter/v1line, tier 2; chapters do not overlap, the same name from the same day is written once, and closing writes the chapter again with its last day.- Every one of these writers holds the writer lock for its whole run and reads the head again before it
appends: a head that moved under it writes nothing, exit 2;
--no-waitrefuses while another command writes. - The Day names the chapter a day is in, in its header after the signed state, lists a row per goal review on
the day the verdict is about with the goal's current text and
written <when>when it was written later, and lists the goal and chapter lines written on the day, marked when superseded; under--jsonaschapter,reviews,goalsandchapters, each only on a day that has one.showand theserveDay page show the same; under a ceiling of 1 none of it is there. logbook sync gmail: a Gmail mailbox over the Gmail API v1, read-only (gmail.readonly), on the one Google service-account key →mail/v1, tier 2, sourcemail: the linelogbook sync mail(IMAP) writes for the same message, through the same parser and with the same dedupe key (<account>:<Message-ID>), so a mailbox synced by IMAP yesterday and by the API today is written once, and a Takeout imported with--accountdedupes against both. Labels in the profile's slot as IMAP spells them (Inbox,Sent,Important,Starred, your own by name;UNREADand the category tabs dropped), the thread id in decimal; the body as the mail source stores it; attachments named, sized and digested, never stored. Drafts, Spam and Trash are counted, not written. Headers first: no body the record already holds is fetched. The state is Gmail's history id, else the newest internal date less a day when Gmail no longer keeps the history;--since,--dry-run,--restart, paging and backoff.sync --allruns it aftermail.logbook sync gcalon the service account: withLOGBOOK_DRIVE_SA_KEYandLOGBOOK_DRIVE_USERset it reads the calendars you own over the Calendar API v3 (calendar.readonly), each event turned into the VEVENT its iCal feed carries and read by the same ics reader, so the line, itsraw_idand itssourceare the ones the feed and an export give. An existing gcal watermark carries over and nothing is written twice (the tour, Google Calendar, has the migration note). Without the two variables the iCal feeds are read as before.- Drive lines carry the folder path of their file, root first (
["My Drive", "Boat"]), with thedrive.metadata.readonlyscope: each folder's name asked once and kept instate/drive-cache.jsonfor a week, never in the record. Without the scope the lines carry none and the run says so; lines already written are never rewritten. doctorshows onegoogleline: the key present, the user set, and which of gmail, gcal, drive and gtasks are on it and enabled; it asks Google nothing.logbook people review --from-google: your Google contacts and other contacts (People API,contacts.readonlyandcontacts.other.readonly, on the one Google key) as a name source for the review. A contact that holds an observed address or number and a canonical person's own is evidence for that pair; one that touches no one the record names proposes to name the observed person as a new person (same email, same phone, same name); contacts that share an address or a number are proposed as one, to merge in Google Contacts. Nothing is merged unless you say so, and no contact becomes a line: accepting writes the name and the identifiers the record already saw, rejecting writes no line. The contacts are cached instate/google-contacts.jsonfor 24 hours and never printed.logbook sync meet: your Google Meet calls from the Meet REST API (meetings.space.readonly), oneevent/v1line per call that has ended (tier 1, the participants as Meet names them, the conference record as the reference), and when Meet transcribed it onetranscript/v1line built as Granola's is (tier 3, the words inattachments/). A Granola transcript of the same call stays its own line.logbook sync gaudit: your own sign-ins from the Workspace's login audit log (Admin SDK Reports API,admin.reports.audit.readonly), oneevent/v1line per sign-in event, tier 1, with how and the place Google derived; the IP address is never in a line, not even as a digest.doctor'sgoogleline namesmeet,gauditand whatpeople review --from-googlereads.logbook show ideasandlogbook show idea NAME(RFC 0037 §7, §11): the ideas you named by stage (build, exploring, spark, built, killed, no status), the most recent touch first, each with its reason (a killed idea that sparked again keeps its old one, said with its day), the words written this year (--year), its repositories, how many people it was discussed with and never their names, the days since its spark, its latest titles and the stale ones said (anexploringover two years with nothing since); one idea's page with every touch newest first, the people by name, its Notion pages and repositories as references (a README's versions), its title thread, the words by month and every status line (ideas read back). A touch is a line that resolves to the idea asreview ideafinds it; a bot's, an agent's and a relations line are none.- The Ideas shelf under
logbook serve(Ideas):/ideas, the ideas you named by stage, the most recent touch first, the stale flagged, each with its reason and its evidence folded, the people it was discussed with counted and named only on its own page, and below it the review queue ofreview idea;/idea/ID, one idea with its status form, first said, every touch, the people by name, its documents, its title thread and its words by month. Accept, Name and No write whatreview idea --accept,--nameand--rejectwrite, the status form whatstatus ideawrites (with a reason, the note first), through the same functions, byte for byte; from this machine only, and while another command writes the record an act is a409and nothing is written. One column, phone first; an exported site has no Ideas. logbook lab hold census files PATH…,sendersanddrive: Hold v0, read-only censuses of what you hold (Hold, RFC 0042 draft).fileswalks the folders you name, never through a link and never into a system or Claude folder: counts and sizes by type and year, duplicates by SHA-256, the 50 largest, folders untouched for two years.sendersreads the record's mail lines: senders by count and last seen, the ones never answered, newsletters when a line holds the List-Unsubscribe header.drivereads the record's Drive lines. Each writes a report understate/hold/; the names stay in it, the terminal gets counts, and nothing is moved, renamed, deleted or appended.logbook servehas two new shelves, phone first (a 400 px column), every derived row with its evidence folded (what it rests on, the day, the line ids). Journeys (/journeys?year=): the trips that began in a year, the latest first, each with its name or dates, nights away, return day, route, photos, places, the people the record names (the unplaced counted, a link to the review) and the journey's draft folded; one journey (/journeys/FIRST/LAST) with its stays as dots on a plain canvas drawn by the server (no tile host), its days one row each linking the Day, and the promises made on it (serve). People (/people?year=): the people the record names, by days together this year, then the last real contact; one person (/people/ID) with days together by year, the last real contact and what it was, drift and why, promises both ways, the coming month's anniversaries and the places shared (serve).logbook add --trip ID-OR-DAY "NAME"names a journey (ADR 0019): onenote/v1line in your words, labelname, the id underextra.trip, dated inside the journey. The Journeys page's Name this journey writes it through the same function, byte for byte.- The People page carries the review queue of
people review, the one place an observed person appears: Merge writes what--accept Nwrites and Not the same person what--reject Nwrites, through the same functions. Like the Places page's form, both acts and the naming are answered from this machine only (a loopback client, anOriginof 127.0.0.1), one at a time, under the record's writer lock without waiting for it: another command writing is a409, nothing written. logbook serve's Places page asks you to name the places you return to: the named places first (nights, last visit), then the review queue ofsetup places reviewin its order, twenty a page, each cluster with a dot on a plain canvas drawn by the server (the spot, its radius, the nearest named place and distance; no tile host), its facts, its evidence folded, a field prefilled with the best proposal, and Name, Skip and Not a place (Enter, Space,n). Name and Not a place go through the review engine's ownacceptandreject, soplaces.json, the naming note andstate/places-review.jsonare byte for byte what--name,--acceptand--rejectwrite; the page is read again after each write. The Library's first write act: the form is answered only from this machine (a loopback client, and a browserOriginof 127.0.0.1 when one is sent), else403and nothing written (serve). A Day's stay printed as coordinates links to its cluster there (name this place).setup places reviewfolds its evidence: the addresses one source wrote along one street are one line (dawarich: "Plattformveien" (38 addresses, 217 stays)), three lines are shown and… and N morecounts the rest;--verboseprints every name as before. The Places page shows the same folding, from the same code.logbook serve's Day page closes the day: Reflect and sign at its foot. Reflect writes your reflection throughday reflect's own function, byte for byte itsnote/v1line; the day's Wispr Flow "reflect" draft is offered prefilled and taken only when you click; the field is in the language of the day's own words. Where this machine can hear (openlogbook[transcribe]and its model, asked once whenservestarts), a recording, a file or a phone's recorder or a Record button where the browser can record, is heard through theday reflect --audiopath and never fetches a model. The proposals are boxes, none ticked; Sign signs the day through the codeday reflect --signruns, the ticked delegations written and the ticked dispositions in the signature, byte for byte the command's line, and a signed day is signed again, superseding its signature. Afterwards the section opens with the signature, and the Day's header carries it with the page digest whole. From this machine only (a loopback client, anOriginof 127.0.0.1), a form older than the record refused, another writer never waited for. The policy's MCPwritelist is never read and may stay empty: the page is the owner's own Sign path, and the door is for an orchestrator elsewhere (serve).- The Day page's footer says No model touched this page. What a model drafted is marked as a draft.
logbook serve mcpgains two write tools that the owner allows by name (ADR 0022):sign_daysigns a day aslogbook day signdoes, through the same code, the same checks and supersession, writing the same line byte for byte;note_dayappends onenote/v1line to a day, tier 2, sourcemcp, at most 4000 characters, itskind(note,proposal,reflection) inlabels. Both are refused unless themcpentry ofpolicy/crossing.jsonnames them under"write": ["sign_day", "note_day"]; an expired entry allows none, a day outsidewrite_window_days(default 60) is refused, and--allow-tier-3has no effect on them. Both hold the writer lock without waiting and log the tool, the day and counts, never text.logbook doctorshows the write tools on its crossing line, andserve mcp --inspectlists them. RFC 0034 amendment 3.- The Night line:
dayhas anightrow under the night before when a night ends on the day,slept 23:10–06:40 · 7 h 20 min · training 45 min, derived at read time from thehealth-sample/v1lines already in the record (sleep stages and workouts); nothing is written. A night is one device's asleep stages with no gap over two hours, on the local day its last stage ends in underday_start, so a night across a 06:00 boundary is one night, never split; the longest device, never a sum. Training is the union of the day's workout spans. The JSON carriesnightonly on such a day. The Day's text says the sleep once, on that row: the health row keeps the steps and the resting heart rate, andsleep_hstays in the JSON (docs/day.md). daysays the weather in short beside the place of the night after,Home · home · 4° · rain.- An org's portfolio (RFC 0037 §10.2, amended 15 October 2026):
logbook status org ORG DISPOSITION --portfolio "Fund I"names which portfolio holds the company, free text, in theportfoliofield of the org's tier-3 status line;--portfolio ""clears it, and a status without it leaves it as it stood. Only an org's status takes one: a portfolio for an idea, a place or an asset is refused in one sentence and nothing is written. A status equal to the standing one is written when it moves the portfolio, and keeps the day the status took effect (since) unless you give a new reason.show org NAME, the org's page andstatus list orgsay it;show orgs --portfolio TEXTand the Manifest's filter (/manifest?portfolio=) list the orgs in one, case and spaces aside; the org page's status form carries it through the same writer, byte for byte. It is tier 3: no crossing, shared day or Notion folder carries it, and through a gate without tier 3 nothing shows it and a filter lists no org (the profiles). logbook show orgsandlogbook show org NAME(RFC 0037 §7, §11): the orgs you named under their current status (holding, exited, passed, let go, no status), the most recent touch first, the stale ones said (aholdover three years with nothing since,stale_daysinpolicy/entities.json), the passed with their reasons in full, and the people who appear with more than one org; one org's page with every touch, its people, who introduced whom, its documents as references and every status line. A touch is a line that resolves to the org through one of its refs, a ledger line through its merchant among them; its figures only with--money(--yearfor the shelf). An org's status, its reason and the money are tier 3 and read through the gate of whoever reads (orgs read back).- The Manifest under
logbook serve(the Manifest):/manifest, the orgs you named under what you decided about them, the most recent touch first, the stale flagged, the passed with their reasons, each row's evidence folded, and below it the review queue ofreview org;/org/ID, one org with its status form and every touch, the money only when you ask;/manifest/people, who appears with more than one org. Accept, Name and No write whatreview org --accept,--nameand--rejectwrite, the status form whatstatus orgwrites, through the same functions, byte for byte; from this machine only, and while another command writes the record an act is a409and nothing is written. One column, phone first; an exported site has no Manifest. people drift [--min-days N] [--quiet-days M] [--year YYYY] [--show]: the canonical people with at least N days together in one year (default 20) whose last real contact is more than M days ago (default 365), most days together first, then the longest silence; each with the best year and its count, the last real contact and what it was, and the open promises both ways;--showthe days together, never a word of a message. A real contact is a day together, a timed meeting attended or a transcript spoken in, an answered call, or a message in a direct chat either way; never a mail, a line in a group, a missed call or a tagged face.people nearby PLACE | --journey ID | --days FROM TO [--radius KM]: the canonical people seen on a day together at a stay within 50 km of a place (lat,lon, a place ofplaces.json, a city or code of the airports table), of where a journey or flight line goes, or of each place planned on those days (located calendar entries, flights, journeys, home left out), ranked by days together there, then overall, with the last day there and the last real contact.daynames the days together exactly 1, 2, 3, 5 and 10 years before with the same canonical person, five at most, asanniversaries(under--jsononly on a day that has one);--no-anniversariesleaves them out.logbook setup places review --ask-photos: the places the review proposes as blanks get the names your photo libraries hold for the photos already in the record, counted by photo and named by source (immich ×12: Havbyen,photos ×3: Plattformen) (Ask the photos). Immich is asked by asset id through the clientsync immichuses (GET /api/assets/{id}, your own server and key, at most 10 a second); Photos is read from the library on this machine (--photos-library PATH). Your photos' asset ids go to your own Immich server and nothing else leaves the machine: no coordinate, no name, never a geocoder; no line is written. The 50 photos nearest each place's centre from each library (--limit N);--allasks about the places that have a name too. Before anything is sent it says how many photos it will ask about and where; a library that fails is said once and the review goes on. Answers are kept 30 days instate/places-photos.json.--acceptand--rejectwork as before, on the same numbers; without the flag the review is unchanged.logbook setup places review [--top N] [--near PLACE](logbook places reviewstill answers): the places you return to, named in one sitting from what the record already knows, offline (places). An observed place is a cluster of your stays within 75 m (--radius), with its visits, nights, first and last visit and hours, ranked by nights then hours; a derived table inindex.sqlite, rebuilt when the record orplaces.jsonchanges, never a line. Each is proposed with the name its sources already gave it — a Google Timeline place visit's name and address, a home or work type, the place a photo's library named, a calendar entry's location held during the stay, a name Dawarich's geocoder wrote on the stay's points — and which source said which name how often; a blank where none did.--accept N[,N]writes the place intoplaces.jsonat the cluster's centre with a fitted radius and puts the naming in the record asplaces namedoes;--name N "…"uses your own name;--reject N[,N]records the pair instate/places-review.jsonso it is not proposed again. On a terminal it asks y, n or a name for each. Nothing is accepted on its own, no geocoder is asked, and no coordinate leaves the machine.- EXPERIMENTAL: the relationship reader asks a real model.
people ask NAME QUESTION [--show-prompt]sends one person's lines to the model the dream uses (LOGBOOK_DREAM_ENDPOINT,LOGBOOK_DREAM_MODEL,LOGBOOK_DREAM_KEY) under its own entry,relationshipinpolicy/crossing.json, with amax_tierof 1 or 2 (3 is refused while the model is a cloud one), a requireduntil, an optionalmodeland an optionalinclude_unsigned; without the entry, or after its day, nothing is sent and one sentence says so. Only lines at or under the entry'smax_tiercross, only of signed days unless the entry says otherwise, each as a reference with the promises read in its words, and the names that say whom a line is with are held to the same ceiling. Every claim of the answer cites lines of the person or is listed underunsupported; the answer is never written. The key is never said in an error (the relationship reader). Slice 0'speople ask, which refused for want of a model, now asks this one. dream person NAME [--window FROM TO]: onedraft/v1line of unitperson(RFC 0036 amendment 1), written as the day's draft is (policy_version, evidence of the person's lines only or unsupported,supersedes, nothing written twice at the same head over the same window), under therelationshipentry and refused without it.- EXPERIMENTAL: the relationship reader, slice 0 (
logbook/contrib/relationship/, its README states the boundaries).people ingest NAME --window FROM TOreads one canonical person's authorized input set under the newrelationshipentry ofpolicy/crossing.json(max_tieranduntil, both required): the lines where they are a counterpart, an attendee or a speaker (RFC 0036 amendment 1), never a line that merely mentions them, in the window, not retracted, at or under the ceiling; and writes a disposable store understate/relationship/<person>/, each line attributed to the peers who spoke it, one peer per canonical person and none for an unresolved one, with the line-id map.people ask NAME QUESTIONanswers from the store with every cited id resolved against the set read again from the record, or marked unsupported, and writes nothing; a store serves only under the head and the entry it was read under, and an expired entry refuses. No model is wired yet:people askrefuses until a later slice wires one. - docs: RFC 0036 amendment 1: a
personunit fordraft/v1(one canonical person over a statedwindow; the model reads only the lines where they are a counterpart, attendee or speaker, never a line that merely mentions them, and evidence outside that set is invalid); the writers of goals, reviews and chapters,goal add,goal review(itsatmay be backfilled),chapter openandchapter close, under the writer lock with the head read again before the append, asday sign;draft/v1rule 7, a draft follows the policy, not the head (the entry's version underextra.policy_version,superseded by policywhere the page would show it), held for a draft of every unit, a person's included, and through a crossing to that crossing's current ceiling as well; and howgoal/v1andreview/v1relate to RFC 0037'sstatus/v1. A document only: nothing in the code, the envelope or the conformance samples changes. - docs: RFC 0036 draft (
docs/rfcs/0036-goals-reviews-drafts-chapters.md): four payload profiles with a page each underrfcs/,goal/v1,review/v1,draft/v1andchapter/v1; theday_startsetting oflogbook.json; andsigned_within_dayson a crossing-policy entry. A document only: nothing in the code, the envelope or the conformance samples changes. - RFC 0037 (draft), Entities, with its twelve questions decided by the owner (the body says each,
and a Decided section lists them): one road per kind, a person through
resolution/v1and an org, idea, place or asset throughentity/v1only, withcompanyresolution lines read as orgs and never rewritten;entity-review/v1, the owner's no for every kind, whichpeople reviewandsetup places reviewwill write (the place nos instate/places-review.jsonbecome lines once, by--migrate-rejects, and the file a cache);status/v1for orgs, ideas, places (let-go) and assets (sold,let-go), a reason kept as anote/v1labelledstatus, aholdwith a reason muting the proposal it answered for 365 days, and staleness as a reader's rule; oneobserved_entitiestable with a ranking-onlyhint; how a status differs from RFC 0036's goal review and RFC 0034's dispositions. RFC 0035 gains amendment 1 (the no isentity-review/v1;people-review/v1is read forever) and ADR 0018 rule 4 an amendment (registry entries are never deleted; a status line closes them withuntil). Documentation only: no command, line or reader changes yet (rfcs/0037-entities.md). - RFC 0038 (draft), Speakers: who spoke, and who they are: anonymous speaker labels on
transcript/v1from diarization in thetranscribeextra, on this machine (speakers,diarizationand a spans file, additive to the frozen profile; a transcript without them stays valid), the model fetched only bysetup speakers --fetch-model; oneresolution/v1line per voice on a newspeakerref, written only by the owner throughreview speakersin RFC 0037's shape, the model proposing and never binding, the transcript never rewritten; a sealed voiceprint registry besideplaces.json, a cache rebuilt from the audio and the attributions, part of no crossing and ignored byverify; text-only proposals asdraft/v1when the audio is gone; consent as the owner states it;exclude_peopleandhold_unattributedon a crossing-policy entry; tiers, dedupe keys and fifteen open questions. Documentation only: no command, line or reader changes yet (rfcs/0038-speakers.md). - The schedule runs
doctorand says when something is wrong (docs/schedule.md).sync --scheduledis whatsync --install-schedulenow installs:sync --all, the restore test on the first Sunday of the month, thendoctor, the outcome instate/last-run.json(when, the lines per source, the doctor's counts and the names of the checks that warned or failed, the first failing line).doctorgains alast-runline (a warn when the last scheduled run is older than 26 hours or failed) and arestore-testline (a pass when a restore test passed within 35 days, a warn otherwise saying what to do, a fail when the last test failed). WithLOGBOOK_NOTIFY_TELEGRAM_TOKENandLOGBOOK_NOTIFY_TELEGRAM_CHATin~/.config/logbook/sync.env, the scheduled run sends one Telegram message only when a source failed ordoctorwarned or failed, and once a week on Sunday evening with the week's counts; counts, source names and check names only, never content; without the variables nothing is sent and nothing is said. backup --restore-test [DEST] [--to DIR]: the latest snapshot of the last backup restored into a temporary folder, verified there (every sealed line opened, when the record seals), compared with what the record said when the backup was taken (state/last-backup.json, whichbackup DESTnow writes) and with the live chain, deleted again, and the outcome instate/last-restore-test.json. Skipped, with the line that enables it, when no backup is recorded or a sealed record's identity is not in the agent's environment; never a prompt.logbook serve --install-servicekeeps the pages at http://127.0.0.1:8765/ running without a terminal open: a launchd agent (~/Library/LaunchAgents/org.logbook.serve.plist) on macOS or a systemd user service (~/.config/systemd/user/logbook-serve.service) on Linux, installed as you, assync --install-scheduleinstalls the schedule; it runs the Python that installed it on the record found now (LOGBOOK_HOME, andLOGBOOK_IDENTITY_FILEwhen set), starts at load, is started again when it fails, and logs beside the sync log (~/Library/Logs/logbook-serve.log, or the journal).--port Nand--airports FILEare carried; the plist or unit is printed before it is written, from the same renderer as the schedule's.--systemis for a machine nobody logs in to, such as the record's home (ADR 0022): a launchd daemon or a system unit that runs as you from boot, written to your home directory, with the twosudocommands that install it printed and never run (refused as root).--uninstall-service [--system]is the reverse;serve --statussays whether one is installed and answers (exit 0, 1 installed and silent, 3 none). The server still binds 127.0.0.1 only and the service never passes--host; reaching it from another device (an SSH tunnel, a tailnet's own HTTPS proxy on the same machine) is documented as the owner's business in docs/serve.md, "As a service".logbook servepages carry anETagfrom the record's head (and a digest of the settings and received pages they read), sent withCache-Control: no-cache, so a phone's reload at the same head is a304that reads and renders nothing;/assetsand/gaps, which the clock moves, carry none./todayredirects to the Day of the current date in the record's timezone, and the navigation links it.logbook doctorhas aserveline: no serve service (a pass, saying how to install one), installed and answering on its port (a pass), installed and silent (a warn naming its log), or two on one port (a warn).- Three more shelves in
logbook serve, read-only, after Ideas: Promises (/promises: the open ones first, then kept and dropped, who, what, when it was said and the line it was read in, the local model's verdict wherepromises --judgealready gave one,?person=for one person;/promises/IDlinks its transcript line), Goals (/goals: the chapter you are in and your goals by horizon with the latest verdict and its day;/goals/IDthe review thread) and Agents (/agents: your sessions with Claude Code, Claude and your Telegram bots by day, their length, your words and the agent's apart, the agent's own summary, and the goal a session served when a review of that goal names the session inextra.lines, provisional). Each page reads through the server's tier gate and opens no connection (The shelves). - Speakers, build 1 of RFC 0038:
derive transcriptsseparates the voices of each recording on this machine when the diarizer (pyannote.audio, thespeakersextra) and its models are here, and thetranscript/v1line gainsspeakers(anonymous labelsS1,S2…, ormicandsystemfor a call whose source keeps its sides apart,from_meon the microphone's one voice) anddiarization, with a spans file in the attachment store; without the models it transcribes as before and saysspeakers: not separated (logbook setup speakers --fetch-model);--no-speakersturns it off. The two fields are a dated, additive amendment to RFC 0004,schema/transcript-v1.schema.json. logbook derive speakers [--since DAY] [--speakers N] [--dry-run]hears again the transcripts heard before, each into a new line that supersedes the old, and says first what that changes (signed days, closed promises).logbook setup speakerssays what separates voices here;--fetch-modelis the one download, withHF_TOKENread for those requests only, never written or printed.sync granolalabels the microphone's and the system audio's voices from Granola's own marks.show, the Day andservename a transcript's voices;day --jsongives them underspeakers.- Speakers, build 2 of RFC 0038:
logbook review speakersnames the voices of your recordings, and only you do. The queue keys a voice by the far end's number or address, the name its source displayed, else its label; it scores the far end of a call, the calendar entry, the participants, the source's name and who was seen that day (no voiceprint yet: context alone scores 40 at most, and two close candidates are both shown and neither taken).--accept,--name N "…"(mefor your own voice; a new name mints a person),--unnamed N [--same-as M],--reject,--consent N=yes|no|unknown,--all-above,--play N(the voice alone, here, nothing written); each answer is oneresolution/v1line per voice with aspeakerref and itsbasis, a dated additive amendment to RFC 0006,schema/resolution-v1-speaker.schema.json.--named --recording ID|--day DAYcorrects a wrong answer with a line that supersedes it;repair retractreturns a voice to the queue. - The readers join who spoke: the Day (
Middag · you 31 min · Kari Nordmann 14 min · 1 unnamed · recorded with consent: unknown, andperson,basis,consentinday --json),with(a voice you named is company where it was recorded; the far end of a call never is; the unnamed are counted,with.unnamed),people(spoke_son the transcripts channel;and 1 unnamedand the voices not yet named in the head),rollup people,promises(a sentence's speaker from its voice) and the digest. - Speakers, build 3 of RFC 0038: the voiceprints.
voiceprints.age, in the record folder, is one file sealed to the record's recipients and written whole: per person the centre of their voice's embeddings from clean speech (two seconds alone at least,min_clean_sin all), and the voices not yet named; no audio, no words, no names. It is a cache made from the record:derive transcriptsandderive speakersadd what they separate, every answer inreview speakersupdates it without the model, a retracted or superseded answer leaves it at the next write, a new model makes it again, andlogbook setup speakers --rebuildmakes it from the audio and the answers that stand. Your own microphone's voice and every voice you named yourself are your voiceprint, without a line. A record without recipients keeps none: the review hears what it compares for the run, in memory. review speakersscores the same voice, up to 70 points atmatch, none atfloor, beside the context, yours as anyone's, so your row comes first and a guest named once is recognised the next time; voices that sound alike are one row of several recordings.policy/speakers.jsonsetsmatch,floor,min_clean_s,text_confidence_cap,enrol_unnamed(off: a person you would not name is not recognised either) andforget(never kept, never proposed), each refused in one sentence when it is not the shape.- The registry never leaves: no crossing, shared page, trip bundle, vault, site, MCP answer, dream,
backup or export carries the file or a vector of it, and a test looks in every one.
verifyignores it;doctorandsetup speakerssay when, with which model and for how many people it was written, never what is in it, and warn when the model is not the configured one. logbook key add-recipientandkey remove-recipientseal the registry again with the record, in the same hold of the writer lock: before the record's lines when a recipient goes, so a removed identity opens no copy of it even when the change stops half way; a registry that cannot be sealed again is removed, to be made again.logbook star LINE [--note TEXT]marks a line worth keeping, andlogbook unstar LINEtakes the mark back. A star is onestar/v1line (RFC 0041, a draft) at the starred line's own time and tier, so it is on its line's day and travels where the line does:export share daycarries the stars on the lines it carries and never a star without its line, andexport trip-bundlecarries the stars on its photos and flights. A photo's star is amemorykeeper (RFC 0024, amended with the star'snote): the Day's hero photo and the photo the press picks for--print, the note printed under it as its caption. Starred again with another note, the new note supersedes;unstaris a retraction at the star's tier (the acts). A model's draft (the dream's draft of a day, a call's synthesis) takes no star: it is a proposal, not yours to keep; and no reader shows a star beside a line it does not show, so a star never reveals a line above a reader's tiers or a draft the policy withholds.logbook with DAY NAME [NAME…] [--at HH:MM]says who was there when the record could not see: onenote/v1line per person,with <name>, labelledwith, which the people reader and the Day already read as company. A name is whatpeople NAMEopens; one the record does not place refuses the whole statement with thepeople reviewhint. Without--at, noon of a past day, or now today.- The Day marks a starred line
★and, on a day you said who was there, lists the day's company in awithrow with your word marked(you said);day --jsongainsstarsandstated, each only on a day that has them. - The Day page of
logbook servecarries both acts beside Reflect and Sign: a star on every row that is a line (events, notes, calls, mail, flights, unplaced items, all-day entries, each photo of a row, now named, your goals, reviews and chapters, and a proposed event once you confirmed it; never a draft's sentences, a synthesis or a row the policy withholds) and a with… field in the header, whose names are completed from the people the record names. Both post through the functions the commands run, are answered from this machine only, and never wait for another writer: while a command holds the record they answer409with one sentence and write nothing, as Reflect and Sign do. The Days page lists the window's stars under Starred (serve). beeperlive adapter:logbook sync beeperreads every chat Beeper Desktop bridges (WhatsApp, Signal, Telegram, Instagram, Messenger, LinkedIn, X, …) through the app's local HTTP API, read-only →message/v1(RFC 0008), one line per message undersourcebeeper-<network>so readers tell the networks apart:raw_id<account>/<chat>/<message id>,from_mefrom the account's own user, the sender as a source-native hint from the chat's participants (phone, email, else the Beeper user id as a handle) with the name the app shows, the chat asdirectorgroupwith its title,text,reply_to, attachments referenced by Beeper asset id, size, media type and file name underextra.mediaand never downloaded; reactions, hidden messages and events with neither text nor attachment skipped and counted.LOGBOOK_BEEPER_TOKEN(made under Settings → Developers → Approved connections; it reads everything and can send as the owner, so it is a password),LOGBOOK_BEEPER_URL(defaulthttp://localhost:23373); an address that is not this machine is refused on one line unlessLOGBOOK_BEEPER_ALLOW_REMOTE=1. The client issues GET and nothing else, and a test with a fake Beeper holds it to that. Each chat keeps its own watermark (marksinstate/beeper.json, a lookback of 24 h),--sinceis used as given for every chat,--dry-runwrites nothing, and--allruns it among the quick sources: an app that is not running is one line, exit 1, and the next source still runs.--networks whatsapp,signalchooses the networks; the default is every one but imessage, whichsync imessagereads from this Mac. Known overlap, documented: a message another source already holds (iMessage from chat.db, WhatsApp from an export or backup, the Beeper cache of an iPhone backup) is a second line here, under another source and raw id.logbook doctorlistssync:<name>for a source whose variable is set too, and forbeepersays whether the app answers (GET /v1/info, the one call it makes).syncgainsmarks, the watermark per conversation an adapter may keep in its state file.logbook sync drive: what happened to your Google Drive files, from the Drive Activity API v2, read-only (drive.activity.readonly) →event/v1, tier 1 whoever acted, sourcedrive. Created, edited, renamed, moved, shared, commented on, trashed, deleted and restored, folded per file, per UTC hour and per activity into one line with a count (Edited Budget 2027 ×14), written once the hour is over. A line holds the file's name, type, id and a link that opens it, the actors (the user it reads as asowner, anyone else as the API'speople/…name), a share's role and with whom, the folder a move names, the old and new name of a rename, and the ids of the activities it folds; never the content, a comment's words, a size or a time the activity scope does not give. Someone else's activity on someone else's file is left out and counted. Dedupe by activity id: a pull leaves out every activity a line of the record already holds, so a re-run writes nothing and a late activity is a line of its own, never a second count. Watermark on activity time with a day's lookback;--since,--dry-run, paging and backoff.logbook sync gtasks: your Google Tasks from the Tasks API v1, read-only (tasks.readonly) →task/v1(RFC 0016), tier 2, through the Takeout Tasks adapter's own mapping (ADR 0017): sourcegoogle-takeout,raw_id<task id>@<updated>, sologbook tasksreads them and a Takeout export of the same tasks writes nothing, in either order. One line per task each time it changes (a snapshot, rule 2), superseding the task's earlier line; a done one carries how long it was open (extra.open_for_s, from the first open snapshot the record holds). The notes are a digest and a word count (extra.notes), never the words. Watermark on the task's updated time with a day's lookback;--since,--dry-run, paging and backoff.- Both sign in with one Google Workspace service account and domain-wide delegation, by the environment alone:
LOGBOOK_DRIVE_SA_KEY(the JSON key file,~expanded) andLOGBOOK_DRIVE_USER(the address it reads as). Each run signs an assertion for its one scope and uses the hour's token it gets for that run only, never written anywhere: no refresh token to rot in a scheduled job. 429, 5xx, rate-limit 403s and lost connections are retried with a doubling wait,Retry-Afterhonoured;unauthorized_clientsays which scope to delegate. Signing uses thecryptoextra.doctorshowssync:driveandsync:gtasks, reads the key and warns when others can read it, and asks Google nothing;sync --all, and so the schedule, runs both once the two variables are in~/.config/logbook/sync.env. The tour's Google Drive and Google Tasks sections give the setup in steps. logbook sync github: what happened in your repositories, oneevent/v1line (RFC 0009) per commit on the default branch, per issue and pull request created, closed or merged, per review and per comment, read-only over GitHub's REST API (GETand nothing else). The text is kept in full — a commit's message, a body, a review, a comment — becauseevent/v1hasnotes, the description body; a public repository's lines are tier 1, whoever wrote the words, as RFC 0009 says of an entry whose notes carry someone else's words, and a private repository's are tier 2 (under Changed). Each line names who acted (login,id,type, a commit's author name) and marks themownerorother; a person's login is the line'sorganizer,github:<login>. A line whose own text carries an agent session's marker (Generated with Claude Code, aclaude.ai/code/session_link, aClaude-Session:orCo-Authored-By: Claudetrailer) isagent: true; a pull request's body flags every line of it.raw_idiscommit/<sha>for a commit and<repo>/issues|pull/<n>/<action>,…/reviews/<id>,…/comments/<id>for the rest. Configured by the environment alone:LOGBOOK_GITHUB_TOKEN(a fine-grained token, read-only),LOGBOOK_GITHUB_REPOS(owner/nameor links, or--allfor every repo the token sees but the forks),LOGBOOK_GITHUB_URL(a GitHub Enterprise Server). A watermark per repo, read back a week; a repo with no mark is read whole;--since,--dry-run; every list paged by itsLinkheader, never to another host; GitHub's secondary limit waited out asRetry-Aftersays, its hourly limit until its reset, a 5xx backed off doubling, and a wait too long stops the run on one line with the watermark kept. How many files a commit changed, who closed and who merged are asked only for lines the record does not hold.doctorlistssync:githubby name only;sync --allruns it.logbook add github-export DIR: an old project's clone (a working copy or a bare repository, from GitHub or anywhere) or GitHub's account export, read once. A line per commit from the git log with its message in full, and a line per version of a README or a doc with its blob, digest, length and word count, never its text, so an old project's ideas have a first-said date. The account export's issues, pull requests, reviews and comments are the linessync githubwrites, so the same commit (by sha) and the same issue (by number) read both ways are one line. Git runs read-only and never fetches; a clone is never called deletable.policy/owner.jsonlistshandles: your logins (ines-example,@ines-example,github:ines-example), by whichsync githuband the export mark your own acts. Optional, as the other keys are;initwrites it empty.people review: a GitHub handle is an observed person, keyed bygithub:<login>after an email and a phone, named by the name a commit gives, and proposed to the person of that name; your own handles are never listed.logbook sync mail: the mailbox live over IMAP, read-only — folders opened with EXAMINE, bodies fetched withBODY.PEEK[], never a STORE, COPY, MOVE, EXPUNGE, APPEND or flag change, which the tests assert on a fake server's command log. Configured by the environment alone:LOGBOOK_IMAP_HOST,LOGBOOK_IMAP_USER(the mailbox address, theaccounton every line),LOGBOOK_IMAP_PASSWORD(an app password, never logged, never written), optionalLOGBOOK_IMAP_PORT(993, TLS always) andLOGBOOK_IMAP_FOLDERS(default: the folder flagged\All, Gmail's All Mail, else INBOX and the\Sentfolder). Every message goes through the mbox adapter's ownparse_message, so a Takeout import with--accountand the live pull of the same mailbox never write a message twice; headers are fetched first and the record asked which Message-IDs it holds, so no body the record would refuse is fetched. Per folder a mark of UIDVALIDITY and the highest UID, written only once the lines up to it are in the record (state/mail.json): a lost connection resumes from the last batch written, a UIDVALIDITY change reads the folder again and writes nothing new,--sincesearches from that day,--restartdrops the marks,--dry-runcounts and writes nothing. With Gmail's extension the labels and the thread id are taken once at ingest, as the import takes them.doctorshowssync:mail;sync --allruns it among the quick sources.logbook sync notion: what happened in Notion on each day, never what the pages say. Oneevent/v1line (RFC 0009) per page, local day and action —created,edited,moved,archived— with the page's title, the titles above it, its id and url, and who acted (id, name, person or bot, andownerorother);raw_id<page id>/<day>/<action>, so a page edited twice on one day is one line. The body is never stored: the line holds its SHA-256, its length, its word count and the words since the page's previous line, so the Day can say "+340 words" without the text. A database row also carries its status, select, multi-select, date and checkbox values and, for each that changed since the page's previous line, the old and new value; never text, a number, a person, a phone, an email, a url, a file or a relation. A move carries where the page was. Tier 1, as SPEC §4 and RFC 0009 giveevent/v1, whoever acted. Configured by the environment alone:LOGBOOK_NOTION_TOKEN(an internal integration's secret; share the top-level pages with it),LOGBOOK_NOTION_ROOTS(page or database ids or links to limit to; default everything the integration can see),LOGBOOK_NOTION_OWNER_ID(used only to mark the owner's own actions; else the integration's owning user when Notion names one). Read-only — GET, and POST only to Notion's search — at most three requests a second; a 429 or 503 waits whatRetry-Aftersays, another 5xx backs off doubling, and a limit that does not lift stops the run on one line with the watermark kept. The watermark is the newestlast_edited_timeseen, read back two hours;--sinceand--dry-runas for every live source.doctorlistssync:notionby name only and asks Notion nothing;sync --allruns it among the quick sources;setupsays where the token comes from.review goal: each open goal is asked once a week in the review sitting and answered with--say N advancing|stalled|done|let-go|superseded [--note N TEXT], the linegoal review … --period weekwrites, byte for byte (RFC 0036 amendment 1).dream weekasks one stale question a week about the stalest holding or idea (RFC 0037 §10.6), kept in the week's draft asextra.question: never a line of its own, never a status, never above the draft's tier.- The call synthesis proposes up to three ideas the call put forward, new or refining one you named;
they wait in
review idea, marked[call], and reach the Ideas shelf only when you accept one. - With the Telegram notifier set, the schedule sends "Your Day page for
is ready" after the 06:00 close ( LOGBOOK_NOTIFY_LINK_HOSTadds the link) and the evening question atLOGBOOK_NOTIFY_EVENING_HOUR: one message each a day, nothing of the day beyond the date, the count and the question. doctorwarns on lines dated outside their source's plausible range (calendars 1970 to now plus 5 years, mail 1990 to now plus 1 day, the rest 1970 to now plus 1 day), per source with the earliest and the latest;doctor --implausiblelists the line ids;policy/plausible.jsonoverrides a range per source. Nothing is deleted or hidden (docs/doctor.md).transcript synthesize ID|--day DAY [--dry-run] [--show-prompt] [--again]: a model reads one call through the dream's engine, under the samedreamentry ofpolicy/crossing.json, and writes onedraft/v1line (unitevent, subject the transcript line's id): the actions proposed on top with assignee and due hint, the topics consolidated across the whole call, the decisions (settled, not discussed), the open threads and a short personal part. The schema and the work-only rule are the prompt's (logbook/contrib/synthesis-prompt.md, docs/synthesis-prompt.md), never a filter in the code. Utterances are not lines, so every segment's evidence is the transcript line and the utterances it rests on, with their time into the call, are kept underextra.segments; a reference the material did not give makes the item unsupported and more than 30 % unsupported refuses the answer. A call above the entry'smax_tierstays home (the granola and transcript adapters write tier 3); one the same model synthesized is unchanged and nothing is sent; another model or--againsupersedes (docs/transcript-synthesis.md).dream --catch-up, and so the 06:00 close, synthesizes each call of the days it covers that has no synthesis yet, and counts the calls the ceiling held back.- The Day shows a call's synthesis as one collapsed row under the call's own row, beside the day's draft and
never in its place (one draft per unit, RFC 0036 amendment 1);
serveopens it behind a toggle, actions on top;day --jsoncarries the items undersyntheses;--no-dreamleaves them out. - A call's synthesis follows the policy like any draft: it records the
dreamentry it was made under (extra.policy_version); one above the entry'smax_tiertoday is withheld, the Day sayingsuperseded by policyunder the call (syntheses_withheldin JSON) and nothing of it; one made under another version of the entry is synthesized again bytranscript synthesizeanddream --catch-up. - The family's home videos as a source (Videos, RFC 0040).
logbook sync drive --videoswrites one tier-2video/v1line per video file in the Drive folderLOGBOOK_DRIVE_VIDEOS_FOLDERnames and its subfolders, from Drive's metadata alone (id and path, size, length, frame size, the md5 Drive reports, Drive's created and modified times kept as the upload's underextra, never as when anything was filmed); the line'satis when it was imported; no byte is downloaded, the photos beside the videos are never listed, a quota answer stops with one line and the watermark kept, and each Drive id is written once. logbook videos fetch [--limit N] [--again] [--cache-gb N], the only command of the videos that uses the network: the next files nobody has inferred, one at a time, into a bounded cache understate/videos/(8 GB unless you say, kept for the next run), each verified against Drive's md5 and resumed from its byte when a download drops; a file bigger than the cap is refused and said so;--againfetches the inferred files too, to infer them under other models or settings.--modelsfetches the speech and vision models once. Needsdrive.readonlydelegated to the Google key.logbook videos infer [--since DAY] [--limit N] [--keep] [--dry-run], on this machine with no socket opened: each cached file cut into scenes (one continuous recording each: a cut in the picture, a weak cut with a break in the soundtrack, or a gap of silence; breaks closer than 3 s merged), each scene's speech heard by the transcribe extra and three of its frames looked at by the describe extra; onetranscript/v1line per file (WebVTT, the cues' times the file's; no call, so the 06:00 close andpromisesleave it out, andtranscript synthesizerefuses it by day or by id) and onedraft/v1per scene proposing a place from yourplaces.jsonandassets.json(a sign, a boat's name, what was said) and a date no more precise than a burned-in camcorder stamp or a year written or said, every sentence citing the frames or the speech it rests on, a scene with nothing to go on saying so. Needs ffmpeg on the PATH. The file leaves the cache once inferred; a file inferred again supersedes its earlier draft of each scene cut the same way.logbook review video, one more queue of RFC 0037's one review sitting, listed with the others byreviewalone: one scene at a time, the surest first, with the frames and speech the proposal cites and, for a proposed day the rules trust, where the record had you and your assets;--acceptwrites oneattribution/v1line binding the scene to the place and/or date or range (the video's own line is never touched), its own options--placeand--date(refused for every other kind) confirm with your own,--rejectwrites the scene's no, onescene-review/v1line of its own (RFC 0040 §5, never RFC 0037'sentity-review/v1, so no place's or asset's queue reads it), and the proposal does not return while the no stands,--askkeeps the scene in an open task for a later page for the family.doctorgains avideosline: files, fetched, inferred, scenes proposed and confirmed, the cache against its cap.logbook export world --style chart: the record on a period chart, beside the globe in the same folder (world-chart.html; the chart). Mercator's sea chart drawn on the canvas with no image in it: sepia paper, the coasts of the same Natural Earth land hachured, a compass rose and its thirty-two rhumb lines, the graticule engraved with a graduated border, names and dates in the system's serif; stays as pricked positions, journeys as dashed tracks with day marks, assets named along their tracks; the globe's scrubber, line for line; the paper stays light in dark mode. The track is evidence: the page's record JSON is the globe's byte for byte, a track is the straight segments between its own fixes, an asset is at its last fix (never between two), and a day mark is at a recorded position, dated by the record's own days.export world --chart FILE --control-points FILE --chart-credit "…": your own scanned chart (PNG or JPEG) as the paper. Three or more control points (pixel → lat, lon) fit an affine transform (a scan), or with six or more a projective one (a chart photographed at an angle); each point's leave-one-out residual is shown in a corner, and a fit worse than 1 % of the image's diagonal is refused, as are points in a line or a mirror image. The image is carried in the page (at most 4 MiB; a PNG over it downscaled, a JPEG refused), with its EXIF, XMP, text, profile and anything after its end left out, and nothing is fetched: the page's policy staysdefault-src 'none'. The legend credits the chart in your words.export world --journey ID: one page per journey, in either style — a trip asshow tripsnames it (trip:FIRST:LAST, its days to the return day) or onejourney/v1line (its days, it alone) — each its own file and its owncrossing/v1line.
Docs
- The demo site, bighydro.github.io/logbook/ines/, is exported
at tier 2: Ines Nordmann does not exist, so her notes and messages are shown. The docs workflow writes
the
siteentry into the demo record'spolicy/crossing.jsonand runsexport site --tier 1,2; her health and money, tier 3, never go to a site. One of her days is the way in, at the same path on every build: days/2025-06-14.html, a night at the cabin with Ola.docs/site.mdanddocs/demo.mdsay so. docs/home-server.md: running Logbook on a home server, a runbook to follow in an hour. Two users (recordsholds the record and runs every writer,ownerruns thesudolines Logbook prints), where the record lives and why no synced folder may hold it,serve --install-service --systemandsync --install-schedule --systemwith what each prints, the env file written withread -s,day_start, one writer with ansshalias and read-only checkouts on the laptop, backups and the monthly restore test, the local model as a daemon of its own and thedreamentry, the pages on a phone over a private network, whatdoctorshows when all is well, and a troubleshooting table. Linked fromdocs/index.mdand the site's navigation.- docs: the manifesto, the ten rules, and Letter 0 — why I built it.
Tests
tests/test_no_network.pyruns every readerlogbook --helpnames under the guard that refuses every connection, 147 forms where there were 46:promisesandpromises tasks,goal list,chapter list,reviewand each of its kinds,status list,peoplewithmerge,review,driftandnearby,show person,assetandplace,lab introductionsandlab chapters,setup places proposeandreview,setup assets list,setup questions list,setup day_start,doctor(with--implausibleand--packet),doctor sources,import inbox list,import attachments statusandverify,key show,backup list, and the dry runs ofderive flights,keepersanddescriptions,day reflect,repair,export crossingandexport trip-bundle; andshow orgsandshow org NAMEon the orgs oftests/orgs_record.py, since the demo names none. Every pageserveanswers is read under it too:/journeysand one journey,/peopleand one person, and/worldjoin the eight there were, the Manifest, its people and one org's page read the orgs record,/todayis held to its redirect and/favicon.icoto its empty answer. Andday reflect DAY --audio FILE, with the Day page's recording form, is heard under it (tests/test_day_reflect.py). No reader or page asked for a connection; no code changed.SECURITY.md, Nothing leaves:dreamandtranscript synthesizejoin the commands behind which a socket opens, for the model endpoint thedreamentry allows.
Profiles
star/v1(RFC 0041, draft): the owner's star on a line,line,kind,note,supersedes, at the starred line'satand tier.keeper/v1gains the MAY fieldnoteby a dated amendment of RFC 0024; RFC 0030's trip bundle carries the stars on its lines by another. No envelope change.
0.6.1 — 2026-10-10
Fixed
doctor,verifyand every reader of the chain hold at most a handful of month files open at once, however many the record has: the chain-order merge (Logbook.lines), the sorted fallback, the index's reads,migrate,sealandappend_manyeach keep a bounded set of handles and reopen a file where they left off. A record of a few decades (hundreds of month files) faileddoctorandverifyon macOS with[Errno 24] Too many open filesunder the default limit of 256.logbook sync immichsays what it is walking before it starts and never a number that reads as the total unless it is one: the first line isimmich: N assets on the server, M already in the record(NfromGET /api/assets/statistics, the key's own count, else the server'sGET /api/server/statistics;total unknownwhen neither answers;Mthrough the index), then one page line asx of N assets(x assets since <watermark>on an incremental pull,x assets so far (total unknown)otherwise). A first walk of a 426,121-asset library printed an opening line that was read as a total of about 85,000 and then counted past 467,000, and was stopped as a suspected loop.- Each asset is fetched once: pages are ordered by
fileCreatedAt, which is not unique (a burst, a live-photo pair, a batch of scans or received files stamped by the importing device share a second), and the cursor names a stamp, not an asset, so the page after a boundary inside a run of equal stamps began at that stamp again and served the run's earlier members a second time — about 41,000 more fetches than assets over that library. The adapter keeps the ids of the previous page's last-stamp run and drops them when they come again; the summary saysalso N served again by the server at a page boundary, counted once. A run longer than a page grows the page (up to Immich's 1,000) and one longer than that stops the walk with one clear error naming the stamp, never a loop. The record's dedupe by (source, raw_id) stays the safety net. - An interrupted walk resumes: after every page the adapter tells
syncwhere the walk could continue, andsyncwrites that checkpoint (cursor, assets so far, the boundary ids, the watermark so far) underwalkinstate/immich.jsonat every checkpoint of the record, never ahead of the lines on disk; the next run saysresuming where the last run stopped, at x of N assetsand asks for nothing before the saved cursor. The walk's watermark is written only once the walk completes and is never later than the moment the walk began, so what the server changed meanwhile is pulled next time.--restartwalks the whole library again;--sincebegins a new walk; a dry run resumes too and saves nothing. logbook sync --allruns the quick sources first andimmichlast, and its first line says the order (running dawarich, imessage, …, then immich last), so a photo walk of hours never holds up the messages, the calendar, the positions or the weather.--allrefuses--restartas it refuses--since.logbook add <mbox> --dry-runcounts a message that appears twice in the same mbox (Takeout writes one under every label it carries) as the real run does — written once, the repeat refused — and says1 repeated in the inputbeside what is already in the record, instead of counting both as lines it would add. The counts ofsync's summary line carry thousands separators.- One writer at a time (#234):
appendandappend_many, andadd,syncandimport backupfor the whole of their run, holdstate/writer.lockin the record folder, so async's walk is inside it. A second writer printsanother logbook command is writing to this record (<command>, since <time>); waitingand waits, or with the global--no-waitrefuses with exit 2; a lock whose process is gone is taken over with one line saying so; a reader never takes it. The guard behind the courtesy: before every batch is written,append_manyreadslogbook.jsonagain and refuses (HeadMoved, one sentence, exit 2, nothing written) when the head moved since the batch was computed, so a batch chained from a stale head can never reach the files. A longsyncwhose head another command had moved past used to lose its batch withsqlite3.IntegrityError: UNIQUE constraint failed: lines.seqfrom the index, after the month files had taken it.
Added
logbook serve mcpgains three read tools behind the samemcpceiling ofpolicy/crossing.jsonas the nine before (docs/mcp.md):day_lines(day?, kinds?)islogbook show DAYas one object per standing line, in time order, with the line's id, kind, profile, local time, counterpart and the text part of the rowshowprints,kindskeeping only the profile families asked for (mail,message,transcript,note,location,photo,calendar);line(id)is one line in full, the row, the payload and the text, a transcript's turns read from the attachment store aspromisesreads them;digest(period?, date?)is the textlogbook digest DATEprints, or the seven digests of the ISO week that holds the date. Lines above the ceiling are left out ofday_linesand counted inabove_ceilingwith nothing of them crossing, not even an id;linerefuses one naming its tier and nothing else; the digest is read through the gate, so at a ceiling of 1 it is the digest of a record that holds only tier 1. An agent on this machine could search a day's lines but not read them without a word to search for, read a transcript's summary but not its text, and not get the digest; now it can, under the ceiling. The server logs one line per call on thelogbook.mcplogger (stderr): the tool, the day or id, and counts — never content. The rowshowprints for a line moved fromlogbook/commands/rows.pytologbook/contrib/rows.pyso a contrib reader can print it (the commands import the same names); nothing any command prints changed.logbook people review(logbook/contrib/people_review.py,docs/people.md): the record's people in two layers. An observed person is what one source saw, keyed by its strongest identifier — the email address, else the phone number in E.164 (a WhatsApp JID read as the number it spells), else the folded name — never by a per-observation id, so an address seen under three display names is one person; they are a derived table in the index,observed_people, built from the standing mail, message, transcript and event lines, stamped with the head and rebuilt when the record grows, nothing stored in the record. A canonical person is one the resolution lines name, aspeoplelists them. The command proposes each observed person not yet placed against the canonical people, ranked by the evidence (same email 60, same phone 50, same name 20 and +5 per further source, together on the same days 2 per day) and numbered;--accept N[,N]writes the alias linepeople mergewrites, one per identifier as the lines wrote it;--reject N[,N]writes onepeople-review/v1line (RFC 0035, draft) saying the two are not the same person, so the pair never comes back;--all-above SCOREaccepts at or above. Nothing is promoted on its own; every number is checked before the first line is written;--jsoncarries the queue, the unplaced and a stable id per pair.logbook people --priority [--year YYYY]ranks the canonical people heard in the last year by a plain sum printed beside each name: 3 per day together, 1 per message exchanged (the smaller direction, up to 50), 2 per meeting, 10 when the last real contact is within 30 days and 5 within 90. No model.logbook promisesreads mail and messages (docs/promises.md): everymail/v1andmessage/v1line beside the transcripts and the notes, by rules alone, in two sections. I promised is every commitment cue in a line you wrote (a mail from one of your addresses, a message withfrom_me, your turn of a transcript, a note); I was asked is every request cue in a line you received. Who wrote the line decides, fromowner_emails,policy/owner.jsonand the resolution lines, never the words: a request in your own mail is you asking and is not proposed, a commitment in someone else's is theirs and--alllists it apart. Each row carries the day, the counterpart (to Ola Nordmann,by Kari Nordmann: the person the record resolves behind the address, the number or the chat), the sentence, the due hint, the proposal's id forpromises doneand the origin line's id, whichlogbook day sign DAY --confirmtakes (RFC 0034). New flags--mine,--theirsand--source mail|message|transcript|note;--sinceas before. The cue list, documented in full, gains the terse forms of both languages (will do,on it,mach ich,schick ich dir,erledige ich,versprochen, a shortby Fridayorbis Freitagon its own) and the requests (can you,could you send,would you mind,please confirm,let me know,don't forget to,kannst du,könnten Sie,schick mir,sag mir Bescheid,vergiss nicht). A mail body is read up to its first reply header or signature delimiter with the quoted lines left out, so a reply that quotes a promise never proposes it again. The rules show by default; the judge stays opt-in (--judge), reads your commitments only (never a request), and a verdict of no, or below 0.6, sets a candidate aside, which--allstill lists. Under--jsonevery proposal carriesrole,counterpartandline; the report carriessources,mine_only,theirs_onlyandallwhere it carriedjudged_only. Recall test on a synthetic fortnight of the Oslo persona (24 planted commitments, 12 planted requests, 60 distractor lines across mail, iMessage, WhatsApp and one transcript;tests/test_promises_wider_net.py): the rules read 22 of 24 and 11 of 12 at precision 0.97; the test holds them to 20, 10 and 0.8.logbook repair fork [--apply](logbook/core/fork.py, #234): a record whose month files hold two chains forked at one head — a longsyncwrote its batch chained from a head another command had moved past, and the index refused it after the files took it — is diagnosed (the fork, each orphan chain's count, seq range, sources and files,logbook.jsonagainst the record's chain; counts and hashes only, nothing written) and with--applyrepaired: every orphan line is copied in order torepair/<stamp>-removed.jsonlin the record folder with arepair/<stamp>-report.json, each touched month file is written again without them with every kept line byte for byte,logbook.jsonis set to the record's head, the index rebuilt andverifyrun. The record's chain is the one the index agrees with, else the longer one, else the command refuses;--keep-head <hash>(a full head as the dry run prints every chain's, or a unique prefix) names it and overrides both rules, and without an index the dry run says it is the safer choice; it also refuses a break that is not a fork, a torn month file, a sealed orphan line it cannot open, and a folder under a sync client.doctor's record check names it besidelogbook verify;docs/recovery.mdis the page.logbook day sign YYYY-MM-DDtakes--confirm noneand--at RFC3339, RFC 0034 amendment 2 (docs/rfcs/0034-the-signed-day.md,docs/signed-day.md).--confirm nonesigns a day with nothing confirmed: thesigned-day/v1line carries an emptyconfirmed, the page digest is still over the page as shown, the header sayssignedand the day's lines cross as those of any signed day; the word goes alone, andnonebeside an id or with--kept,--missed,--droppedor--carriedis refused in one sentence.--atis the moment the owner clicked rather than the moment the command ran, an RFC 3339 moment with an offset orZ, stored in UTC and shown in the header in local time; a malformed moment (refused with an example), one more than five minutes ahead of this clock, or one before the day signed starts in the record's zone is refused and nothing is written. Without either flag nothing changes.- Dispositions on the signed day, RFC 0034 amendment 1 (
docs/rfcs/0034-the-signed-day.md,docs/signed-day.md):logbook day sign YYYY-MM-DDgains--kept ID,ID,--missed ID,ID,--dropped ID,IDand--carried ID,ID, and thesigned-day/v1line an optionaldispositionsobject, a confirmed line's id → one of the four words; a line given one is confirmed by that, and an unknown id, a retracted line, a line given twice or a flag that names no line is refused in a sentence.day DAYprints ✓, ✗, – or → before each line the signature disposed of and carries the map undersigned.dispositions;showcounts them on the signature's row;promisestreats kept and dropped as closed, missed as closed and flagged (missed on <day>), carried as still open, and carriesdispositionin its JSON;export crossingcarries the field with the line. The field is optional: every signature written before, the conformance samples' 32nd line included, is valid and its hash unchanged. - The signed day, RFC 0034 (
docs/rfcs/0034-the-signed-day.md,docs/signed-day.md,logbook/core/signing.py):logbook day sign YYYY-MM-DD [--note TEXT] [--confirm ID,ID]appends onesigned-day/v1line, tier 1, sourcemanual, saying the owner read the day's page and these are its facts — the day, the owner as subject, the ids confirmed (every line on the page by default, else the seqs or ids named), the digest of the page as shown (the SHA-256 over the hashes of the lines the page listed, in order, so any implementation recomputes it) and an optional one-line note. Nothing is rewritten; a day signed again is superseded by the later line, and a retracted signature leaves the earlier one standing. Only the owner signs: the MCP server has no such tool.show DAYsayssigned <when>orunsignedin its header and lists a signature as a row on the day it was written;day DAYsays the same after the weekday,, the page has changed sincewhen the day grew after signing, and carries it undersignedin--json. The conformance sample gains a 32nd line, the first day signed on the last evening (new heads inconformance/README.md). logbook export crossingcrosses the lines of signed days only, by default (RFC 0034 rule 5): a line's day is the local day of itsat, a signature crosses with the day it signs, the console says how many lines were held back on unsigned days, and--unsignedcrosses them too. The manifest'spolicycarriessigned_days(onlyorany),countsgainsheld_back_unsigned, and thecrossing/v1line'spolicygainssigned_only. The shared page, the trip bundle, the vault and the site keep their own selections.- Readiness (
logbook/core/readiness.py):logbook day DAYgains areadinessrow, and--jsonareadinessblock, saying for each class of source — mail, message, meeting, location, photo, calendar — whether the day has lines of it, from which sources, and which usual sources (a line of the class on four in five of the logged days of the last four weeks, not disabled inpolicy/import.json) have not delivered; from the record and the policy alone, no connection opened, nothing written. - ADR 0022, the record's home (
docs/adr/0022-the-records-home.md): one machine holds the only writable copy, runs the sync schedule, the MCP server and the local models, and serves the Day page over the owner's own network; every other device is a reader; an orchestrator elsewhere reaches the record only through the crossing; sources come to the home; a collaborator is an OS user on it; and every cloud model or service that may see record content has its own entry inpolicy/crossing.json.logbook sync --install-schedulenames this machine the home instate/home.json(hostname and date; a second install on the same host keeps the date).doctorgains ahomeline (pass on the home or when none is set, a warn elsewhere: writers belong on the home) and acrossingline listing every destination's ceiling as it counts today. policy/crossing.json: an entry may carry"until": "YYYY-MM-DD", the last day it holds; from the next day it counts asmax_tier0 forexport crossing,export vault,export siteand the MCP server, the refusal says when it expired, anddoctornames it. Anuntilthat is not a date is refused naming the file.
0.6.0 — 2026-10-06
Twenty-two commands where there were forty-nine, and logbook --help on one screen; every old name still works and says the new one. One package in three tiers, core, contrib and labs, with a thin command line that loads no adapter until one is asked for. Tiers 2 and 3 sealed at rest with age (SPEC v0.3, RFC 0029): the chain still covers the real payload, so a keyless verify holds. Property tests of the format, the chain, the tiers, time and identity, and a strict reader that reports the last whole line of a torn month file. The profile freeze (RFC 0031): nineteen profiles frozen with one conformance fixture each, two withdrawn, trip/v1 written as journey/v1. Mail at scale, read through the index. The paper products: a year on one sheet, a week on four pages, a trip page that prints. Local models for transcripts and photo descriptions, nothing leaving the machine. The manifesto, the rules, the open problems, governance and the roadmap, with the first letter to builders. A synthetic forty-year record published with the docs, and logbook demo for trying every command on nothing of yours. Issues closed on the way: #83, #96, #98, #118, #121, #122, and tonight #79 (add says what the record already held) and #123 (show orders a day by the instant).
Breaking, and the migration. The old command names (year, trips, infer, import-backup, person, …) still run, print one line naming the new command, and will be removed in 0.7. The 0.5 import paths (logbook.store, logbook.adapters.*, …) work through shims with a DeprecationWarning until 0.7; docs/migration-0.6.md lists every move. A format 0.2 record is read unchanged and never migrated; it becomes 0.3 only when it is given recipients and sealed.
Added
- Reading never opens a connection, now a test (
tests/test_no_network.py) and a paragraph ofSECURITY.md: theno_networkfixture oftests/conftest.pyreplaces the socket,urllib,http.clientand, where installed, thehttpx,requestsandwebsocketsrequest paths with ones that record and refuse every connection;day,days,show,trips,trip,rollup(every kind),derive stays,year,digest,stats,ledger,keepers,places list,people,assets status,sources --gaps,searchandverify, each in its text and--jsonforms, run against the demo record under it, as do every page ofservethrough itsSiteandmcp --inspect, and the list of attempts must be empty afterwards, whatever the command printed or caught. The same run holdsverifyonconformance/sample-logbookto the headconformance/README.mddocuments. No reader attempted a connection; no code changed. apple-podcastsfrom an iPhone backup, withcompletedand the feed's transcript URL (docs/adapters/listen.md):import-backup --only podcastsis a new source — the Podcasts library,Documents/MTLibrary.sqliteunder the app groupgroup.com.apple.podcasts, is copied intoinbox/ios-backup-<udid>/apple-podcasts/with its-wal/-shmand read by the same adapter as a copy or the Mac's own store, so the phone and the Mac dedupe each other. Everylisten/v1line now sayscompleted: the playhead within 30 s of the duration, or rewound to zero with a play counted, as the app leaves an episode it played to the end; absent when the store has no playhead column, false when it cannot show either, never a guess (RFC 0019 gains the field; rule 3 reads it first). Where the store keeps the URL of the transcript the episode's feed publishes (<podcast:transcript>; the columns are discovered by PRAGMA, none required) it lands underextra.transcript_url— the URL alone, never fetched: a reader never touches the network, and Apple's own transcript identifiers, which are not public, are never recorded. Fetching them, as an explicitlogbook fetch transcripts, is the follow-up noted in the docs and not written.rollup listengains a podcasts section per year: the episodes' hours by show (as the services spell them, by hours then episodes) and by month, printed only for a year with an episode; under--jsonaspodcastswithby_show,monthsand the line ids. Synthetic fixtures only.logbook rollup people --drifting [--until YYYY-MM-DD] [--window 365] [--min-contacts 3] [--json](logbook/drifting.py): for every person the record resolves, the contacts in the recent window —--windowdays ending on--until, the record's last day by default — against the same number of days before it, and the people whose frequency fell most, the larger share lost first. A contact is a direct message either way, a call answered or not, a calendar entry attended, or a stay the with module confirms them at (together); mail and a tagged face are not one. Per person the two counts by channel, the fall, the days from the last real contact to the window's last day, the channels that went quiet and the last shared place; under--jsonevery number carries its line ids. A person with fewer than--min-contactscontacts in the earlier window is not listed. Two readings oflogbook people's reader, one per window, compared and never written; it says what the record holds and suggests nothing. Documented indocs/rollups.mdwith the method and its blind spots (a person met in person daily with nothing logged about it looks drifting; a source not brought up to date reads as silence; a record younger than the two windows undercounts the earlier one, and the rollup warns). The people reader'sChannelkeeps the ids of its lines (ids), not in its JSON; nothing else changes. Synthetic fixture: two fortnights of the Oslo persona's circle.- The digest's closing question comes from the record (
logbook/questions.py, RFC 0027,docs/rfcs/0027-reflection.md):policy/questions.jsonlists the questions —id,text(English, optionaltext_de),kind(gratitude, savouring, people, place, body, open),when(the day's facts that must hold:travelled,aboard,night_away,reunionfor someone seen after ninety days,!photos,long_sleep, ...; the table is in the RFC),weightandsource(a free-text citation, empty in the defaults) — written with its defaults the first time and never overwritten.logbook digestreads the day's facts from the parts it already has, draws one of the questions whose conditions hold by weight (a{proposed},{missing},{promise}or{event}in the text filled from the day), never the same id two days running, and remembers the last seven instate/questions.json— bookkeeping beside the record, never a line; a day's question stands when the day is read again. The defaults are the seven nudges the digest used to choose in code, each as a question with its condition, plus three placeholders; the content of the bank is explicitly left to a future author (the RFC's The question bank — to be written).logbook questions list|add|disablemanages the file; a bank that is not the documented shape stops the digest naming the file. Under--jsonthe digest'squestionis{id, kind, text, facts}where it was{about, text}. Tests for the facts, the weighted choice and the no-repeat rule (tests/test_questions.py). logbook setup(logbook/setup.py): the guided first run, for someone who has never used a terminal. Six steps, one question at a time, each with its default in brackets and a Why: line: where to keep the record (a folder iCloud Drive, Dropbox, OneDrive or Google Drive syncs is refused with the reason,doctor.cloud_folder, and so is a code checkout; a record already there is kept), the timezone (validated against this machine's zone database, never swapped), who you are (names, emails and phones intopolicy/owner.json, added to what it lists, the emails asowner_emailsinlogbook.jsontoo, so you are never your own company), your home place (coordinates pasted from a maps app, never an address: one entry of kindhomeinplaces.jsonand the naming as onenote/v1line, asplaces namewrites it), what is on this machine (a Google Takeout under~/Downloads, each product an adapter reads listed and the onespolicy/import.jsonswitches off said, a zip named and left to unzip; an iPhone backup under MobileSync, always imported with--onlythe stores found, never bare; an encrypted one namesLOGBOOK_BACKUP_PASSWORDandread -sand is never asked for the password; Messages on a Mac throughsync imessage; each offered with a dry run first and its counts shown before anything is written; then the live sources by the names of their variables and where each key comes from, never a value), anddoctor. Enter takes the default,sskips the step,qor the end of the input stops; the steps answered are kept instate/setup.json(bookkeeping beside the record, like every file understate/) andlogbook setupagain continues where it stopped;--step NAMEruns one step again,--againevery step,--yestakes every default and asks nothing (tests, scripts). Nothing printed spells the home directory (~/…), nothing printed or asked for is a secret.Logbook.set_timezoneandLogbook.set_owner_emails(logbook/store.py) are the two settings it writes tologbook.json.docs/first-hour.mdis the human companion: what to expect in the first hour, with the screens the wizard shows, in the docs nav; the README points at both.- Four more Google Takeout products, each its own sub-adapter in
logbook/adapters/takeout/and sniffed bylogbook addfrom its folder, each with a docs page under Adapters (Tasks, Maps, Home App, YouTube):google-takeout-maps(Maps (your places)/):Reviews.json, in both spellings Google has used, becomes onehighlight/v1line per review — the place as the title, the owner's words as the quote, stars and no words a bookmark of the place, the rating, Maps url, point and country underextra;Saved Places.jsonis never a line (a saved place is a name for coordinates, not an observation) but counted, andlogbook places propose --takeout PATHfeeds the saved places — name, coordinates, the list they were saved to, the day they were saved — as candidates: one within 300 m of an unnamed stay is shown under it and becomes the suggested name (--write, Enter adopts it), the rest are listed forplaces add; under--jsoneach proposal carriessavedand the objectsaved_elsewhere.google-takeout-home(Home App/HomeHistory.json): a member's arrival, a departure, the alarm armed (home or away) and disarmed are oneevent/v1line each at tier 1 (calendarGoogle Home, the home aslocation, the activity, device, member and words underextra), read by what the keys say so a renamed key still reads; sound events, alarm clips, other events andSoundSensing/andSecurityAlarmClips/are never read, counted where they are events. A Home line inside the owner's stay at home is evidence the Day attaches to the night's stay and that promotes a short cluster to a stay; it does not yet stand in for a track with no points (a Day rule, SPEC §3.2.3).google-takeout-youtubenow reads Takeout's default HTML (watch-history.html,search-history.html, the outer-cell/content-cell cards, streamed through the standard library's parser) beside the JSON, with the same mapping; the HTML's clock in the owner's zone by abbreviation is read in UTC, or in the record's zone when that zone uses the abbreviation at that wall-clock time (takeout.times.parse_in_zone), else counted as an unknown zone and never guessed.google-takeout-tasksis unchanged and gets its page. The saved-places reader behindplaces import-takeoutlearns the day a place was saved and skips review features. Synthetic fixtures for all four. - The paper edition:
logbook year YYYY --html PATH --printandlogbook trip ID --html PATH --print(logbook/print_page.py) write one HTML document designed for A4 and US Letter with CSS paged media — a cover (the owner's name frompolicy/owner.json, else a resolution's label, else the owner email; the year or the trip's dates), a contents page (the months with their days, nights away, flights and keepers, and the year's trips; or the days of the trip, then its route with the trip page's map on a page of its own), and one spread per month of the year or per day of the trip: the facts (the nights, the places by nights numbered to the map, the people confirmed — never a proposal — the flights, the sleep and the steps when the record has them, the keepers by lane) beside a map drawn as an inline SVG from the location lines themselves, the owner's and the asset's while aboard, with no tiles; then the keepers (RFC 0024) as hero photos sized to the page, one to a page, two stacked, up to six in a grid, more on another page, and no photo page when the span has none. Page numbers come from the page counter. Photos are referenced where they are, never copied: the attachment under the record when the pixels are stored (a §1.1 reference undercontentorattachment), else the original path the library wrote (path,original_path), else a frame with the photo's name. One inline stylesheet, no script, no link, nothing fetched. Every typographic constant — margins, text block, grid, type scale, faces, ink, map box, photo heights — is inlogbook/print_layout.py, whosestylesheet()builds the CSS, so a designer rethemes without touching logic. Fixtures: the demo record's 2026 and its yacht week (tests/fixtures/demo/print_*.html,scripts/make_print_fixtures.py), pinned byte for byte and checked structurally (every tag closed in order, everysrcanimg's withalt, nothing from the network), and a day with no photos lays out. Docs:docs/print.md, with how to make the PDF in a browser or with headless Chromium.--printwithout--htmlexits 2. story/v1, RFC 0028 (rfcs/0028-story-v1.md, a draft left unfinished on purpose, with Open questions for the author for the non-technical co-author who will finish it): a told story, as distinct from an observed event — the thing told,refers_to(the time it is about, as told and as a span: a year, a month, a day, a decade, or a phrase such asbefore the warthat is on no day),told_at,tellerandlisteneras RFC 0006 refs with the label known at the time,confidenceas the teller states it (sure,fuzzy,disputed),source(conversation, voice memo, interview, letter) and the transcript attachment it came from. Tier 2 by default: it carries someone else's words. The RFC says why a story is on the day it was told and never on the day it refers to, and howshow personand a futureyear --printmay list stories apart.logbook add story <file>... --teller <ref> --listener <ref> [--refers-to 1961|1961-05|1961-05-04|1950s|<words>] [--confidence sure|fuzzy|disputed] [--at …] [--tier 2|3](logbook/story.py) writes one line per file from a text or Markdown file (a front-matter block may carry the same fields; a flag wins) or a transcript/v1 JSON (the text is the transcript's, its bytes go to the attachment store,transcript_linenames the transcript/v1 line when the record has it); a ref iskind:value, an address, a+number or a name the record's resolution lines make one person;raw_idisstory:<sha256 of the file>, so a file added twice is one line; tier 1 is refused.showprints a story on its told day as📖 refers to <when> — told by <name> to <name>(--raw: the refs).day <date>lists the standing stories whoserefers_tocovers the date under Stories about this day, after what is unplaced and never in the timeline, each with its confidence, told day and first line;--jsoncarries them understories. Story text is in the search index. Fixtures: Ola Nordmann tells, Kari Nordmann listens; neither exists.- Launch kit, docs only:
docs/launch-post.md(Your life in a folder, the post for Show HN, Lobsters and r/selfhosted: the demo three-liner, the file-is-the-format argument, what the project refuses to do, what is rough, the ask; synthetic throughout),docs/adapter-bounties.md(the adapters not yet written — Telegram, Signal, Slack, Teams, Strava, Garmin, Oura, Notion, Mac Screen Time, HomeKit, bank CSVs by country — each with its export format, target profile, tier and a good first adapter mark), and four sections inCONTRIBUTING.md: the synthetic-data rule, the scrub rule, the clean-room rule for logbook-ts, and one session per worktree. Both pages are in the docs nav. mailat Takeout scale (docs/adapters/mail.md):logbook add mailreads a 20 GBAll mail Including Spam and Trash.mboxin 8 MB chunks with one message in memory at a time, the headers parsed by hand, the MIME tree walked by byte offsets, and no attachment ever decoded or copied — well over 40 MB/s on a laptop, where the standard library's parser managed 13. The body is read from at most 64 KB of its part (BODY_CAP); a longer one is cut and flaggedextra.body_truncated(countedwith the body cut at 64 KB). Every 10,000 messages a line on stderr gives the messages read, the megabytes and the rate (runtakesprogress(messages, bytes_read, elapsed);cli._read_progress). Resumable: the inbox manifest,inbox/manifest.json(logbook/inbox.py,Cursor), keeps per file and per set of options the byte offset of the last message the record holds — the adapter tells the cursor how far each file is read before every draft,append_manygainscommitted(taken), called after every checkpoint, andaddpasses it on — so an interrupted import picks up where it stopped (resuming at 8,421,113,344 of 21,474,836,480 bytes) and a finished one reads nothing (read to the end already). The cursor holds only while the file is the same (the digest of its first 4 KB and its size);add --restartreads from the first byte again, other options are another import, a dry run writes nothing. Threads, dedupe byMessage-ID,--only-labels/--skip-labelsonX-Gmail-Labelsand--sinceare as before. Senders and recipients stay{email, name}in the line, the candidates forpeople merge; the adapter writes no resolution line.tests/test_mail_scale.pygenerates a 500 MB synthetic mbox (fictional senders atexample.org;tests/synthetic_mbox.py) and asserts the rate and a flat peak RSS underLOGBOOK_SLOW=1; its quick tests check every message the standard library'smailboxfinds is a line here, on 4 KB chunks.logbook demo --years N(logbook/labs/demo_life.py, on the month'slogbook/contrib/demo.py): the Oslo persona's whole life, from her birthNyears before the day after 30 June 2026 to that day, deterministic from--seed, in phases by age that change the shape of the data — a childhood in Bergen of scanned photos, family entries and stories told about her by Kari and Ola (notes in their voice); school, where the calendar fills and Mia and Jens appear, with a phone from 14 (a thin track, iMessage texts, calls, the first flights declared from memory, the family's cabin weeks as trips); university in Copenhagen (lectures with Hanna and Freja, mail, a term in Barcelona of 131 nights); work (meetings, a monthly transcript, mail three times a week, Zürich twice a year, a month in Lisbon, the flight tracker from 30, Ola back at 29); the move to Oslo at 32 (the office, the cabin weekends, the Copenhagen visits); the watch at 34, so health lines start there; the boat at 35 with a July cruise and day sails on its own AIS track; three weeks in Rome at 37; and the default month at full resolution as the last month of a life of 36 years or more. People drift in and out (Jens last heard in 2005, Mia in 2011, the grandmother Solveig in the photos until 2014, Hanna once more in 2019, Ola out through the university years and back). Old years are thin: forty years are about 115,000 lines, every profile present and the chain verifiable; the month record is unchanged.--daysand--yearsare one or the other.event,messageandphotoof the story take asourceorprovenance;demo.generatetakesyears;demo.writewrites a story to disk. Docs:docs/demo.md(the phases, the knobs, the sizes, what to try). Tests (tests/test_demo_years.py): every profile and schema on forty years, trips in 2001 and 2025 and the Barcelona term, flights declared in 2000 and tracked in 2025, health from the watch's first day, the move read from the points, a baby's one-year record,peoplewith Jens and Mia a decade gone — read from the channels alone, sincepeople._togetherasks for the night of every day against every stay of the window and takes minutes on forty years.logbook describe keepers [--since DAY] [--limit N] [--photos DIR ...] [--model NAME] [--fetch-model] [--dry-run] [--json](logbook/labs/describe.py,docs/describe.md): a local vision model looks at each keeper's photo (RFC 0024) and writes one factual sentence and a short list of the visible things, as a derivednote/v1line (RFC 0010) on the photo's day —sourcedescription, tier 2,raw_idthe photo line's id so a photo is described once however many lanes it is in and however often the command runs,extra.derivedtrue,extra.engineandextra.modelnaming what wrote it,extra.photothe photo as the keeper names it,extra.keeper,extra.things; the text is the sentence thenVisible: …, sosearchfinds the things. The model sees the pixels and a fixed prompt only — never a name, a date, a location or a face — and is told never to name a person (faces are the library's job,keepers --people) and never to guess a place; an answer carrying any word of a face's name the library gave on that photo is refused and counted, never written. The file is found in the record's attachment store (a §1.1 reference undermedia,attachments,fileorcontent) or under--photos: an Apple Photos library by the asset UUID underoriginals/, any other folder by file name, case aside, walked once; a keeper whose file is nowhere is a counted skip. The engine ismlx-vlmon Apple silicon withpillow-heiffor HEIC, the new extraopenlogbook[describe], default modelmlx-community/Qwen2-VL-2B-Instruct-4bit, temperature 0, the hub offline while it runs; without the engine or the model the command prints the install and fetch lines and exits 2, and--fetch-modelis the only network use, astranscribeandpromises --judgehave it.show <day>prints the description under the first keeper row for its photo, indented to the text column; with no keeper standing it is a row of its own. Synthetic fixtures: the Oslo persona's keepers with a faked engine; a test asserts no socket opens during a run.logbook export site <folder> [--tier 1|1,2](logbook/site.py,docs/site.md): the readers as a folder of static HTML — a Year page per year (the pagelogbook year --htmlwrites), every Trip page (logbook trip --html, the map inside), a Days index per year (serve's/daystable, one row per day the record covers, each an anchor), the places (/places), the people (an index by days together, and a page per person with the years together and the trips) and a root page — written as plain files with relative links, one inline stylesheet each, no script, no image, nothing fetched, so the folder reads the same from a file manager, under any prefix on any web server, or in twenty years.servewritten down:serve.Sitetakestiers,href,navandfooterand renders a static page through them,year.htmlandtrip_page.htmltakenavandlinks, and the rendering is the same either way. Tier-gated exactly like the vault (ADR 0016): the day, days, year and trip readers read the record throughreading.read(..., tiers), so a line whose tier is not in--tieris in no page, no stay, no night, no companion and no count; the resolution lines (the name overlay) are read whole, as the vault reads them, so a tier-1 site names whoever a tier-1 line confirms present; the ceiling is thesiteentry ofpolicy/crossing.json(policy.site_ceiling), tier 1 when the file does not name it; tier 3 is refused. Every run appends onecrossing/v1line (RFC 0011) with destinationsite, the window, the counts, the ceiling and the digest of the folder as written; re-running rewrites only the files whose content changed and deletes nothing.- The demo persona's forty years, browsable without installing anything: the docs workflow (
.github/workflows/docs.yml) now runs on every push tomain, generateslogbook demo --years 40 --seed 1, exports it withexport siteat tier 1 intodocs/ines/and publishes it with the docs at/ines/on GitHub Pages — the samegh-pagesbranch, the same deploy. Before the build,scripts/check_synthetic.pyfails the workflow if any page carries an identifier outside CONTRIBUTING.md's synthetic allowlist (an email at a domain other thanexample.org, a phone number outside07700 900xxxand+47 9000 000x, a nine-digit number in an assigned MMSI range, a URL of any kind) or anything the owner'spii-patternsfile names, printingfile:lineand a count and never the text: the scrub rule, applied to the rendering. logbook export vault <folder> [--since YYYY-MM-DD] [--until YYYY-MM-DD] [--tier 1|1,2](logbook/contrib/vault.py,docs/vault.md): the record as a folder of plain Markdown an Obsidian or Logseq user opens as a vault — one page per day (the Day with YAML front matter: date, weekday, country, the nights either side, places, people, trip), one per named place inplaces.json, one per person confirmed present, one per trip, one per year and a root page, every page linked to the others with wikilinks, so the graph view shows the record's shape: home at the centre, days hanging off their places and people, trips as short chains, a year gathering all of it. Tier-gated exactly like a crossing (ADR 0016): a line is in the vault when its tier is in--tierand shows only as a count when it is not (held back: 1 note), so the default, tier 1, is the shape of every day with no text of any note, message, transcript or mail, and a person a tier-2 note names is not on the page until tier 2 crosses; the ceiling is thevaultentry ofpolicy/crossing.json(policy.vault_ceiling), tier 1 when the file does not name it; tier 3 is refused. Every run appends onecrossing/v1line (RFC 0011) with destinationvault, the window, the counts, the ceiling and the digest of the folder as written (one<sha256> <path>line per file, hashed), so the record shows it left. Every page is a function of the record's lines and settings alone, so re-running rewrites only the files whose content changed and deletes nothing. Read a calendar year at a time, aslogbook yearreads it.- Install is one line on each platform (
docs/install.md, written for someone who has never opened a terminal, with what each step prints):brew install bighydro/logbook/logbookon a Mac, from the new Homebrew formula inhomebrew/(homebrew/README.mdsays how it is published as the tapbighydro/homebrew-logbookand bumped on each release, step 6 ofdocs/releasing.md);pipx install openlogbookoruv tool install openlogbookeverywhere Python is, Windows included, in Terminal. The README's sixty seconds open with one install line per platform. CI builds the formula from source onmacos-latest, runs its test block and audits it (the newhomebrewjob; the test matrix is unchanged). - The lab (
docs/labs.md,logbook/labs/): readers still finding their shape, run aslogbook lab <reader>; read-only, no network, not in SPEC §3.2, their JSON free to change.logbook lab introductions [--json]: for every person the record confirms present at a stay with the owner, the first day it does, where and by which source, and who else was confirmed present that day — those known before as the likely introducers, those also new as met together, each markedsame_stay— with the line ids; the blind spots (the record's first weeks, proposals that do not count, co-presence as a guess) are printed with the rows and carried underblind_spots.logbook lab chapters [--min-trip-nights N] [--min-gap-days N] [--min-home-nights N] [--json]: the record cut into chapters by home-region changes (a home entry inplaces.jsonmay now carrysinceanduntil; without dates the nights decide), runs of days with no location line, and trips of 21 nights or more, printed as a table of contents with dates, nights, the top places and the top people per chapter. Synthetic fixtures only; nobody in them exists. logbook year YYYY --poster [--sheet A2|A3] [--html PATH](logbook/year_poster.py,docs/print.md): the year on one sheet — twelve columns of thirty-one squares, one a day, each in the ink of where the night was: home, away, aboard, in transit, the four night tokens now inlogbook/print_layout.py; a day the record has no night for shows the paper; the countries of the year with their days as one footer line; no name of a person, a place or an asset, no photo, no map, nothing fetched. One inline SVG drawn in millimetres of A2 and scaled to the sheet, so A2 and A3 are the same drawing; to--html PATH, else stdout.logbook digest --paper [--week YYYY-Www | YYYY-MM-DD] [--html PATH | --json](logbook/week_paper.py,docs/print.md): the week as four pages of A4, set from the Year's typographic constants — the days with their one line each (the linedaysprints), the people confirmed present and the week's keepers, the open promises due in the week, and what was read: the browse lines of the week, titles only, never an address. An ISO week, Monday to Sunday; without--weekthe week of the day given, else of today. Composed from the readers, nothing written. Both render from the demo record as fixtures undertests/fixtures/demo/, checked structurally.logbook key init [--recovery] [--recipient age1…],key show,key add-recipient,key remove-recipient(logbook/core/sealing.py,logbook/store.py, RFC 0029 §6): this machine's identity is written to~/.config/logbook/identities/<owner_id>.txt(%APPDATA%\logbook\identities\on Windows, or whereLOGBOOK_IDENTITY_FILEor the global--identity-file PATHpoint), readable by its owner only, never in the record and never in a variable on disk;--recoveryprints a recovery identity once, for paper, and stores it nowhere;initrefuses to seal with fewer than two recipients;add-recipientandremove-recipientreseal every sealed line and file to the new list with no hash changed and append onerekey/v1line. From then on every tier 2 or 3 line appended is sealed (Logbook.append,append_many), a tier-1 line never; a writer without the identity refuses tiers 2–3 in one sentence (it cannot dedupe through the blinded index) and writes tier 1, so an unattendedsync aisneeds no key. Needs the newsealedextra (pyrage); without it the first seal or open names it.doctorchecks it.logbook seal --all(RFC 0029 §10.2): seals the tier 2–3 lines written before the record had recipients and the files they name, the ADR 0014 way: new month files under a temporary folder,prevandhashrecomputed from the first changed line,format0.3, alineageentry, the index dropped, onemigration/v1line withfrom_head,sealed_linesandsealed_attachments. The plain files are replaced, not kept beside the record, and the command says once that a backup taken before still holds the plaintext.logbook verifyreports sealing:sealed: N lines, every one opened and checked against its digest, ornot opened (no identity at …), andplain at tier 2 or 3: N lines; logbook seal --all seals them;--keylessnever opens, so a keyed machine can show what a keyless one sees. The first line,valid — N lines, head …, is unchanged, so the cross-implementation job still compares it.logbook export FILEwrites sealed lines opened by default (the interchange form a line re-enters by, ADR 0017) and verbatim under--sealed; without the identity it refuses and names--sealed.show,dayand every reader through the index get opened lines; a reader without the identity lists the day and prints[sealed note/v1; no identity to open it]for such a line.export crossing(RFC 0005, new section Sealed lines):policy/crossing.jsonmay give a destination arecipient; a sealed line crosses withpayload_encresealed to it, or under--openwithpayload_open={payload, salt}in its place; its hashed fields are the owner's verbatim either way, and the manifest'ssealingsays which. Sealed files are opened, checked and resealed or copied opened. Without a recipient or--open, or without the identity, the export refuses.- The shared trip (RFC 0030,
docs/trips-shared.md,logbook/contrib/trip_bundle.py).logbook export trip-bundle <trip-id-or-day> --to <member> [--tier 1|1,2|1,2,3] [--attachments] [--out DIR] [--dry-run]writes a crossing package (RFC 0005) cut to one trip, under the destination's ceiling inpolicy/crossing.json(ADR 0016): the trip'sphoto/v1lines (hashes; the files only with--attachments) and standingflight/v1lines verbatim inentries.jsonl, the derived rows intrip.json(trip-share/v1: the stays away from home with their nights and labels, the moves, the flights, the people confirmed present with the refs that name them; never the home stay, never the points), and the resolution lines those refs walk through inresolution.jsonl. The people, the sender's own refs and the overlay are tier 2, so the default--tier 1crosses places and photos and counts the names held back. Every real export appends acrossing/v1line naming the trip (crossing.record, now shared withexport crossing).logbook import trip-bundle <folder> [--dry-run]checks every digest and every line's hash, refuses a bundle of the record's own, and appends each line as a received line — kindreceived, sourcereceived, the sender's line verbatim underpayload.line,extra.fromthe sender's owner id — plus the page as one received line keyed by the bundle id; araw_idthe record already holds, as its own or received before, is skipped and counted (Index.holders), and the files go into the store. No derived reader takes the kind, so a received photo is nobody's photo and a received resolution names nobody.logbook trip <id>gainsshared: per sender, who was there according to each record (matched through shared refs, else by name; the owner isyou), the places the records agree on (within 300 m), and aseen only bycolumn, in the text, the JSON and the HTML page;showlists a received line asfrom <sender>: <kind> <source> · …. Synthetic fixture: Ines's and Ola's records of one cabin weekend (tests/cabin.py); nobody in it exists.
Changed
ios-walletis replaced byapple-wallet(above): the 0.5.0 adapter decoded the IATA BCBP barcode — which carries the passenger's name and the booking reference — to read the flight astracked; the new one readspass.json's fields and never the barcode, and writesdeclared, since a boarding pass is a plan.--only wallet,--only ios-walletandlogbook add walletall name the new adapter; lines a record already holds with sourceios-walletstand as they are (flights.EVIDENCE_OFkeeps their rank), and a pass imported again under the new source is a new observation that merges into them.import-backupcopies the passes belowapple-wallet/now, notios-wallet/.mail/v1attachments (RFC 0015 rule 5): an attachment is{filename, media_type, bytes}by default, its length counted from the base64 text without decoding it;sha256andpathare present only with--attachments, the one time the bytes are decoded. Before, every attachment was decoded and hashed on every import, which is most of the bytes of a mailbox.logbook ledger [--month YYYY-MM | --trip ID] [--json](logbook/ledger.py): thetransaction/v1lines (tier 3, never crossing) read back in context. Each transaction is placed at the stay the owner was in at its instant, from the same derivation the Day and the trips read — the place's name at a named place,aboard <asset>aboard one, else the coordinates with what is near — with the stay's country by the countries rollup's rule; a transaction the source files by the day only (dategiven,atthat day's local midnight) is placed by the day's longest stay and says(by day); one the track does not cover isnowhere. Each is in its trip when its day is one of the trip's (first day to return day), and the window's trips are listed with their spend;--triptakes the idtrips --jsonprints and reads only its days. A shared expense's shares are shown per person, each member resolved through the record's resolution lines, else the app's name, the owner asyou; a face tag is never a resolution. Amounts stay in the line's currency, totals are per currency, nothing is converted; a transaction the source marks deleted is listed, marked and never summed; a correction thatsupersedesa line stands in its place.rollup money [--year]sums the same entries per year by month, by country and, when any line has one, by the source's category.daygains aspendline when the day has a transaction: totals per currency, the count, the merchants (spendunder--json, null when none). Synthetic fixtures: the Oslo persona's fortnight with invented merchants in NOK and EUR. Docs:docs/ledger.md.logbook attach import-backup <backup> --only whatsapp,imessage,photos [--since YYYY-MM-DD] [--dry-run],logbook attach statusandlogbook attach verify(logbook/attach.py,docs/attachments.md): the SPEC §1.1 content-addressed store filled from an iOS backup, counted, and checked. The pass reads, through the index, every standing message and photo line of the sources named (not a retracted one; from--sinceon), finds each file the line names underextra.mediain the backup'sManifest.dbby the source's domain and the path below its media folder, and streams it — decrypted on the way when the backup is (ios_backup.plain_chunks, over the newios_backup_crypto.decrypt_chunks), the password fromLOGBOOK_BACKUP_PASSWORDasimport-backuptakes it — intoattachments/<sha256>throughattachments.write_chunks, which hashes the bytes on their way into a temporary file and refuses a stream whose digest is not the one the line names (DigestMismatch: nothing under the name, one line on stderr naming the file and both digests, exit 1 at the end). A file is never held whole; a digest already present is skipped unread, so a stopped run is resumed by running it again; the same bytes named by several lines or two sources are one file; a file the backup does not hold is counted; a line whose media was missing at import names no digest and is countedwithout a digest.--onlyis required and a disabled source is skipped;--dry-runcounts and writes nothing. Nothing is appended: the lines already point at the bytes, and until the pass fills them in they are missing attachments, which SPEC §1.1 allows andstatuscounts. A progress line every 500 files on stderr.statuscounts, from the index alone, the digests each source's standing lines name (the one attachment a line points at, asstatscounts), present and missing, and the store's files and bytes, the files no line references and the entries under another name (--jsontoo).verifystreams every file whose name is a digest through SHA-256 and lists the ones whose bytes are not what their name says, exit 1 (SPEC §1.1); another name is counted and ignored. No thumbnails (ADR 0015). Tested on the synthetic backup: four references, three files (two references share one content), a damaged blob refused, a resume, an encrypted backup, a retracted line left alone.apple-photos: the line carries where the phone keeps the pixels belowMedia/asextra.media.local_path(ZDIRECTORY/ZFILENAME; a store without the column names no path) and, when the import can reach them, their digest and size underextra.mediaand the digest as RFC 0002content_hash, the same shapewhatsappandimessagewrite, soattach import-backup --only photosfinds the bytes and checks them against the line.runtakesmedia_digest, a callable that hashes the file at such a path;import-backupbuilds it over the backup itself (ios_backup.digest: read from the stored blob, decrypted on the way, never copied), a file not in the backup isextra.media_missingand counted;LOGBOOK_APPLE_PHOTOS_HASH_MEDIA=0skips it.logbook add photos <store>on a bare copy of the library writes the path alone.logbook share day DATE --to NAME [--tier N] [--out FILE],logbook receive FILE [--from NAME]andlogbook circle [add NAME KEY | key](logbook/share.py, RFC 0025 atdocs/rfcs/rfc-0025-shared-page-bundle.md): a shared page, the bundle of ADR 0009 — one local day of the record for one person in the circle, as one zip: the day's lines verbatim (SPEC §2 envelopes, so the receiver recomputes every hash), the attachments they reference under their own digests, theday-package/v1of those lines, andmanifest.json(shared-page/v1:fromowner id,to,date,tz,created,max_tier, the line count and the count held back, the digests of the two files and of every attachment,logbook_head, the signing key) carrying an Ed25519 signature over its RFC 8785 canonical form. The sharing key is made on first use at~/.config/logbook/share/<owner_id>.key(mode 0600) and its public half written tologbook.jsonasshare_key; a record that names a key the machine does not hold refuses to share, naming the file. The tier gate is the destination's ceiling inpolicy/crossing.json(ADR 0016), tier 1 by default, refused above the ceiling naming the file; a line above the tier, a retracted line and a retraction stay home; every share appends onecrossing/v1line (RFC 0011) with the day's window and the manifest's digest.receiveverifies the signature under the keypolicy/circle.jsonholds for the sender (circle add NAME KEY, once; never the key the page brought), checks every member name, recomputes every line's hash and checks its tier, day and envelope, checkspackage.jsonand every attachment against the manifest, and keeps the page under<root>/circle/<from>/<date>/with areceived.json— outside the chain: nothing is appended,logbook.jsonand the store are untouched. The same page again is nothing; a newer one replaces the held one whole; an older one is refused.logbook day DATEends with afrom <name>section per page held (lines by kind, tier, when shared, the titles of its notes, events, transcripts, mail and calls;receivedunder--json). The optional extraopenlogbook[share](cryptography) is imported only when these run;doctorlists it. Synthetic fixture: Ines and Ola Nordmann sharing 2026-06-13 both ways (tests/shared_day.py), the two bundles and public keys committed undertests/fixtures/share/as the cross-implementation fixture; tests include a tampered line refused with or without a re-signature, an over-tier line omitted, and every receiver check.- A stay aboard an asset is a container (
stays.fold,Segment.inside): the run of the owner's stays and moves aboard one asset is one stayaboard <asset>, from the first's start to the last's end, with the run inside it, so the asset's movement never fragments the owner's stay. Boarding takes twenty minutes: the asset's own location lines within the stay radius of the owner's points foraboard_min_s(1200 s by default, a new key ofpolicy/stays.json) or longer; a boat that passes the quay once no longer boards the owner. Under way the asset's position at an owner's instant is read between its two fixes around it when they are at most twiceaboard_window_sapart, so an AIS fix every ten minutes still places a passage. The overnight rule counts the stay aboard whole — a passage through the night is a night aboard, never in transit — and the night names the asset and carries the asset's position, the inner stay that held the longest part of the night (Night.inside,Night.position).derive staysprints the container with its run indented and the night with the asset's position (--json:insideon the stay;aboard,insideandpositionon every night);daybuilds itsaboardrow from it, shows the position in the header (night after aboard REDUCE · 59.3400,10.5500 · away) and reads the country from it;tripsmakes a night aboard a route elementaboard <asset>(the asset's name) and counts the trip's nights aboard per asset (nights_aboard; the text says5 nights (2 aboard Solvind)on a mixed trip);rollup placesgains an aboard section, one stay per run aboard with the run's whole hours (the JSON keyassetsis nowaboard), while the anchorages inside it remain unnamed places markedaboard, and a night aboard counts at the anchorage the asset lay at;rollup peopleandrollup countriesread the night there too. Synthetic fixture: the yacht REDUCE (MMSI 970123456, which does not exist) motoring 40 km through a night with the persona aboard, and the control case with the persona ashore at a cabin 3 km away (docs/day.md, Aboard an asset). - The
encryptedandshareextras are one extra,crypto(cryptographywas all either needed):pip install "openlogbook[crypto]"reads an encrypted iPhone backup and shares or receives a signed page;logbook doctorreports it asextra:crypto, and the install line printed whencryptographyis missing names it. The dev group names the extras it needs (openlogbook[crypto,ais,mcp]) instead of repeating their packages. - The adapter registry is pyproject.toml's
logbook.adaptersentry points alone: every built-in adapter is listed there, in the orderlogbook addtries them on a file, and the package keeps no second list to drift from it;tests/test_adapter_registry.pyholds the table, the modules underlogbook/adapters/and the installed metadata to agreement. - RFC 0025 was two RFCs. The shared page (
docs/rfcs/rfc-0025-shared-page-bundle.md) keeps the number; the trip bundle is RFC 0030 (rfcs/0030-trip-bundle-v1.md). The copies of the RFC index,location/v1andphoto/v1underdocs/rfcs/are gone and the docs site links torfcs/instead;activity/v1anddecision/v1, never written, left the RFC index; ARCHITECTURE no longer says layer 1 depends on ijson (the Takeout and Dawarich adapters do). tests/test_demo_years.py(forty synthetic years) isslow: it runs on push to main and nightly, not on a pull request. Property tests for the Dawarich adapter, the TakeoutCalendar/folder, the shared health-export reader and the phone-number normalisation: any input yields only valid lines.- One package, three tiers: the modules of
logbooknow live underlogbook/core/(the format and the readers a second implementation is held to),logbook/contrib/(the adapters, import-backup, sync, the exports, the derived readers whose output is a reader's own) andlogbook/labs/(everything that runs a model), with the commands one module per family underlogbook/commands/. Nothing a user runs changes: every command prints the same bytes. Every 0.5 import path (logbook.store,logbook.adapters.immich) still imports the same module, with a DeprecationWarning, until 0.7;docs/migration-0.6.mdlists the moves.logbook --helploads no adapter and no model code, andimport logbook.cliis thirteen times cheaper than before. ijsonis the extraopenlogbook[stream], not a dependency: the five adapters that stream a large JSON export import it when they read one, andlogbook addnames the extra when it is missing.[share]is an alias of[encrypted]: either installscryptography. Thelogbook.adaptersentry points list every built-in adapter, in the registry's order, and a test keeps the two lists equal.index.sqlitelives in the user's cache directory,~/.cache/logbook/<owner_id>/index.sqlite(~/Library/Caches/logbook/on macOS,%LOCALAPPDATA%\logbook\cache\on Windows, orLOGBOOK_CACHE_HOME), not in the record (RFC 0029 §8): a copy of the folder, by any tool, carries no locator. A sealed line's payload columns come from its opened payload; itsraw_idis stored as an HMAC under a key kept in the index'smetasealed to the recipients, so dedupe andline_idmatch either form and a chat id cannot be read or confirmed from the file; the search table holds no words of a sealed line (logbook searchdoes not search sealed lines). An index built without the identity records so, and the first keyed reader rebuilds it. Schema 7. A strayindex.sqliteleft in a record by an earlier version can be deleted.Logbook.attach(data, tier=None)andattach_file: in a record with recipients the file is sealed unless the caller saystier=1;attachment_bytesandattachment(sha256)give readers the plaintext;backup --verifychecks a sealed file when the identity is here and counts it unchecked when not.- 22 commands where there were 49, and
logbook --helpon one screen (39 lines, seven groups, one line a command), Decision 1 ofdocs/audit-2026-10.md. Every old top-level name still works, hidden from--help:logbook person Kariprints`logbook person` is now `logbook people`on stderr and runslogbook people Kariwith the same arguments, the same output and the same exit status. The moves:import-backup,inbox,attachandreceiveareimport backup|inbox|attachments|page;year,trip,trips,days,keepersandstatsareshow year|trip|trips|days|keepers|stats;person NAMEispeople NAME;infer flights|keepers,transcribeanddescribearederive flights|keepers|transcripts|descriptions;places,assetsandquestionsaresetup places|assets|questions;ledgerisrollup ledger;tasksispromises tasks;sealandcirclearekey seal|circle;share dayisexport share day;retract,migrateandindexarerepair retract|migrate|index;sourcesisdoctor sources;mcpisserve mcp. Nothing any command prints changed.docs/commands.mdlists the 22 and the old-to-new table, written fromlogbook/commands/aliases.pybyscripts/command_aliases.py;logbook <command> --helpnow opens with the command's description.
Spec
- SPEC §3.2 Readers now covers every reader the reference ships, not only
show: forderive stays, the standing set of flights andinfer flights, the with module,trips,dayanddays, the rollups,keepers,promisesandsources --gaps, the inputs, the rules in prose with their constants (the settings ofpolicy/stays.jsonand their defaults; 20 min for a stay and for the shortest inferred leg, 400 m to a home place, 2 km and 3.5 km to an airport, the 22:00–08:00 night, 30 min for a codeshare, 150 km for an inferred flight, 1,000 m and 3,600 s for a calendar entry held at a stay, the confirmed/proposed split of "with"), the shape of each--jsonoutput, its derived ids, and what is a reader's own (the text, the extractor, a confidence). Two words defined for all of them: standing (not retracted, not superseded by a later line of the kind) and the record's zone (every reader localises inlogbook.json'stimezone, never a line'stz).showgains the calendar fold and the hero line, and a flight with no number reads as its route. New §6.1 names the readers the cross-impl job compares on the demo record (logbook demo --days 30 --seed 1) and the fields dropped first, with the honest status that no second implementation of a derived reader exists yet. Of logbook-ts's SPEC-QUESTIONS this settles 28, 35, 36, 38, 39 and 41 by rule, and closes 23, 29, 30, 32, 33, 34 and 37 as a reader's own; 24, 25, 27 and 40 were closed by theshowfixes below. No format bump, no hash-rule change, no code change. logbook add passages <csv> --asset <id> [--routes <dir>] [--dry-run]: a ship's deck log transcribed as CSV (dep_local, dep_place, arr_local, arr_place, tz, note, check; clocks may be missing, the arrival may be empty) → one declaredtrip/v1sea leg per row (RFC 0020, amended: modepassage,subjectthe asset,evidencedeclared,nameCannes → Genoa Molo Vecchio, the route asgeometry) and alocation/v1line of the asset at each end that can be positioned, soassets status,derive stays,day,daysandtripsread the legs as the vessel's own movement (ADR 0018). Positions come from the ECDIS route files in--routes(RTZ 1.0; a route matches a leg by the words its name shares with the two places, case, accents and punctuation aside, in either direction), elseplaces.json, else a bundled gazetteer of about 250 Mediterranean, US East Coast and Bahamas ports (logbook/tables/ports.csv, public positions, nothing invented), else the name stays and the run reports it. An empty arrival is an open leg with a departure line; acheckvalue rides underextra.check; the dedupe key is the asset, the departure time and the departure place.addgains--asset,--routesand--dry-run(the count against the record, nothing written); an adapter'srunmay takeplaces(the record's named places) andreport(lines printed after the counts).docs/adapters/passages.md.- SPEC §5 says what frozen, parked and deleted bind for a payload profile, as RFC 0031 decided; §6.1 says that a frozen
profile's fixture under
conformance/profiles/is part of conformance and which parts of it are compared today; §3.1 saysmigration/v1is part of the envelope's own section, frozen with it; the Status lines of §6 and §6.1 say what the two implementations are compared on now. Spec text only: no envelope change, no version bump. - Tiers 2 and 3 sealed at rest (SPEC v0.3 §1, §1.1, §2, §3, §3.1, §4, §6; RFC 0029, adopted; ADR 0020). A sealed line keeps a plain
payloadthat is a reference,{"schema": "sealed/v1", "of": "<the real schema>", "digest": "<sha256>"}, and carries the content inpayload_enc, outside the hash asidis: the RFC 8785 text of{payload, salt}(16 random bytes), age-sealed (X25519, binary, standard base64) to every recipientlogbook.jsonnames. The pre-image of §3 is unchanged, soverifychecks the whole chain without any key, counts the lines it did not open, and, with the identity, opens every sealed line and fails on bytes that do not hash to their digest.formatislogbook/0.3; a0.2record is read and written as it is, never migrated, and becomes 0.3 when given recipients. Attachments a tier 2–3 line names are sealed under their plaintext digest (the age header is the marker; raised, never lowered). The format's answer to RFC 0029's three options, the key handling, the migration road and what logbook-ts must implement are in the RFC; §15 says where the implementation parted from the draft. Level 2 conformance:conformance/sample-logbook-sealedwith the published fixture identityconformance/identity.txt, headc625fd32d553…inexpected-sealed.json, verified keyless and keyed in CI; the Level 1 sample stays alogbook/0.2record and its head does not change.
Fixed
- Three Google Takeout adapters skipped every row of a current export as
without a timestamp: the CSVs Takeout writes today spell the time2026-10-01 06:59:59 UTC(a date, a 24-hour clock, the zone's name), whichtakeout/times.pydid not read. It reads it now, with or without fractional seconds and with a+02:00offset after a space, beside RFC3339 and the two English forms it knew; the spelling is still kept whole in everyraw_id.google-takeout-access-logreads the 2026 header (Gaia ID,Activity Timestamp,IP Address,Proxiedhost IP Address,Is Non-routable IP Address,Activity Country,Activity Region,Activity City,User Agent String,Product Name,Sub-Product Name,Activity Type,Gmail Access Channel) and the older one alike: oneevent/v1line per row, the product, sub-product, activity and Gmail channel underextra, the country, region and city as the coarselocationtext (Nesodden, Akershus, NO) and underextra, never a coordinate — and the IP addresses, the user agent and the account id are never written: the address and the browser are hashed into the id only, as before, so two accesses in one second from two addresses stay two lines; a record that holds lines from the older reader keeps the same ids. The folder'sDevices - A list of devices (…) used to access.csvis not the log and is never read.google-takeout-meetfinds its columns under the 2026 names too (Start time (UTC), anEnd time (UTC)in place ofDuration (seconds),Organiser), reads a duration as seconds, a clock (0:30:12) or words (1h 2m 3s), and takes the end less the start when there is no duration; its sniff accepts a history with an end time and no duration.google-takeout-payreads the time underTimeorDate, a bare amount with its code in aCurrencycolumn, and keys a row without a transaction id by its time, merchant and amount (pay:<time>:<digest>, countedwithout a transaction id). Synthetic fixtures for the 2026 shapes undertests/fixtures/takeout-2026-10/;tests/test_takeout_times.pypins every clock. (Google's Takeout documentation does not list these columns; the 2026 access-log header is from a real export, the Meet and Pay variants are the renamings seen since, and the readers find columns by header words so a further rename reads too.) - Takeout photos,
imageViews: a sidecar whose count is a digit character that is not decimal (a superscript,str.isdigit()true,int()refusing) no longer raises in the reader;_intreads decimal digits only and givesNoneotherwise. - Every reader on a record whose
timezone(logbook.json) this machine's zone database does not know — a name a newer edition of the database has, say — exited with a traceback (ZoneInfoNotFoundError) from wherever it first localised a time. SPEC §2 says a reader that does not know the zone says so and never substitutes another:logbook <command>now exits 2 with the zone's name and the reason, one place in the CLI entry point for every command. Found by the reader fuzz (demo --days 2 --seed 5, timezone set to a zone the host lacks). promises, who said it: a line of a note, or of a turn a diarizer gave the owner, that beginsSpeaker 2:(or with the name of a participant, of a person the record resolves, or of the owner) belongs to that speaker, never to the owner; the owner isyouonly when the label resolves to one of their identities (promises.relabel). Before, every note was the owner's whole, and a mixed turn kept the source's label. A word before a colon that names nobody (Plan:) stays text.- Every reader piped into
head, or into a consumer that quit already: quiet, status 0. The CLI caught a pipe that broke on a write in the middle of a long listing; a short one — a fortnight ofdays, oneday,stats— sat in the buffer until the interpreter's final flush and reportedException ignored in: <_io.TextIOWrapper name='<stdout>'> BrokenPipeErrorwith status 120.mainnow flushes before it returns, and before a command's own exit status (sources --gapsexits 1) is passed on, so the pipe is met there and stdout turned to the null device (tests/test_broken_pipe.py, every reader). daysandday, the night: a night whose stay centre is within 400 m of a place of kindhome(stays.HOME_NEAR_M, the night ruletripsalready followed) names that place —Home— where the row printed the coordinates of a stay at home; an unnamed stay within 5 km of a named place reads59.9200,10.7400 near Home, 1.0 km, the route's rule (trips.coordinates_label, now shared bytripsand the Day; the Day printed the bare coordinates); anddaysprintsno locationinstead ofin transitwhen the day has no location line at all (night.locatedunder--json), since nothing then says the owner moved —in transitis for a day on the road with no stay reaching the minimum.rollup health,stats --healthand the Day's health line: HRV is reported in ms, always.health.msreads a line as stored — a value insis multiplied by 1,000, one inmsis taken as it is — ashealth.bpmalready read a resting rate in count/s; a single 45 ms sample ishrv 45 ms (1 day).repair health-unitsstamps every corrected line with the profile's unit (repair.HEALTH_UNITS:bpm,ms). The Apple Health adapter already wrote HRV SDNN (type 183) in ms unscaled; a test now holds it to that.tripsandday, a stay at an airport: labelled by the airport's IATA code and city —ZRH, Zurich(trips.airport_label; the code alone when the row names no municipality) — where the route printed the row's name and the Day the bare coordinates. An airport with scheduled traffic (the airports table's newtypecolumn, OurAirports' own:large_airport,medium_airport;Airport.scheduled) holds a stay within 3.5 km of its reference point (trips.SCHEDULED_AIRPORT_KM), since the row marks the runway midpoint and a terminal often lies 2–3 km off it, so a stop at a large airport read as coordinates with the city in parentheses; every other row keeps 2 km (trips.airport_atis the rule,Airports.withinthe lookup). Every built-in row islarge_airport, as the generator's filter has always kept;scripts/make_airports.pywrites the column; an override file may carry it or leave it out. Tested on a synthetic field whose terminal is 2.8 km from the reference point.show, three places the reference did not read the record as SPEC §3.2 says, found by logbook-ts diffing the conformance sample against it (its SPEC-QUESTIONS 24, 25, 27 and 40): a collapsed run of location points now ends at the last point'sendwhen it has one, else at itsat(it ended at theatregardless; one point is still a row of its own and prints itsat); a payload without a renderer, thekey=valuerow, spells a number as RFC 8785 writes it, by value and never by the text the writer stored —100000000000000000000, not1e+20;0.000001, not1e-06;120, not120.0(chain.number_text, the serialiser the chain already uses) — while a nested object, list, string, boolean and null keep Python's spelling; and amessage/v1line whosechatis a string, the shape before RFC 0008 that the conformance sample carries, reads as a direct chat of that name instead of raising, and achatof any other non-object shape is read as no chat. Every day ofconformance/sample-logbooknow prints, and 2026-03-01 and 2026-03-06 are pinned whole intests/test_show.pyas the cross-implementation fixture;expected.jsonis unchanged, since it carriesseqandheadonly.day,trips, the pages androllup people, "with" from a note: a name a note sayswithcounts only when the record resolves it to a person, the rule transcripts already follow (present.from_notes);with US,with XYZ, a country, an acronym or a name no resolution line knows names nobody, where before it was kept as written. (A real record listedUSas company.)showandday: one calendar entry several sources carry — two or moreevent/v1lines from different sources (ics,ios-calendar,gcal) with the same start and end, naming the same flight in the title or carrying the same title, case, accents and whitespace aside — is one row,×N sources(logbook/events.py,fold): the same flight in four calendars in two languages reads once,×4 sources.showfolded within five minutes before and printedics+ios-calendar; it now folds on the exact times, asdaydoes. Under--jsonthe Day's event carriessourcesand everylinesit stands for; the sources line still counts every calendar's lines.day: a stop with nothing attached readsnothing attachedafter its place and duration; the kind column already says stop, so the row never readstop · stop.tripsandday, an unnamed stay: when it is at no large airport (2 km) and near no named place (5 km), the coordinates carry the city of the nearest large airport within 30 km in parentheses —53.5998,10.0130 (Hamburg), the city only, never the airport's name — so a reader sees where a hotel is. The city is the airports table's newmunicipalitycolumn (OurAirports' own text,Oslo (Gardermoen);Airport.citykeeps the part before a parenthesis or a comma;scripts/make_airports.pywrites it, and the table is regenerated with no other row changed). The airport-name helper #132 left unused is gone with its test.flight/v1(RFC 0013 rule 1): a codeshare pair — two lines on one date and route whose departures are within 30 minutes, the operating carrier's number and a marketing carrier's (XY 123 and XY 9123) — is one flight:reconcilemerges the second into the first under merge-and-supersede, keeping the operating carrier's designator when a producer marked it (extra.operatingtrue), else the one first seen;standingfolds a pair the record already holds unmerged the same way, sorollup flightsandtripsshow it once (in XY 561 OSL → ZRH, not twice). Before, only identical numbers merged.infer flightsnever copies a flight number onto a leg that is not the flight the calendar entry names: when a tracked or declared flight in the entry's window already holds the entry's designator on another route, the leg is written with neithercarriernornumber, keyed by date and route ((date, "", "ZRH>IST"));show,rollupandtripsprint such a line as its route alone. Before, a two-day entry naming the tracked outbound put that number on the next day's onward leg.infer flightsemits nothing for a leg between airports under 150 km apart (MIN_KM): the points left one airport and reached the other, but it was a drive.infer flightsemits nothing for a leg a tracked flight on the same route already covers under another key — a flight landing after local midnight, a stale point at the origin after departure — counted ascovered("legs a tracked flight already covers"). The same key still merges into the tracked flight as before.logbook addsays how many of an export's rows the record already held (same source andraw_id) beside what it added, where it skipped them silently before:added 0 lines from dawarichis followed by40 already in the record (same source and raw_id), nothing written twice(#79).showorders a day by the instant ofat, thenseq(SPEC §3.2), never by the text ofat: a line at10:00:00.5Zsorted before one at10:00:00Z. logbook-ts already ordered by the instant (#123).google-takeout-photos, a sidecar number that isInfinity,-InfinityorNaN(Python's json reads and writes them): a coordinate, altitude, view count or timestamp that is not finite is left out of the line as a value the sidecar never had, never written, so the line canonicalises and appends;geoDataExifstands in for ageoDatawith an infinite coordinate, the creation time for an infinite taken time. The adapter already did this (_finite,_stamp,_int); it is now pinned by a test. The property test over albums (test_any_album_yields_only_valid_lines) wrote its own sidecar withallow_nan=Falseand crashed (Out of range float values are not JSON compliant: inf) before the adapter ran whenever Hypothesis drew an infinite timestamp; it writes them as Python spells them now, and draws non-finite coordinates and timestamps on purpose.verifyon a month file cut inside a line (a crash while writing, SPEC §3) reports the lines before the cut and their head, naming the cut line by file and line number in one plain sentence; it reported seq 0 and GENESIS and forgot every line before the cut.logbook verifyprints the seq and head of the lines read on itsINVALIDline. SPEC §3 (truncation) and §6 now say so; the envelope and the hashes are unchanged.
Adapters
apple-wallet(logbook/adapters/apple_wallet.py,docs/adapters/wallet.md;logbook add wallet <folder|.pkpass>, or sniffed, orimport-backup --only wallet): Apple Wallet passes →flight/v1andevent/v1, frompass.jsonalone. An air boarding pass is oneflight/v1line, evidencedeclared(RFC 0013, whose producer row changes with it): the airline's word for a seat it sold, not a tracker's record of a flight that flew. Field keys differ per airline, so every value is found by its field's key or label (origin/from/dep and destination/to/arr for the route, with the three-letter code the airports table knows in the value, else the label; flight/flightNumber forXY 561,YZ0562or a bare number with the carrier from an airline field; date/departureDate for the day), or from the pass's semantic tags; the date is the local date of the scheduled departure when the pass names one, elserelevantDate's, else a dated field's, and a pass with none is counted (skipped_no_date); the seat and the class go underextra;relevantDateis kept underextra.relevant_dateand is the line'satwhen no schedule is known, never a scheduled time. A train, boat or bus pass is anevent/v1line titledorigin → destinationwithextra.transit_type; an event ticket one with its name, venue and start; a coupon, store card or generic pass one named after the issuer only when it carries arelevantDate, else counted. The barcode is never decoded, the back fields, the images,nfc, the tokens and the Passes database (nav.db,passes23.sqlite) are never read, and no field is copied wholesale, so the booking reference and the passenger's name cannot reach a line; the doc lists what is read and what is deliberately not.raw_idiswallet:<16 hex of pass type and serial>@<digest of the mapped line>: the same pass again appends nothing, a pass the airline updated (same serial, a newrelevantDateor seat) supersedes the standing line throughflights.reconcile, and a Flighty export of the flight supersedes both. Three fictional airlines' pass styles, two transit passes, two tickets and the skipped kinds are fixtures undertests/fixtures/apple-wallet/.spotify(logbook/adapters/spotify.py,docs/adapters/listen.md): Spotify's extended streaming history — the folderSpotify Extended Streaming History/ofStreaming_History_Audio_*.jsonandStreaming_History_Video_*.json, or one of them — → onelisten/v1line per stream (RFC 0019):atwhen playback started (Spotify'stsis the stop; the milliseconds played are taken off it),endthe stop,mediatrackorepisode, the track's name, album artist and album or the episode's name and show as Spotify spells them,urlthe open.spotify.com page of the URI,played_s,servicespotify, and underextrams_played,skipped,device(Spotify'splatform),reason_start,reason_end,shuffle,offlineandcountry;raw_idspotify:<URI without its prefix>:<ts as spelled>, so a track streamed twice is two listens and a re-add appends nothing; a stream of 0 ms is a listen withplayed_s0 and its skip flag; an audiobook chapter (the profile has tracks and episodes) and a row that names nothing are skipped and counted; an older export withoutplatformorskippedreads with what it has; the IP address and the username are never kept; streamed throughijson.logbook add spotify <folder|file>, or sniffed.apple-music(logbook/adapters/apple_music.py,docs/adapters/listen.md;logbook add apple-music <file>, oradd music, or sniffed): the Apple Music CSVs of Apple's data export (Apple Music Activity/), one file at a time by its header, the columns found by name so one the mapping does not need may be missing →listen/v1.Apple Music Play Activity.csv: one line perPLAY_ENDrow —atthe start,endthe end, the song (or the older export'sContent Name), the artist,duration_s,played_s, and underextrams_played,skipped(a skip true, a track played to its end false, a pause absent),device,end_reason,offline;raw_idfrom a digest of the artist and title with the start as spelled, the file carrying no track id; a start, a lyric view and the other events counted, not lines.Apple Music Library Tracks.csv: a snapshot per last-played time asapple-podcastswrites —raw_idapple-music:<track identifier>@<last played>, title, artist, album,duration_s,extra.play_count,extra.skip_count; a track never played counted.Apple Music - Play History Daily Tracks.csv: coarsely, one line per track per day at the first hour listed in the record's zone, the day'splayed_s,extra.hours, the counts. The three files carry three keys and do not dedupe against one another, said in the docs. The Apple ID and the IP address are never kept.screentime(logbook/adapters/screentime.py,docs/adapters/screentime.md):logbook add screentime [--mac DB | --backup DIR] [--dry-run]→ oneapp-useline per stretch an app was in use — kindapp-use, tier 2, anevent/v1payload with the app's name astitlewhen known (else its bundle id), the calendarScreen Time, and underextrathebundle_id,app,device,device_name,duration_sand how it wasobserved.--mac [DB]reads a Mac'sknowledgeC.db(this Mac's own without a path, behind Full Disk Access, which a store that will not open names): the/app/usagestream's sessions, each with the device of its source row (macfor this Mac's own); the other streams are never queried, so no window title, URL or document name reaches a line, and a test holds the adapter to it.--backup DIRcopies Screen Time's own store,RMAdminStore-Local.sqlite, out of an iOS backup intoinbox/ios-backup-<udid>/screentime/asimport-backupdoes —import-backup --only screentimereads it too, a new source — and reads its hourly blocks: one line per app per hour laid from the top of the hour for its seconds (observedhourly_total,apple_categoryScreen Time's own), the phone named throughZCOREDEVICEand its apps throughZINSTALLEDAPPwhen the store has them; Safari's per-domain rows are skipped and counted with the domain never read.raw_id<device>:<bundle id>:<start>, so a re-import appends nothing and a session a store holds twice is one line. Every table's columns are confirmed withPRAGMA table_info; a table or column needed that is missing is one error naming the store.showprints a line asSafari · 25 min · mac. Synthetic fixtures with the real table and column names.apple-photos(docs/adapters/photos.md, new): the names the owner gave the faces in the People album (ZPERSON.ZFULLNAME, elseZDISPLAYNAME; a merged person under its merge target's) ride along underextra.faces, sorted, beside the ids underpeople, which stay ids as RFC 0002 says — the adapter's extension inside the payload, a proposal of presence a reader never confirms. The favourites and the Art album becomekeeper/v1lines (RFC 0024) in the sameadd photosorimport-backuprun, right after the photo lines: the photo line's id is looked up by(source, raw_id)through the index, the keeper iskeepers.draftof that line and lane, and a(keeper-inference, <line id>:<lane>)the record already holds, retracted or not, is skipped, so a re-import andinfer keepersafter it write nothing twice; the run sayskeepers: N new from M marked photos of P (K already in the record), and--dry-runcounts them the same way and writes nothing (a module'sKEEPERSflag tellsaddso; every other photo library keepsinfer keepers). The syntheticPhotos.sqlitethe tests build carries the Oslo persona's faces.weather(logbook/adapters/weather.py, RFC 0026weather/v1,docs/adapters/weather.md):logbook sync weather [--since DAY] [--until DAY] [--dry-run]writes one tier-1 line per local day and place the day was spent at — the overnight stay and every stay of three hours or more, each rounded to a tenth of a degree (about 10 km) and deduped per day, so no exact place leaves the machine — with the day's lowest and highest temperature, precipitation, strongest wind, WMO weather code, sunrise and sunset from Open-Meteo's free archive API (no key; the forecast API for the last seven days),evidenceexternal. One request per place and run of days (split only at a gap over a week), a second's pause between requests, every day of a response cached underinbox/weather/<lat>_<lon>/<day>.jsonso a re-run never refetches; a failed request is said, the rest still go out, the run exits 1 and the watermark (state/weather.json, the last day covered, a week's lookback) waits. Explicit command only:sync --alland the schedule leave it out unlessLOGBOOK_WEATHER=1is set (~/.config/logbook/sync.env), no reader opens the network, andpolicy/import.jsondisables it either way. The clustering and the readers' side live inlogbook/weather.py; the tests run the sync against a fake Open-Meteo and check every request URL for a coordinate with more than one decimal.- Six more Google Takeout products, one sub-adapter each in
logbook/adapters/takeout/, every one answering totakeout-<name>as well asgoogle-takeout-<name>(adapters.TAKEOUT,ALIASES), with synthetic fixtures in Takeout's own layouts undertests/fixtures/takeout/and the owner's pagedocs/adapters/takeout.md:pay(Google Pay/Google transactions/*.csv→ onetransaction/v1line per payment, RFC 0021, tier 3 and never lowered, providergoogle-pay, the amount signed from the owner's side — the sign in the text, else negative unless the status, product or description says refund, received, reversal or credit — and the currency from the code or symbol in the amount text, akrrow skipped and counted;Google Pay/Passes/*.json→ an event ticket, a transit pass or a flight pass as oneevent/v1line, tier 1, with venue, issuer, seat, gate and terminal and never the holder's name, loyalty cards, offers and gift cards counted);chat(Google Chat/Groups/<conversation>/messages.json→ onemessage/v1line per message, tier 2, the chat direct or group from the folder andgroup_info.json,from_mefromowner_emailsor the one user underUsers/, the sender as an email ref with the name shown, the first attached file hashed beside the message and stored only with--attachments, reactions and links underextra;raw_idchat:<message_id>);meet(Google Meet/Call history/*.csv→ onecall/v1line per call, tier 1, outgoing when the organizer is the owner, the organizer as the counterparty otherwise,servicemeet, the meeting code and participant count underextra);contacts(Contacts/All Contacts/*.vcf→ one entity per card, a person or a company, and oneresolution/v1line per email and phone normalised asios-contactsnormalises them, merged with the people the record already resolves: a card whose ref the record knows takes that entity's id and writes no line for the ref, so a person resolved from the phone's address book is never minted twice; a label folder repeats nothing);access-log(Access Log Activity/Activities - *.csv→ oneevent/v1line per access to a Google service at tier 3, title<product>: <activity>, the city and country aslocation, the address, user agent and device underextra);activity(My Activity/<Product>/MyActivity.json→ a search or a visited result as abrowse/v1visit withgoogle-<product>as the browser, an app opened under Android as a visit to its Play Store page, a YouTube entry through the YouTube adapter's own mapping so the two sources dedupe, a Chrome entry skipped for the Chrome adapter, ads and other activities skipped and counted). Each CSV is read by what its headers say, not by position;takeout/times.pyreads the three clocks Takeout writes to one UTC instant. The YouTube adapter no longer claims another product'sMyActivity.json. policy/import.jsonhas a default list (policy.DEFAULT_IMPORT):google-takeout-access-logandgoogle-takeout-activitydisabled with a reason (every sign-in to every Google service; every search and app opened; opt in), everything else enabled.initwrites it, and so does the first read of a record without the file; the owner removes an entry to opt in.logbook add --dry-run: the adapter runs, the drafts are counted against the record by(source, raw_id)through the index —<name>: N lines would be added, M already in the record (dry run, nothing written)— with what the adapter skipped and why, and nothing is written: not a line, not an attachment (the store callbacks are no-ops), not a note for a sentence.- An adapter whose
runtakesresolvedgets{(kind, value): entity id}for every ref the record resolves, from the resolution lines standing through their aliases (RFC 0006), so an import of people can merge with the record instead of minting again (cli._resolved;google-takeout-contactsis the first). google-takeout-fit(takeout-fit), theFit/folder of a Google Takeout →health-sample/v1(RFC 0014) at tier 3, with the types and unitsapple-healthwrites, every line naming the device and the app Fit recorded it from (page).All Data/: steps and distance summed into quarter-hour buckets per device, heart rate at its own resolution capped at one reading a minute, weight, body fat, and sleep stages as spans (light ascore); the raw streams of a type Google also merged are counted, not read twice; calories, activity segments and the other streams the profile has no type for are counted, never mapped to a near type.All Sessions/: oneworkoutspan per session with its aggregates underextra, a sleep session as the night in bed.Daily activity metrics/: a day's quarter-hour file as buckets, and a day-longstepsanddistancespan for a day no stream touched, the day's calories, Heart Points, Move Minutes and heart-rate figures underextra; the coordinate columns never read. TheFit/folder, each subfolder and any one file are sniffed;Activities/(TCX) is not read. A quarter hour Apple Health also counted stays a second line under its own source: nothing dedupes across sources yet. Synthetic fixture.
Readers
logbook rollup listen [--year YYYY | --since YYYY-MM-DD --until YYYY-MM-DD] [--json](logbook/listen_rollup.py,docs/rollups.md,docs/adapters/listen.md): thelisten/v1lines standing (RFC 0019; a correction thatsupersedesa line wins, the latest of several; a retracted line is out) summed up per calendar year — listens, hours played (played_ssummed; a line with no playhead, a Shazam tag, is a listen with no hours and counted underuntimed), skipped lines (extra.skipped), lines per service, the podcast episodes with their hours, the top ten artists by hours then listens (the tracks' performers as the services spell them, never resolved), and every month the window touches with its hours, listens and skips, a month with no listen an em dash and never a zero. The window is clipped to the days the listen lines cover and read through the index alone, with no reading of the track; nothing is written; under--jsonevery number carries the ids of its lines. In its own module besiderollup.py, in its manner, withrollup.pyuntouched;rolluplistslistenbeside the other kinds.logbook rollup attention [--year YYYY | --since YYYY-MM-DD --until YYYY-MM-DD] [--by month|week] [--json](rollup.attention,docs/rollups.md): theapp-uselines standing (a retracted line out, a superseded one out) summed per calendar year, or per month or ISO week with--by, as hours by app and by five categories — communication, browser, media, work, other. An app is its bundle id (the Mac's Safari and the phone's are two rows); a small built-in table (logbook/apps.py) names and sorts the common apps under both their Mac and iOS bundle ids, a word in an unknown id (mail,chat,music,code) sorts it, and the owner'spolicy/apps.json—{"<bundle id>": "<category>" | {"name", "category"}}— wins over both, read at rollup time and never written into a line, so a renamed app re-sorts a year without a new line; a category outside the five stops the rollup naming the file. Every period the window touches is a row: one with no line is an em dash (by_categorynull under--json), one with lines carries every category, a category with no app at zero. Under--jsoneach app carries itsbundle_id,app,category,hours,seconds,sessions,devices(seconds per device) andlines. Read through the index alone, clipped to the days with an app-use line; nothing is written.logbook keepers --people [--since DAY] [--until DAY] [--lane LANE] [--json](keepers.people_by_month,docs/adapters/photos.md): who appears on the keepers standing, per local month — the faces the library named on each keeper's photo line (extra.faces) and the people it tagged by id (people), resolved through the resolution lines where a name is exactly a label and listed as written otherwise (no person) — with how many keepers each is on, by lane, and the keeper lines under--json. Every row isproposed: a face never confirms, and the view writes nothing. The keepers' photo lines are joined by id through the index (Index.by_ids, new: the few lines a reader joins by id).present(the with module), the Day, the pages andtrips: the names a photo library gave its faces,extra.faceson aphoto/v1line, are proposed company at the stay that holds the photo, confidence 0.5, never confirmed — a note, a transcript or a timed calendar entry confirms, and a face then rides along as a further reason. A name is resolved to a person only when it is exactly the label a resolution line carries, case and spacing aside (present.by_label):Karialone is notKari Nordmann, since nobody wrote the name at the stay (the loose first-name rule of a note does not apply); a name the record does not know is listed as written with no person; a face the line names both by id and by name is one entry; the owner's own face is never their company.rollup people,peopleand the days together still count the confirmed set only.logbook search TEXT [--since YYYY-MM-DD] [--until YYYY-MM-DD] [--kinds note,transcript,message,mail,event] [--tier 1|2|3] [--limit N] [--json](logbook/search.py,docs/search.md): full-text search over the record through one FTS5 table ofindex.sqlite(search; schema 6, so an older index is rebuilt once by the first reader). The table holds the words of every line of a kind that carries any —note,transcript,message,mail,event,task,highlight,voice-memo,browse,watch,listen,trip: every string of the payload at any depth but the ids, digests, stamps and types, and a transcript's text read from the attachment store as the promises reader reads it, oneSpeaker: textper turn — never a location point, a photo or a health sample. It is written beside the line's row byLogbook.appendandappend_many, in the same transaction, so a line appended a second ago is found with no rebuild, and rebuilt with the rest bylogbook index. The query is literal: a word matches itself, case and accents aside (zurichfindsZürich) and never a stem (rundoes not findrunning, in English or in German; the tokeniser isunicode61with no stemmer); a run in double quotes is a phrase in that order; a term ending in*matches by prefix; every term must match; FTS5's operators (AND,OR,NOT,NEAR, a colon, a caret) are words, never syntax, so no query is a syntax error. Ranked by FTS5's bm25 and cut to--limit(50) inside the query — the kinds, the tier and the window are columns of the table, the join tolinesone lookup per hit kept, so a name in two million lines answers in well under a second (tests/test_search.py,LOGBOOK_SLOW=1) — then shown grouped by local day, the latest day first, the lines of a day in time order: the rowshowprints for the line (its local time, kind, source and the profile's summary, with the names the record resolves), under it a snippet of up to sixteen words around the match with each matching word in[brackets], and a count. Tiers 1 and 2 by default; tier 3 — money, health, the transcripts at 3 — only with--tier 3, asexport crossingandmcphave it, and a search that finds nothing says when tier 3 was left out. A retracted line is never a hit.--jsonis the query (with the FTS5 expression it became), the hits by day withrank,snippetandsummary, andmore. Nothing is written. A SQLite built without FTS5 builds an index with no search table, and the command says so; every other reader is unaffected. Theshowrow's text part iscli._line_textnow, shared by both.logbook trip <id-or-date> [--html PATH] [--json](logbook/trip_page.py,docs/year.md, One trip): one oftrips' runs of nights away read back, named by its id (trip:2026-06-15:2026-06-20, whichtripsnow prints as the last part of every row) or by any day inside it, the return day included. Composed from the readers over one reading of the days around the trip (a week either side, widened while the run touches the window's edge, so a week is read from a month): the route as the stays slept at, in night order, each with its nights — the anchorages of a week aboard, one stay each with the asset beside them, wheretripsfolds the week intoaboard <asset>; consecutive nights within 200 m one stay; a night in transit a stay with no place — and the legs between them in great-circle kilometres; the days from the leaving day to the return day, one line each asdaysprints them; the flights in and out; the people confirmed and, apart, the ones only proposed (a person confirmed at one stay is never a proposal at another:trips.companions, whichtripsnow uses for its own list); the nights aboard per asset; the keepers per day by lane with the photos' names; the health of the span as one period (rollup.health_summary, the rollup's own rule lifted out); and the spend, everytransaction/v1line dated inside the span summed per currency with a minus sign for money that left, when the record holds any.--htmlwrites one self-contained page — inline CSS, no script, no asset, everything escaped, printable — whose route section opens with an inline SVG map drawn from the stays' coordinates: an equirectangular projection about the route's mean latitude, one path per leg (dashed across a night in transit), one mark per point with the numbers of the stays at it, a scale bar; no tiles, nothing fetched. A day at home, an id that names no trip and a record without a home place each say so. Nothing is written. Tested on the demo record's yacht week and the persona's Zürich trip, the SVG's one path per leg included.dayshows oneweatherrow after the health line when the day hasweather/v1lines — the place of the night when the day has one, else the first,· 2 placeswhen it was spent in more than one;--jsoncarries the row with every place underplaces— andservea Weather heading;yearadds aweatherrow and an HTML section with the span's summary (weather.span: the coldest and warmest day, the precipitation summed over the days by the wettest place of each, the wet days at 1 mm or more, the strongest wind, how many of the days have a line);tripssays the same for each trip's days, first to return day (weatherin the JSON). A record without weather lines shows nothing new.logbook promises --judge [--limit N] [--model NAME] [--fetch-model](logbook/judge.py,docs/promises.md): a local instruct model reads each candidate the rules found — the sentence marked among the two sentences either side of it in the same transcript or note, across turns, each with who said it; the day, the title, the owner's name and the names the record resolves in that line — and answers one JSON verdict at temperature 0:is_commitment,by(owner, a name,unknown),to,what(the speaker's words shortened),due(YYYY-MM-DDor null) andconfidence(0 to 1). The engine ismlx-lmon Apple silicon, the new optional extraopenlogbook[judge], withmlx-community/Qwen2.5-7B-Instruct-4bitby default and--modelfor any MLX instruct model; it is imported only when--judgeruns, the hub is offline while it runs (no socket is opened, astranscribehas it), a model not on the machine stops the command naming--fetch-model, and without the extra--judgestops with the message that names it. Never a cloud model. The verdicts are kept inpolicy/promises-cache.jsonby candidate id with the engine and model that gave them, rewritten after each one, so an interrupted run keeps what it did and a candidate is never judged twice; an answer with no whole verdict is counted and tried again next run.logbook promisesnow shows the judged commitments at confidence 0.6 or above (promises.THRESHOLD) and says how many candidates are unjudged;--allshows every candidate; a judged row carries the confidence,to <name>and, for a non-commitment,no; under--jsonevery proposal carries itsjudgementor null, and the reportjudged_only,threshold,judgeandunjudged.promises done <id>is unchanged and the only write to the chain. Each proposal carries the context the judge sees (Proposal.before,.after,.names). Tested through a fake engine: the prompt's attribution and context window, the cache, the threshold, the limit, the no-socket guard and that nothing reaches the chain but throughdone.logbook year YYYY [--html PATH] [--json](logbook/year.py,docs/year.md): one calendar year read back, composed from the readers that exist over one reading of the year's days (the days the owner's track covers, clipped asrollup --yearclips): the days per country (rollup countries), the nights home, away, in transit and aboard each asset (rollup nights), the trips in order with their nights, route, flights in and out and companions (trips), the flights with their kilometres and evidence (rollup flights), the places by nights — named, assets, the top unnamed clusters — with the people confirmed there (rollup places), the people by days together (rollup people), the health lines by month (rollup health --by month), the keepers by month and lane (RFC 0024), and twelve picks, one day each: for every month the day with the most evidence — the attachments across the Day's rows plus the people confirmed plus one for a flight or a new place (a named place not stayed at earlier in the year, or an unnamed stay more than 300 m from every earlier one; home never) — of equals the day with more lines, then the earlier; a month with no line isno days. Each pick is read with the day reader (day.read, the night before in it) and printed aslogbook dayprints it; under--jsonthe Days are inside and every day's evidence is underscored.--htmlwrites one self-contained page — inline CSS, no script, no asset, nothing fetched, everything escaped — that prints with table headers on every sheet and no pick split;--jsonis one object with the chain head it was read at. Nothing is written. Tested on the 365-day demo record and the persona's fortnight (the month-pick rule, hand-checked).places proposereads the index, not the files (reading.owner_track): the owner's location points and the registered assets', the evidence that promotes a stay and the retracted ids are columns ofindex.sqlitenow (subject,lat,lon,end; schema 5, so an older index is rebuilt once on the first reader),--since/--untilare cut in the query, and the clustering runs from the rows — no month file is opened, however long the window, and the cost is linear in the points of the window (half a million lines over two years in four seconds, 2.8 million points in the window in under half a minute, on a small cloud box) where before every line of the window was parsed from the files. The only lines read whole are the Google Timeline visits, found through the index by theirraw_id. Same output as before, pinned on the demo record (tests/fixtures/demo/places_propose.*); a generated two-year record of half a million lines asserts not one file is opened (LOGBOOK_SLOW=1). Along the wayderive staysattaches evidence and matches an asset's track by binary search instead of a pass over the window per cluster, so a long window no longer grows quadratically; a stay aboard an asset is unchanged. The pointsproposeclusters are the owner's and those of the assetsassets.jsonnames: a subject the registry does not name is not read, since nothing of the owner's can be aboard it.logbook days [--from YYYY-MM-DD] [--to YYYY-MM-DD] [--json](logbook/days.py,docs/day.md): a window of the record read back one line per day, composed from the Day of each (day.of_reading, the Day built from a reading the caller holds;day.health_rows,day.counts,day.health_textandday.distance_textexposed for it, the Day's own output unchanged). Each line: the date and weekday; where the night was spent (the night after: a named place,aboard <asset>or the coordinates with the nearest large airport's city, and the country when the night is away;in transit); the kilometres moved (every move that started on the day, the flights' included; aboard an asset, its passages); the flights (XY 561 OSL→ZRH); the stays (a stay or a run aboard an asset) with how many lines are attached across the day's rows; the people confirmed present; the health triple when the day has one; and a gap marker naming every usual source with no standing line that day — usual: with a line on at least four in five of the window's logged days, counted on the index in one aggregate (Index.source_days, new), so a tracker that fell silent is seen and a calendar that spoke once is not missed daily. The window is read in chunks of a month through onereading.readeach (the chunk's days and the day before; the chunk's health lines in one indexed query), so a year is a dozen readings, never one per day, and the lines stream out as each chunk is read: a year of the demo record prints in seconds, the first line within one. Both bounds default to the days the owner's track covers.--jsonis JSON Lines, one object per day. Nothing is written.logbook rollup health [--year YYYY | --since YYYY-MM-DD --until YYYY-MM-DD] [--by month|week] [--json](logbook/rollup.py,docs/rollups.md): thehealth-sample/v1lines (RFC 0014) summed up per calendar month, or per ISO week (2026-W23) with--by week— sleep (the mean of the nights' hours and how many nights had a line; a night the asleep stages of the night that ends on the day, per device the union of their spans, the longest device, rules 4 and 5), steps (the mean of the days' counts and how many days; a day the larger device per quarter hour, summed), resting heart rate (the mean, lowest and highest of the days' rates in bpm, and how many days) and HRV when the record has any (the mean of the days' SDNN in ms, and how many days). A correction thatsupersedesa line wins, the latest when a line was corrected more than once; a retracted line is out. Units as stored: a resting rate incount/sis read in bpm (×60), one inbpmorcount/minas it is. Every month or week the window touches is a row, and a field no day of the period has a line for prints an em dash and isnullunder--json, never a zero. The window is clipped to the first and last day with a health line and read through the index alone, with no reading of the track. Under--jsonevery number carries the ids of the lines it came from.--byis refused for any other kind.docs/rollups.mdis new: every rollup in one page.logbook/health.py(stats --health, the Day's health line,rollup health): the day rows carryhrv, the mean of the day's heart-rate variability readings in whole ms (stats --health --jsonand the Day's JSON gain the field; the tables are unchanged); a resting reading is read in the unit its line states (count/s×60 to bpm), where before the value was taken as bpm whatever the unit; of several lines that supersede the same line the latest stands and the earlier corrections are out with it, where before every correction stood.logbook rollup places [--year YYYY] [--with](docs/rollups.md): every named place and asset now carries its nights — the days whose overnight stay is there — beside its stays, hours, first and last visit and company; and each year lists the top five unnamed clusters, the owner's stays at no named place grouped asplaces proposegroups them (300 m) and ranked by hours, each under the stay idplaces nametakes, with its label (the coordinates;aboard <asset>;near <place>, x kmwithin 5 km; else the city of the nearest large airport, thetripsrule), its nearest named place, nights, stays, hours and company. Each person at a place carries theirstays,daysandnightsthere; a night counts for a person when the evidence that put them at the stay is dated the night's day, so dinner on the 16th is that night together, not every night of the stay.--withis the place × person table — one row per person per place, stays, days and nights — printed as a table and, under--json, aswithper year; it goes withplacesonly.logbook rollup people [--year YYYY]: the confirmed set of the with module only. A tagged face and an all-day entry's attendee are proposals and no longer a listed person, a counted line or aproposednumber: a person the record knows only by a face is not in the rollup (the Day and the pages still propose them); the owner is never listed. Each person gainsnightstogether (the--withrule) andstaysshared; an unnamed shared place reads with its city or its nearest named place instead of bare coordinates.unresolvedkeeps the confirmed names the record resolves to no person.present.Evidence: the window's evidence lines (events, transcripts, notes, photos) bucketed by every local day their span touches, so the company of a stay is one lookup over the lines of its days and never a pass over the whole window per stay or per place;rollup placesandrollup peopleread through it, from one reading of the window through the index and one derivation of the stays.logbook day YYYY-MM-DD [--json](logbook/day.py,docs/day.md): one calendar day read back. The header — the date, the night before and the night after (a named place,aboard <asset>or the coordinates; home, away or in transit), the country of the day from the night's stay by therollup countriesrule (else the longest stay of the day), the day's all-day entries. The timeline — the owner's stays, stops and moves fromderive staysthat touch the day, clipped to it for display and keeping their real span, and the flights of the day from theflight/v1lines standing (flights.standing, the merged set) as rows of their own with their evidence (tracked,inferred,declared); a run of segments aboard one asset is one stayaboard <asset>with the berth, the passage and the anchorage inside it, so the asset's movement never fragments the stay; a move with no points that lasts a silence or more and is not a flight is agap, said so, and places nothing. Under each row its attachments, named for events, transcripts, notes, mail threads, calls and keepers and counted for messages and photos, andwith, the people there split into confirmed (a note's declaration, a transcript's speaker, a timed calendar entry's attendee) and proposed (a face, an all-day entry's attendee), never the owner; a move carries attachments but no company. Then the lines inside no row (unplaced: the calendar's plan where the track has nothing), the health line (sleep hours, steps, resting heart rate) and the sources with their newest line's time, so a tracker's silence is seen. Read through the index from onereading.readof the day and the day before; nothing is written, not evenpolicy/stays.json. Under--jsonevery row carries the ids of its lines.present(the with module): an all-day calendar entry's attendees are proposed (confidence 0.3), never confirmed — the entry names no hour; and only when the entry is located at the stay (its coordinates or a named place within 1 km), since an all-day entry with no location overlaps every stay of its day and places nobody at any one of them;presentandcompanytakeowner(present.Owner, built byowner_offromowner_idandowner_emailsinlogbook.json,policy/owner.jsonand the resolution lines) and never list the owner as company.logbook/health.py: thestats --healthsummary (sleep, steps, resting heart rate per day, RFC 0014 rules 4 and 5) moved out of the CLI so the Day shares it; a health line another health linesupersedes(arepair health-unitscorrection) is out and the correction stands, as a retracted line already was; each row carries the ids of the lines its numbers came from (statsdrops them).
Commands
logbook add <folder>walks into subfolders — four levels down and no further — so a whole Takeout root reachesMy Activity/<product>/MyActivity.jsonandYouTube and YouTube Music/history/*.json, which a one-level walk never saw. A folder an adapter reads as a whole (Google Pay/,Keep/, the root that holdsGoogle Photos/) is handed to it and the subfolders that adapter also claims are left to it, so nothing is read twice; every other subfolder is walked the same way. A file no adapter reads is counted, not named, unless--verbose(new) is passed; a file given on the command line is still named and still exits 2. The folder's last line names each folder something was read from, relative to the one given:Takeout: read 3 folders — Google Meet, Google Pay, YouTube and YouTube Music/history; 12 files with no adapter (--verbose names them).cli.FOLDER_DEPTHis the bound; hidden files and folders are never exports.logbook backup DEST [--keep N] [--verify],logbook backup list DESTandlogbook backup restore SNAPSHOT TARGET(logbook/backup.py,docs/backup.md): the record copied to another disk and verified there. A snapshot isDEST/<owner_id>/<timestamp>/(UTC,2026-06-02T071500Z, sortable, no colon), the record's files at their own paths —logbook.json, every file underlogbook/,policy/,places.json,assets.json,attachments/,notes/— and neverindex.sqlite,inbox/orstate/. A file whose size and modification time are those of the same path in the previous snapshot is a hard link to it, asrsync --link-destdoes it, so every snapshot after the first costs the bytes that changed and is still a whole record on its own; a filesystem that refuses the link gets a copy. The copy is pure Python and streams a chunk at a time. It is written under.<timestamp>.partial,verifyruns on it by the files alone, its head must be the headlogbook.jsonnamed when the copy began, and only then is it renamed into place: a copy that does not verify, or a record a line was appended to while it was copied, is removed and the command exits 1 saying so;--verifyalso hashes every attachment in the copy against its name (SPEC §1.1).--keep Nprunes the oldest snapshots of this owner to N after the new one verified. A destination inside the record, or under a folder a sync client owns (doctor.cloud_folder: iCloud Drive, Dropbox, OneDrive, Google Drive), is refused before anything is written, exit 2.backup list DESTshows each owner's snapshots oldest first with the lines and head theirlogbook.jsonclaims, the size, and the bytes not shared by a hard link with an earlier one; it needs no record.backup restore SNAPSHOT TARGETcopies — never links — into a folder that does not exist or is empty, never over anything, verifies the result and prints its head; the next reader builds the index.docs/backup.mdcarries a launchd agent and a systemd user timer for a nightly run besidesync --install-schedule's.logbook tasks [--open] [--propose-done] [--json]andlogbook tasks done <id> [--evidence LINE-ID](logbook/taskdone.py,docs/tasks.md): the record's tasks read back, everytask/v1line (RFC 0016) as the task it describes — per source id (theraw_idbefore its last@) the standing snapshot with the newest suffix is the task's state, a retracted line out — with its day, status, due day, list and a sixteen-hex id that is a digest of the source id, the same for every snapshot.--propose-doneasks, for each open task, whether the record says it was done: within the fourteen days after the task'sat, amail/v1subject that carries one of the task's key nouns and confirms something (confirmation,booking,receipt,Bestätigung,Rechnung, as a word or inside a compound) or that the owner sent, anevent/v1title that carries a noun for a task that is an appointment (call,meet,anrufen, aTermin), repeats the task's verb or carries two nouns, or atransaction/v1merchant that carries a noun; the key nouns are the title's content words in English and German (articles, prepositions, pronouns and the verbs of a task set aside), compared case, accents, English plurals and German compounds aside (Zürich/zurich,Tromsø/tromso,flights/flight,Flug/Flugtickets). By rules alone, no model, no network. Each proposal prints the task, then the evidence's day, time, kind, text, the words shared,×N sourceswhen several calendars carry the one entry, and the evidence line's id; a received mail that confirms nothing, a line sharing only the task's verb, a calendar entry sharing one place name with a task that is no appointment, and anything before the task or after the fortnight are not proposed.done <id>appends onetask/v1line and nothing else:sourcemanual, tier 2,raw_id<source id>@<now>(the newest snapshot, so--openand--propose-doneleave the task out), the title,dueandlistcarried over,statusdone,completed_at,modified_at,supersedesthe snapshot it replaces andextra.evidencethe line id when one was given; an unknown task or evidence id is refused with status 2, a task already done is left alone. The matcher is a value — aname, aversionand__call__(task, candidate) -> Evidence | None— so the promises judge's engine can replace the rules without changing the report, the ids ordone.Index.by_idlooks one line up by its id. Synthetic fixtures: a booking confirmation, a GermanBuchungsbestätigung, a call in two calendars, a payment at the marina, and the look-alikes that must not match.logbook sync --all: every configured live source in turn — configured: at least one of itsENVvariables set and itsconfiguretaking the environment — each from its own watermark, a source the owner disabled (policy/import.json) or one with no variable set skipped and said so; a failure in one (its exit status, or an error its adapter let through) is said on stderr and never stops the next. Each source prints its summary as it runs; then one line per source (ok,failed (status 1),skipped (LOGBOOK_GRANOLA_KEY not set)) and exit 1 when any failed. A Ctrl-C while a source listens to a stream (ais, status 130) ends the run there, the sources not reached listed asnot run, status 130.--dry-runpasses through;--since,--listenand--untilare a single source's and refused with--all.logbook sync --install-schedule/--uninstall-schedule(logbook/schedule.py, README):sync --allat 07:00 and 19:00 local by the machine's own scheduler — a launchd agent on macOS (~/Library/LaunchAgents/org.logbook.sync.plist,StartCalendarInterval), a systemd user timer on Linux (~/.config/systemd/user/logbook-sync.{service,timer},$XDG_CONFIG_HOMEhonoured,OnCalendar=*-*-* 07,19:00:00,Persistent=true). The plist or units are printed before they are written; nothing is written outside that one directory; the agent runs the interpreter that installed it (sys.executable -m logbook.cli) and carriesLOGBOOK_HOMEfor the record found at install time; a live source's keys are never written — both read~/.config/logbook/sync.env(KEY=value, the owner's file) at run time, so the schedule is harmless until the file exists. The scheduler is then told (launchctl bootstrap,systemctl --user enable --now); when it is not on PATH the command to run is printed; a scheduler that refuses is exit 1 with its words, the files left for a retry. Any other platform exits 2.logbook digest [YYYY-MM-DD] [--json | --markdown](logbook/digest.py,docs/digest.md): the day in 25 lines at most, what the owner reads of it in the evening, composed from the readers and deriving nothing of its own. The Day's shape in three lines — where (the stays in order, a run aboard an asset asaboard <asset>, and the night after: at home, away or in transit), with (the people the Day confirms, and how many are only proposed), attached (the counts across the day's rows, and how many lines fell inside no row); the flights of the day, three at most and+N more; the open promises due on the day or within seven days after it from the promises reader (promises.extract; a report that carries ajudgedset, the ids a judging reader holds to be promises, is narrowed to those —digest.due_promises), three at most; the usual sources with no line on the day by thesources --gapsrule (gaps.reportwith the day assinceand the usual sources of the fortnight expected,days.usual_sources), one line; tomorrow's timed calendar entries from theevent/v1lines standing, folded as the Day folds them, with the attendees the record names, three at most; and, last, one closing question the owner can answer in a word, by the first rule that applies — a day with no line asks whether the missing usual source was switched off, else where you were; a night in transit where you slept; a person proposed and confirmed nowhere whether they were with you; a calendar entry inside no row whether it happened; a missing usual source whether it was off; a promise due by the day whether it is done; elseAnything to add?— so the day closes itself (ADR 0005). The 25 lines are a hard limit (digest.LIMIT): the parts are capped anddigest.fitcuts from the middle, never the header or the question; the JSON holds the whole sets and says how many lines the text has.--markdownprints the same lines as a heading, a bulleted list and the question in bold. Nothing is written, not even the settings file; nothing is sent — delivery is a later decision. A day after today in the record's zone is refused.logbook people [--year YYYY] [--json]andlogbook person <name-or-ref> [--year YYYY] [--json](logbook/people.py,docs/people.md): everyone the record's resolution lines name as a person (RFC 0006), never the owner, and what the record knows of each. Per person: the channels they come through, each with its lines, first and last day, highest tier and last line —messages(amessage/v1they sent, and one the owner sent in a direct chat with them: attributed to the one person who wrote in that chat, else to the person the chat's id names, a WhatsApp JID being a phone number; the owner's lines in a group name nobody),calls(answered or not),mail(from them or to them, by address),calendar(an entry they attend and did not decline, timed or all-day),transcripts(a participant, by ref or by a spoken name the record labels one person by),faces(a tagged face, through the library's person id); first and last contact over every channel; the days together, the with module's confirmed set (the rules oftripsandrollup people: a tagged face and an all-day entry are proposals, not a day together); the nights under one roof (the nights whose overnight stay the person was confirmed at on that day); the places shared, by days there, labelled as the rollups label a stay; the birthday when a standing resolution line of one of their refs carriesextra.birthday(YYYY-MM-DDor--MM-DD); and the last real contact — the latest message, answered call or day together, with how (message,call,meeting); a mail is a channel and never a real contact, a newsletter being a mail too. The tier of a person is the highest tier of their evidence, the resolution lines included; the report's is the highest of its people.peopleis one row per person with evidence in the window, most days together first;personis one page — the same numbers, then the shared days, most recent first, each with where, the evidence andnightwhen the night was spent under one roof — found by label, a unique first or last name, entity id, address, phone number orkind:value; several, nobody or the owner exit 2. The window is the record's days of any kind, or--yearclipped to them. Read through the index and nothing else: the resolution and retraction lines whole, the owner's stays and nights from the index's columns (reading.owner_track), and the six kinds streamed one at a time over the window (Index.of_kindnow takes local-day bounds), each line read once and kept only when it names someone; a retracted line and one another line of its kind supersedes count for nothing. Synthetic fixtures: the Oslo persona's circle of twelve (tests/circle.py).logbook people merge [--propose | --apply ID... | --export-review FILE | --apply-review FILE] [--json](logbook/people_merge.py,docs/people.md): the same person named twice or more by the resolution lines (RFC 0006) — the phone's address book, a Takeout export and a name given by hand to a calendar attendee, a mail sender or a transcript speaker each mint their own entity — proposed with the evidence and never merged on its own. Every person entity, never the owner, is a candidate with every ref that resolves to it through the alias walk; two are one person when a phone meets (the same E.164 number: aphoneref as written, one entered without a country code read withLOGBOOK_DIAL_PREFIXas the adapters read it, or a WhatsApp JID handle), an email meets (case aside; ahandlethat is an address counts), or the names are one name — the same words in any order, case, accents and punctuation aside, or a first name spelled by its initial, two words at least, never a word one letter off — and both are heard on one ofpeople's channels; a name alone is never enough. Matches join into one proposal; the primary is the candidate with the most refs, then the most lines heard, then the one minted first; the id is a digest of the entity ids, stable across runs.--applyappends, throughLogbook.appendand nothing else, oneresolution/v1alias line per ref of a secondary whose own line names it (alias_ofthe primary's ref, a phone before an address;sourcemanual,methodowner,supersedesandevidencethe lines replaced,logbook_head, and underextrathe proposal id, the two entities and what matched), so the ref and every ref already aliased to it resolve to the primary through the ordinary walk thatpeople,personand the with module take (a chain that would passMAX_HOPSgets its own line); nothing is retracted, no raw line is touched, and an unknown id exits 2 before anything is written.--export-reviewwrites one CSV row per (proposal, secondary) with an emptyapplycolumn;--apply-reviewmerges the rows markedyes, says and skips a row already merged, and refuses a row it cannot place before writing. Synthetic fixture: four people duplicated across five sources, with the near misses that stay apart (tests/duplicates.py).logbook mcp [--root DIR] [--allow-tier-3]andlogbook mcp --inspect(logbook/mcp_server.py, the optional extraopenlogbook[mcp],docs/mcp.md): the record served to an MCP host on this machine over the process's own stdin and stdout, and nothing else — no TCP, no socket. Nine read tools answer as the commands'--jsondoes —day(date),days(from, to),trips(year),places(),people(),person(name),promises(open),gaps(since)— andsearch(text, since, until, kinds, limit)finds, through the index, the standing lines of a window of local days and a list of kinds whose payload mentions the text, case aside; two write tools go throughLogbook.appendand nothing else,add_note(text, at?)(onenote/v1line, tier 2, aslogbook add) andpromise_done(id)(onetask/v1line, aslogbook promises done). Every tool's output passes the crossing gate of ADR 0016:policy/crossing.jsonnames anmcpdestination (initwrites{"max_tier": 1}; a file that does not name it is a ceiling of 1,policy.mcp_ceiling, the one destination with a default), read on every call and never written; a line above the ceiling is left out of every reading before anything is derived from it (aGatedIndexfilters every line, row and aggregate the index serves, so a tier-2 note is in no Day, page, rollup or search at max_tier 1), the answer carriesgate.withheld, the count of lines left out, and a retraction passes whatever its tier so a retracted line stays hidden. Tier 3 crosses only when the policy allows it and the server was started with--allow-tier-3. A read appends no crossing line.--inspectprints the tool table and one sample request, with neither a record nor the extra. Tests drive the server through the SDK's in-process client over the synthetic persona; no socket opens.logbook inbox list [--json]andlogbook inbox clean --to DIR | --delete [--dry-run](logbook/inbox.py,adapters/README.md"Delete after import"): every file underinbox/with its size, the import that consumed it and whether every line it produced is in the record; then moving what is imported in full to DIR (an external disk, the path underinbox/kept) or removing it, refusing — with its reason — a file nothing imported, one changed since, one imported into another record and one already at DIR, and printing the freed size. A run ofadd(each file) orimport-backup(each source's folder) that reaches its end now appends one entry tostate/imports.jsonl— the input, the adapter, lines produced and appended, theseqspan and its last hash, the record'sowner_id, the input's size — bookkeeping and never the record; a run that stops early records nothing. A store's-wal/-shmsibling is taken with its store by name; a backup'scopies.jsonandManifest.dbgo when every other file of their folder has.addandimport-backupend with one line saying the input can be cleaned.logbook add <export> --dry-run(any file adapter, named or sniffed, a folder or a file; a.jsonlof drafts too): runs the adapter and printswould add N lines from <adapter> (M already there); dry run, nothing written— the linesappend_manywould write and those it would skip as already in the record by the same(source, raw_id)rule, a repeat in the stream counted once, through one query of the index — and what the adapter skipped, as a real run does; nothing is written, not a line, the index orlogbook.json. A sentence or a declared flight with--dry-runexits 2: each is one line, written or not. (sync --dry-runalready existed;addhad none.)withingsreads the account's data export (logbook add withings <folder>, the CSVs of Download my data, or one of them;logbook add <folder>recognises it): the scale's standings fromweight.csv, onehealth-sample/v1line per quantity —weight,fat_mass,bone_mass,muscle_mass,body_water, andbody_fat_pctorbmiwhen the export carries them; pounds converted with the entered value underextra.original—; the cuff's pulse frombp.csvasheart_ratewithextra.systolic_mmhgandextra.diastolic_mmhgbeside it (blood pressure is no type of the profile, rule 8); each night ofsleep.csvas anin_bedspan with the export's totals underextra; from theraw_<device>_<measure>.csvfiles the sleep stages as spans, one per run of equal states (0awake, 1 light →core, 2deep, 3rem), heart rate capped at one reading a minute per device, and steps, distance and calories earned in quarter-hour UTC buckets per device (rules 2–4),devicethe export's own word (tracker,bed); each row ofactivities.csvas aworkoutspan with the type, steps, calories and distance underextra; height, elevation and theaggregates_*daily totals counted, never mapped. Columns are found by header, so one the reader does not need may be missing or renamed; a file without one it needs is counted. A naive clock is read in the record's zone;raw_idis the instant, so a later export appends nothing. Tier 3.docs/adapters/health.mdis new: the three health adapters, the exports' files and columns.myfitnesspalreads the account's CSV export (logbook add myfitnesspal <Nutrition-Summary-…csv>, sniffed too): oneenergy_intakeline per meal per day,valuethe calories as the export summed them, a span over that local day withextra.all_day(rule 10), the meal, every other numeric column slugged (fat_g,carbohydrates_g,protein_g,sodium_mg,saturated_fat… as the export names them,water_mlwhen it carries water) and the note underextra;raw_idenergy_intake:<date>:<meal>.Date,MealandCaloriesare needed, a file without them counted; a row without calories or with an unusable date is counted.- A later export that corrects a sample supersedes the line in the record (RFC 0014 rule 12, new;
logbook/adapters/health_export.py):logbook addhands an adapter whoseruntakesexistingthe record's standing lines by(source, raw_id), batched through the index (Index.lines_of, new), and a draft whose sample differs from what stands — value, span, stage, device, unit orextra— is written withraw_idsuffixed:v2(:v3… when corrected before, the suffixrepair health-unitsuses) andsupersedesthe id of the line it replaces, countedcorrected; one equal to what stands appends nothing. Nothing is rewritten;health.standingalready followssupersedes.withingsandmyfitnesspaltake it, from their stores and their exports alike. logbook add <file|folder> --dry-run(andadd <adapter> <path> --dry-run): the adapter runs, and what would be added, how many of its lines the record already has (the dedupeappend_manywould do, one batched query of the index) and what was skipped are printed; nothing is written, not a line, not a correction. With a sentence or a declared flight it exits 2.logbook sources --gaps [--since YYYY-MM-DD] [--expect SOURCE...] [--json](logbook/gaps.py): where each source went quiet, from the index alone (Index.activity: three SELECTs over its columns, one a window query for the longest stretch between consecutive lines; nothing read from the files, however long the log). Per source with lines in the range: the lines, the last line's time, the longest silent stretch (between two lines, from the range's start to the first line under--since, or since the last line and still running,since 2026-09-20 21:00) and the local days with no line, folded into runs (2026-09-21..2026-09-30). The range is each source's first day to today in the record's zone, or--since; a line dated after today (a calendar's future entries) is outside it; today is a missing day only once the source has been silent a full day.--expectshows only the named sources, a source with no line among them (no lines), marks one silent a day or more at any point of the range with!, and exits 1 when any is marked, so a cron job can say so. Every line counts, retracted or not.--since,--expector--jsonwithout--gaps, a malformed day or one after today exit 2. The plainsourceslisting is unchanged.logbook assets status [--json](logbook/asset_status.py): per asset ofassets.json, in registry order, its last known position and how old that fix is — the local time of the fix,lat,lonto four decimals,near <place>, x m|kmfor the nearest named place ofplaces.jsonwithin 5 km (a berth, a harbour, the cabin's jetty), the speed in m/s when the line carriesspeed_mps, and3 days 4 h ago;no fix yetfor an asset the record has never placed. The fix is the asset's standinglocation/v1line with the latestatwhosesubjectis its id (RFC 0001, ADR 0018), the latest by time, not by order of writing; a retracted or superseded line never counts. Found through the index:index.sqlitegains asubjectcolumn and a(subject, at)index (schema 4; an index built by an earlier schema is rebuilt once, by the first reader, as before), so the lookup is one SELECT per asset and one line read from the files, whatever the size of the owner's own track. Under--jsoneach asset carries its registry entry andfix(at,lat,lon,speed_mps,near {name, m},age_s,line) ornull. Nothing is written.logbook doctor(logbook/doctor.py): is this machine set up to keep the record? One line per check,pass,warnorfail, a summary, and exit 1 when anything fails; it reads and never writes, not even the empty settings file a reader would create. The checks: the record is found andverifyis green withlogbook.jsonat the head (not found, not intact orlogbook/0.1is a fail naming what to run);index.sqliteis current, read through a read-only connection so a build in progress is never discarded (missing or behind is a warn);policy/owner.jsonis there and names at least one alias (missing or empty a warn, not JSON a fail);places.jsonnames a place of kindhome(none a warn, with theplaces addline);assets.jsonis a registry when it exists; each optional extra,ais,encryptedandtranscribe, is installed, found without importing it, withpip install "openlogbook[<extra>]"when not; for every live source the record uses — astate/<name>.jsonwatermark, or lines of that source when the index is current, never onepolicy/import.jsondisables — the variables its adapter reads are set, by name only and never a value, and one the adapter refuses says to runlogbook sync <name>rather than echo it; free space on the record's volume (under 5 GiB a warn, under 512 MiB a fail); and the folder is not one a sync client owns — iCloud Drive (iCloud Drive,Mobile Documents,com~apple~CloudDocs), Dropbox, OneDrive (the folder name or Windows'OneDrivevariable) or Google Drive — by any part of the path as given or resolved, a fail with the reason. README, "Where to keep the record".logbook sync ais --listen SECONDSand--until HH:MM(logbook/adapters/ais.py): one long sitting at the aisstream.io websocket instead of a 60 s window per cron run.--listenis the window in seconds,--untilthe record's local time the clock next shows (later today, else tomorrow; a window across the night the clocks change is the hours that pass); without either,LOGBOOK_AISSTREAM_LISTEN_Sas before. While it listens: one line a minute on stderr with the messages heard, per asset (8 reports in 120s (solvind 7)), quiet socket or not; a socket that drops, or a reconnect that fails, is tried again after a wait that doubles from 1 s to 60 s and starts over once a connection delivers, the subscription sent anew each time (said on stderr, counted asreconnected N times); a refused key is never retried. Ctrl-C ends the listening, not the run: what was heard is written in time order, the summary printed, and the exit status is 130. The key comes fromLOGBOOK_AISSTREAM_KEYonly and is in no line, notice or error. The flags are refused for a source that does not listen, and--listenwith--until.logbook promises [--since YYYY-MM-DD] [--open] [--json]andlogbook promises done <id> [--note TEXT](logbook/promises.py,docs/promises.md): the commitments the record's own words suggest, proposed and never asserted. One proposal per sentence of a standingtranscript/v1ornote/v1line (retracted and superseded lines left out) that carries a first-person future or obligation cue in English or German —I'll,I will,I'm going to,we'll get back,I promise,I need to,I have to,I must,let me(notlet me know);ich werde,ich schicke,ich melde mich,ich kümmere mich,ich rufe,ich muss,wir müssen— not negated right after it (I will not,ich werde nicht) and not a question; by rules alone, no model, no network. Each carries the local day and time of its line, the origin line id, the speaker when the transcript resolves one (the turn's label matched toparticipants, their refs to a person through the resolution lines, RFC 0006;meand the owner's names areyou, as is every note;Speaker Astays as spoken with no person), the sentence as written, and a due hint with a?when a date phrase is in it, resolved against the day it was said (a weekday is the next one strictly after;next weekits Monday;this weekandend of the weekthe Friday on or after;tomorrow,morgen,tonight,in two weeks,next month,by June 20,bis 20. Juni,bis zum 20.6.,the 5th). A transcript's text is read from the attachment store by media type (WebVTT, SRT, Granola's JSON segments,Speaker: textprose, plain text) through the file adapter's parsers; one whose text is not in the store is counted and skipped. The proposal id is a sixteen-hex digest of the origin line and the quoted sentence, so it is the same on every run and for any extractor that quotes the same sentence.--jsonis the report:extractor,skipped, and every proposal withid,status,closed_by,day,at,line,seq,kind,source,title,speaker,direction(owed_by_owner,owed_to_owner, null),certaintyinferred,language,cue,class,quote,due.done <id>appends onetask/v1line (RFC 0016):sourcemanual, tier 2, the sentence astitle,statusdone, the due hint asdue,completed_at,listpromises, the--noteasnotes,raw_idpromise:<id>@<time>, and underextrathepromiseid,origin,speakerandextractor;--openhides a proposal whose latest standing task line isdoneorcancelled; a seconddonewrites nothing and says so; an unknown id is refused. The extractor is a value — aname, aversionand__call__(text) -> list[Match]— so a later local-model pass replaces the rules without changing the command, the report, the ids ordone.logbook transcribe voice-memos [--since YYYY-MM-DD] [--model NAME] [--dry-run] [--fetch-model](logbook/transcribe.py,docs/adapters/voice-memos.md): the local transcription step RFC 0023 leaves to later. Onetranscript/v1line (RFC 0004) per standingvoice-memo/v1line whose audio is in the attachment store and that has no transcript yet, in time order, appended as each is heard, so an interrupted run keeps what it did and the next carries on. The line'sraw_idis the memo's own, so a memo is transcribed once however often the command runs (ADR 0017);sourceistranscriptionwhatever engine heard it;providerthe engine;payload.provenance{source, engine, model}withsourcethe memo line's id;extra.recordingthe memo'sraw_id;languagedetected on the first chunk and asked of every later one; the text one segment per line as atext/plainattachment, never inline;at,end,tzandtitlethe memo's; tier 2, or the memo's when higher. A retracted memo, and one another line supersedes, is left alone, and the transcript never carriessupersedes. Long recordings are heard in ten-minute windows. Engines, as the optional extraopenlogbook[transcribe]:mlx-whisperon Apple silicon, elsefaster-whisper, found at run time and imported only then; neither installed is one clear message. Nothing leaves the machine: the Hugging Face hub is told it is offline for the length of the run, so no socket is opened (a test refuses every socket while a fake engine hears a two-second synthetic WAV); a model not on this machine stops the command, and--fetch-modelis the one explicit download.--dry-runlists and needs no engine.--modelis a Whisper size (defaultsmall) or a repository.logbook demo --days N --seed S --out DIR(logbook/demo.py): a complete synthetic record to try every command on, invented in code and read from nowhere. The Oslo persona, Ines Nordmann, who does not exist, lives a four-week story that repeats for as many days as asked: an office week with a cabin weekend; Zürich for a client, out on a tracked flight (flighty, XY 561) and back on one the record infers from its own calendar entry and location points (flight-inference, XY 562, written aslogbook infer flightswould, so the command finds it already there and merges the other three); a week aboard the yacht Nordlys with the boat's own AIS track as a subject (assets.json, MMSI in the 970xxxxxx test range), so the nights read aboard and the trip is an asset trip; Copenhagen, out tracked (XY 571) and back declared (manual, XY 572). Around it every profile: location, event, message, transcript (the text in the attachment store), note, photo with favourites and an Art album (keepers follow), call, mail, task, browse, watch, listen, trip, highlight, voice-memo (a digest, no audio), health samples (sleep stages past midnight, steps in quarter hours, resting and ambient heart rate), transaction, and the resolution lines of a circle of twelve fictional people;places.jsonnames Home (with its country), Office, Marina and Cabin and leaves the hotels and the anchorages forplaces propose. Phone numbers are in the UK reserved range 07700 900xxx, emails at example.org, the airline is XY, registrations ZZ-. The record is a function of (days,seed): ids, timestamps, GPS noise, step counts and every text come from one seeded generator and a fixed first day (Monday 1 June 2026), so the same arguments give the same head anywhere. Thirty days is 12,772 lines.docs/try-it.md, Five minutes with a demo record, walks every reader over it; the README's quick start begins with it;docs/demo.taperecords it.trips: a night named by its nearest large airport drops the part after a comma as well as the airport words, so a night off Sandefjord readsSandefjord, notSandefjord Airport, Torp.trips, "with": the owner is never their own company —present.owner_ofgathersowner_idandowner_emailsfromlogbook.json, every resolution line that names those, every label they carry, and the record's newpolicy/owner.json({"names": [...], "emails": [...], "phones": [...]}, your other spellings;initwrites it empty and an older record gets it on the first reading). A calendar attendee counts only for a timed entry held at the stay: its location geocodes within 1 km of the stay's centre (coordinates underextra.location, or alocationnaming a place inplaces.json), or it has no location and overlaps the stay by more than an hour; an all-day entry places nobody and a located entry the record cannot place does not count. A transcript participant counts only when the record resolves them to a person (Speaker A,me,them,Unknownare nobody). An attendee that does not resolve and has no display name is dropped, and a calendar system address (calendar.google.com,noreply,reservations@,invite@) is never a person. At most twelve names, most evidence first. The same rules reachshow place,show asset,show personandrollup people, which share the with module. (A real record listed the owner, a hotel's reservations address and a diarization label as company.)trips, the night rule: a night whose stay centre is within 400 m of a place of kindhomeis a night at home whatever that place's radius, so a guest room across the street makes no one-night trip and a trip never starts or ends with such a night.rollup nightscounts it as home too.trips, the route: a stay is its named place; else a large airport's name only when the stay is within 2 km of it (it was the nearest within 100 km, so a hotel read as the city); else its coordinates, withnear <place>, x kmfor the nearest named place within 5 km. Consecutive route points within 200 m of each other fold into one.trips.route_ofis the pure function.
Docs
scripts/bench_seal.pyanddocs/rfcs/bench-encryption-2026-10.md: the benchmark the encryption draft's open question 1 asked for, and its results. A 3,000,000-line synthetic record shaped like the stress tests (1,000,000 tier-1 points, 1,000,000 health-sized tier-3 lines, 1,000,000 message-sized tier-2 lines over ten years of month files) is written plain and sealed per line in the draft's Option C layout (sealed/v1reference inpayload,payload_encbeside it, outside the hash) with age X25519 throughpyrageto one and to two recipients, and with the §9.1 record data key (ChaCha20-Poly1305) for comparison; measured: the seal step per line, opening per line, keyless and keyed verify, index rebuild with opening, bytes on disk per line and in all, and the peak memory of each phase in a subprocess of its own. The script is a pure benchmark run withuv run --with pyrage python scripts/bench_seal.py(--quickfor 300,000 lines); pyrage is not a dependency..github/workflows/bench.ymlruns it on the three CI runner sizes by hand only (workflow_dispatch), never on push. No product code changes.docs/audit-2026-10.md: the audit of the repository as of 3 October 2026 — the sizes, the 46 commands, the two adapter registries, which profiles are written and which are read, the duplicate RFC numbers, what the test suite guards and what it pins, what each extra installs — every number from a command in its appendix, and the three decisions the owner took on it (46 commands become 22 with hidden aliases; the read profiles freeze for v1.0, the written-but-unread ones park,commitment/v1andcommitment-close/v1go,trip/v1becomesjourney/v1; one packageopenlogbookin three tiers, core, contrib, labs). On the docs site under Roadmap.- The repository reads in ten minutes: the README is a landing page (the long form moved to
docs/tour.md),docs/index.mdlists every page in one line each,docs/release-notes.mdsays what 0.5 and 0.6 changed for you in five bullets each, SECURITY.md carries the threat model on one page (tiers 2 and 3 are marked, not yet encrypted), CONTRIBUTING.md has one way to do each thing, and the issue templates ask for a synthetic reproduction, an adapter's export and tier, or an RFC's schema and example. The stale version and phase strings are gone. - RFC 0031, Profile freeze for v1.0 (
docs/rfcs/0031-profile-freeze.md, draft): every payload profile sorted by one rule computed from the code into frozen (read by a reader, a rollup or a derive command: 19), parked (written by an adapter, read by nothing: 7) or deleted (commitment/v1andcommitment-close/v1, written and read by nothing: 2), with what each word binds, thetrip/v1→journey/v1rename for new lines with no migration, how a parked profile gets frozen, the unresolved questions and the five pull requests that carry it out. The letter to builders,docs/letters/2026-10-04-the-freeze.md, says what the freeze gives, costs and asks. Docs only; nothing in the code or the spec changes until the RFC is accepted.
Tests
tests/test_fuzz_readers.py(hypothesis): every reader —show,day,days,trips,derive stays --dry-run,infer flights --dry-run, everyrollup,places propose,keepers,sources --gaps,promises --all,assets status,doctor— runs onlogbook demorecords of any seed and length, in any date window, and exits 0 with well-formed output (valid JSON under--json), never a traceback. The record is reshaped in spec-legal ways beforeappend_manywrites it: optional payload fields left out (the MAY rows of each RFC table), a stringchat(SPEC §3.2), atzthe host's zone database lacks (§2), a day with only tier-3 lines; and an empty month file after. Eight short cases run in CI; the long ones areslow(LOGBOOK_SLOW=1). A failure names the seed, the days, the reshapings and the command.
Housekeeping
- Changelog fragments: a pull request adds
changelog.d/<short-slug>.mdinstead of a line in CHANGELOG.md, so parallel pull requests no longer conflict on it. At release timescripts/changelog_assemble.py X.Y.Z(stdlib only) folds the fragments, and theUnreleasedblock while one exists, into the new version section and deletes them. Thechangelogcheck fails a pull request that edits CHANGELOG.md or adds no fragment; theno-changeloglabel opts out. The release checklist isdocs/releasing.md. - Property tests of the format (
tests/properties/, the October 2026 audit): what SPEC.md guarantees, stated for any input and searched for a counterexample by Hypothesis — canonicalisation (§3, RFC 8785: idempotent, key order and stored whitespace aside, injective on values,1and1.0one number), the hash chain (§1, §3, §6: any sequence verifies, an append changes only the head, any byte flip of any line is rejected naming the line, a truncation reports the last good head), tiers (§4, ADR 0016: an export at tier t is exactly the lines at or below it, tier 1 carries no profile of tier 2 or 3 as SPEC.md's own table lists them, export then import is idempotent on the head), time (§2, §3.2: the day of a line is the local date in the record's zone, midnight turns the day, a DST transition leaves no instant without a day or with two, a duration is the real seconds elapsed), identity (RFC 0006: every spelling of a number or an address is one ref and one person, two identifiers never collide) and the attachment store (§1.1: store then load is the same bytes under their SHA-256, storing twice does not duplicate). The suite's Hypothesis profile is deterministic. The example tests these properties make redundant are gone. One property is markedxfail(strict=True): a month file cut inside a line makesverifyreport seq 0 and GENESIS, not the head of the lines before the cut. - A pull request that renames a command or changes a reader's output runs
LOGBOOK_SLOW=1 uv run pytest tests/test_fuzz_readers.pyonce before it merges (CLAUDE.md, CONTRIBUTING.md and a box in the pull request template): the fuzz readers are slow-tier, which the pull-request CI tier skips, so #215 turnedmainred on 4 October and #217 fixed it forward. - The test suite imports the 0.6 paths (
logbook.core.store,logbook.contrib.adapters, …), never the 0.5 oneslogbook._shimkeeps alive, and in the suite the shim's DeprecationWarning is an error, so no test drifts back to an old path;scripts/rewrite_test_imports.py(layout.MOVED, re-runnable,--check) is what moved them. The shims anddocs/migration-0.6.mdare unchanged. - The ruff hook in
.pre-commit-config.yamlis the version CI runs (uv.lock), so the two agree on import order.
Profiles and spec
commitment/v1andcommitment-close/v1(RFC 0007) are withdrawn by RFC 0031: nothing ever wrote or read them. They leave the tier table of SPEC §4 and the seed list inrfcs/README.md, and the promises reader's documents state their own rules instead of citing RFC 0007. No line, reader or command changes.trip/v1is written asjourney/v1for new lines (RFC 0031, ADR 0021):easypark,sbbandpassageswritekindjourney,schemajourney/v1;showformats both spellings the same way andsearch --kinds tripor--kinds journeyfinds both. Nothing is migrated: atrip/v1line already in a record stays as it is. RFC 0020 carries the amendment and is marked parked · may change before v1.0.- One conformance fixture per frozen payload profile under
conformance/profiles/<profile>/(RFC 0031, SPEC §6.1): a one-line record, the line's canonical form and hash, theshowrow and thedayanddaysJSON, generated byconformance/make_profiles.pyand held byte for byte by the tests. The nineteen RFCs say frozen for v1.0 in their status lines.
0.5.0 — 2026-10-01
Profiles and spec
apple-health: resting heart rate and HRV are taken as the store keeps them — count/min and ms — no longer multiplied by 60 and 1,000 (a real store showed resting rates in the thousands); heart rate keeps its ×60 (the store holds count/s, the original count/min, checked row for row). Every mapped type's stored unit is now recorded in RFC 0014 ("Units as the store keeps them"), with what a record imported before this version shows and how to correct it.stats --health: a night's hours are the union of one device's asleep spans (asleep,core,deep,rem), then the longest device; a source that writes the same night twice no longer doubles it (a real record showed 11–14 h nights), and devices are never summed. RFC 0014 rule 4 says so.derive stays: a tracker that is silent while the owner is still (Dawarich) no longer breaks a stay into pieces — a gap whose next point is back inside the radius continues the stay whatever its length, so themove 10 m · gaprows are gone; a stay lasts until the tracker's next point when that comes after a silence ofmerge_gap_sor more and lies within a walk ofmerge_gap_s(walk_max_kmh, 1.2 km by default), so an evening at home with no points until morning is the night, not in transit, even when the first point of the morning is after the night window and already away; the reading hands the derivation the first point after the window for that.merge_gap_snow governs only an excursion: out of the radius and back within it is one stay. Settings note in the README and the module.logbook repair health-units [--dry-run](logbook/repair.py): the migration for a record whoseapple-healthlines carry resting heart rate and HRV in the wrong unit — per standing wrong line a corrected line (valuedivided by 60 or 1,000,raw_idsuffixed:u2,payload.supersedesthe old id) and a retraction (sourcelogbook); idempotent;--dry-runprints counts and writes nothing. RFC 0014 addssupersedesto the profile and documents the migration; README "Upgrading" says when to run it.- RFC 0024, payload profile
keeper/v1(draft): one line per photo the captain marked a keeper —photo({line, asset_id, library, file_name?}, the photo/v1 line it points at),at(the photo's capture time, so the keeper is on the photo's day),lane(memory, a day's hero photo, orart),source(where the mark was made:ios-photos,immich,manual),raw_id<photo line id>:<lane>. A keeper is the owner's act, never a reader's guess; unmarking is a retraction; a day's hero photos are its keepers. - Conformance:
conformance/sample-logbookgrows from 16 to 31 lines — the first sixteen unchanged, then one synthetic line of every profile added since v0.2, fourteen on the Sunday: a location with asubject(the boat),health-sample,call,browse,watch,task,mail(an attachment by digest, nopath),listen,trip(a parking session with a price, tier 3),transaction,flight(evidencetracked),highlight,voice-memo(audio by digest, not stored) andcrossing, then akeeper(RFC 0024) on the first photo's day.expected.jsonnames the new head,035a74e0…; the conformance README keeps the table of heads per release.make_sample.pywrites bytes (no CRLF on Windows) and leaves the policiesinitwrites out of the fixture. - SPEC §4 gains the table of default tiers per payload profile, repeating each RFC as merged (tier 1: location, photo, event, crossing, call, flight, trip, migration; tier 2: retraction, transcript, resolution, commitment, message, note, mail, task, browse, watch, listen, highlight, voice-memo; tier 3: health-sample, transaction), with MUST marked where the RFC says so and the SHOULD/
--tierrule in one sentence; §5 points atrfcs/README.mdfor the list instead of the seven seed profiles. One disagreement, resolved in favour of the RFC: RFC 0004 saystranscript/v1SHOULD be tier 2, while RFC 0012 called it tier 3 and thetranscript,granolaandwispr-flowadapters write 3. The table says 2, RFC 0012's aside now cites RFC 0004, and the adapters keep writing 3 as a SHOULD allows a more careful producer (--tier 2follows the RFC); no line's tier changes. - RFC 0014
health-sample/v1: typesbody_fat_pct(%),fat_mass,fat_free_mass,muscle_mass,bone_mass,body_water(kg),bmi(kg/m2),vo2_max(mL/kg/min),energy_intake(kcal); rules 9 (body composition is one line per quantity), 10 (a logged food isenergy_intake; a day without a clock is a span) and 11 (a reading relayed from another app is skipped); a meal is now a health sample only as its energy. - RFC 0002
photo/v1:favorite,hiddenandalbumsfields; a provenance rule for a library that records how an asset arrived; and the merge rule for one asset seen by several libraries — the same originalfile_name(ignoring case) and capture times within one second, folded by a reader as a union, never rewritten by an adapter. - RFC 0019, payload profile
listen/v1(draft): one line per listen —mediatrack/episode,title,artistorshow(andpublisher) as the service spells them, never resolved,album,url,duration_swhen known,played_swhen the source keeps a playhead,published,service;raw_idthe service's id with the time as spelled, so a track identified twice is two listens; a zoneless time (Shazam) is read in the record's zone. Tier 2. Listed inrfcs/README.md. - RFC 0018, payload profile
watch/v1(draft): one line per video watched or search made —raw_id<service>:<time as the export spells it>:<sha256(url, else title)[:16]>,actionwatched/searched,title(a search's query),url,video_id,channel{name, url?}never resolved,serviceyoutube/youtube-music/…; an advertisement is never a line. Tier 2. Listed inrfcs/README.md. - RFC 0017, payload profile
browse/v1(draft): one line per page opened, bookmarked or saved —raw_id<app>:<time as the source spells it>:<sha256(url)[:16]>(no browser keeps a visit id across exports),url,title,actionvisit/bookmark/save,browser(the app that recorded it),transition(Chrome'spage_transitionlower-cased),folderfor a bookmark,tagsandstatusfor a read-later save. Tier 2: reading is not public activity. Listed inrfcs/README.md. - RFC 0016, payload profile
task/v1(draft), written for every task app at once: one line per task —raw_id<source id>@<modified_at>(a snapshot per edit, asnote/v1),title,statusone ofopen/done/cancelledwhatever the app calls them,dueas a day (YYYY-MM-DD) when the source keeps a day only else an RFC 3339 instant,completed_at,list,notes,parent(a subtask is its own line),prioritylow/medium/high,tags,recurrenceas RRULE text,modified_at,url;atthe creation time when the source keeps it, else the last modification. Apple Reminders and TickTick fit the same fields. Listed inrfcs/README.md. - RFC 0020
trip/v1: one movement or metered stop by a paid mobility service —moderide,parking,rentalortransit,provider,fromandtoas the service's own place (name, address, code, operator, coordinates; never resolved),distance_m,price,status. A parking session is a trip with one place; a service that keeps only places last used writes a line with no end andextra.observedlast_used. Producers:easypark(below);uberhas none yet — the Uber app's container in an iOS backup holds saved places and the app's analytics, not the ride history, so the mapping waits for Uber's data export. - RFC 0021, payload profile
transaction/v1(draft): one line per movement of money as a financial app recorded it —raw_idthe app's own id;amountsigned from the owner's side (negative when money left, positive when it arrived), a number as the source stores it;currency(ISO 4217);merchantas the app shows the other side, never resolved;categoryas the app spells its own;datethe day the app files it under;account;providerthe app;statuspending/posted;note; the app's type, recurring flag, original strings, a shared expense's total and member shares underextra. Kindtransaction, tier 3 always (SPEC §4: money;--tiernever lowers it). Listed inrfcs/README.md. Of the money apps a phone backup holds, Copilot keeps its whole transaction table and Splitwise every expense with its shares; Revolut keeps no transactions on the phone (profile, market news, a chat), so it has no adapter from a backup. - RFC 0015, payload profile
mail/v1(draft): one line per email message —raw_idtheMessage-IDwithout its brackets, prefixed by the mailbox address and a colon when the source knows it, elsesha256:<digest of the message bytes>for a message with none;message_id;threadthe first entry ofReferences, elseIn-Reply-To, else the message's own id;from,to,cc,bccas{email, name?}with the address lower-cased, the same identity aresolution/v1email ref names and never resolved here;subject;dateas RFC 3339 with the header's own offset (atis the same instant in UTC,tzthe record's zone: aDateheader has an offset, not a zone name);directionsent/receivedby the owner's addresses;labelsas the mailbox spells them;bodyas plain text (text/plain, elsetext/htmlstripped,extra.body_from: html);size;attachmentsas{filename, media_type, sha256, bytes}— the SPEC §1.1 shape plus the file name,pathonly when the bytes are in the store — andaccount,extra.gmail_thread_id,extra.in_reply_to,extra.references,extra.decoding_errors. Tier 2 (SPEC §4: personal mail), lowered or raised only for a whole import. Listed inrfcs/README.md. - RFC 0014, payload profile
health-sample/v1(draft): one line per measurement —type(steps,distance,active_energy,basal_energy,flights_climbed,heart_rate,resting_hr,hrv,weight,sleepwithstage,workout),value, a fixedunitper type,deviceas the store identifies it,source_namewhen the store names it;kindhealth, tier 3 (SPEC §4;logbook add --tieroverrides). High-frequency counts are summed into 15-minute UTC-aligned buckets per device (raw_id<type>:<bucket start>:<device>), heart rate is capped at one reading per minute per device, sleep stages and workouts are spans; a line never sums across devices, a reader takes the larger device per bucket. Any other line is one store row,raw_id<type>:<data_id>, so a re-import appends nothing (ADR 0017). - RFC 0001
location/v1amended, backward compatibly: an optionalsubject, the id of an asset inassets.json, absent meaning the owner; an asset's positions are its own track and a reader never merges them with the owner's. SPEC §3.2's run rule names the subject (no format bump, no hash change). ADR 0018, assets are subjects, not places: "aboard" is derived downstream, never written on a line. - RFC 0013, payload profile
flight/v1(draft): one flight the owner was on —date,carrier(IATA),number,from/toas{iata, icao}, scheduled and actual gate times (take-off and landing too when a source keeps them),aircraft{type, registration},role(passenger|pilot),cancelled,diverted_to— and how the three producers meet:evidenceistracked(a flight tracker's export),inferred(the record's own calendar and location lines) ordeclared(the owner's word). A flight is keyed by(date, carrier, number); every producer observation is a line, and one that arrives for a flight already standing supersedes it with the merge — tracked over inferred over declared, field by field, the declaredrolealways — listing every folded-in line underobservations(logbook/flights.py:build,key,standing,merge,reconcile). Tier 1; a PNR is never kept. Two tables ship in the package:logbook/tables/airports.csv(OurAirports, public domain: the 1,150 large airports with scheduled service, IATA, ICAO, name, coordinates and an IANA zone assigned byscripts/make_airports.py, the only flights code that touches the network and only at development time) andlogbook/tables/airlines.csv(IATA ↔ ICAO designators, so Flighty'sSWRand a calendar'sLX 561are one flight).--airports FILEonaddandinfer, orLOGBOOK_AIRPORTS, adds a private field or overrides a row (same columns;icaoandnameoptional). - SPEC clarifications, round two, no format bump, no hash change (#84): a reader other than
verifyMAY rely on month-file placement; timestamps compare as instants, not text;tznames no edition of the zone database and an unknown zone never invalidates a record; a line whose payload does not match its profile is valid and a reader MUST NOT fail on it; the conformance sample tests the chain, not the profiles. New §3.2 Readers: a day is ordered by instant thenseq; retraction lines are not listed on their own day; an alias walk that ends without an entity line names nothing (RFC 0006 rule 6 reworded to match); a collapsed run of points ends at the last point'send, else itsat; read commands MAY refuse alogbook/0.1record. Found by logbook-ts while building itsshow.CONTRIBUTING.mdrewritten: one issue per PR, signed and signed-off commits, synthetic data only, green CI, ADR 0017 for adapters. - RFC 0012, payload profile
call/v1(draft): one line per call in a call log —raw_idthe store's own id,direction(incoming/outgoing),answered,duration_s,counterpartyas a source-native{kind: phone|email|handle, value}ref (RFC 0006, never resolved here),serviceas the source names it (cellular,facetime,facetime-audio,whatsapp, …);atthe start,endthe start plus the duration when answered. Tier 1: a call record is metadata about the owner's own time, like a calendar attendee, and carries no one's words. Listed inrfcs/README.md. - RFC 0006: a resolution line may carry
alias_of— a ref{ kind, value }— instead ofentity: this ref and that ref are the same identity, and the line mints nothing. Rule 6: a reader followsalias_ofto the target ref's own last line standing, at most 4 hops, stopping on a cycle or at a ref with no line standing, and the line it stops on decides; retraction and last-wins apply to an alias exactly as to an entity line.logbook/resolve.pydoes this, soshownames a ref that is an alias of a resolved phone without any change of its own (#58).
Adapters and import-backup
sbbfile adapter: SBB Mobile'sSbbMobile.db(TicketGroupswith the validity window, the stations on the ticket, the ticket type, the head count and the order item ids as JSON;PurchasedTicketsfor the price, class, product and refund state) andch.sbb.coredata.pasttrips.sqlite(ZMYTRIP.ZVERBINDUNG, the app's JSON of a saved journey whose day has passed: stations, Swiss-time clocks, transfers, real-time clocks, legs with coordinates andIC 8-style line names) →trip/v1(RFC 0020), modetransit, providersbb,tzEurope/Zurich: one line per ticket group (raw_idticket:<groupId>,extra.observedticket,at/endthe validity window,price{amount, currency}summed over the group's tickets,statuscancelledwhen all were refunded, tier 3 with a price else 1) and one per journey (raw_idtrip:<verbindungId>,extra.observedjourney, planned clocks asat/end, the real ones underextra.actual_*,extra.legswithmodefrom the app's icon —train,bus,tram,ferry,walk— andline,transfers,international). Either store brings the other beside it. The traveller's name, date of birth, QR code, rendered ticket and order reference are never read.showprintsFrom → To, transit, sbb, 58.00 CHF, 1 change. RFC 0020's notes gain the ticket-versus-journey sentence.import-backup:sbbruns last:SbbMobile.dbfrom the shared container with the past-trips store from the app's own container copied beside it — the first companion from another domain.withingsfile adapter: the Withings app's per-profile stores →health-sample/v1(RFC 0014), tier 3.<profile>_WTHealth.sqlite(ZWTOBJECTwithWTQuantityType.*identifiers and Apple-epoch dates →ZWTQUANTITY,ZWTSOURCEfor the device model and the relaying app's bundle id,ZWTSEARCHABLEMETADATAfor the zone) gives one line per quantity of a standing on the scale —weight,body_fat_pct,fat_mass,fat_free_mass,muscle_mass,bone_mass,body_water,bmi,vo2_max— all at the standing's instant;<profile>_Measure.sqlite(ZWTSPECIALIZEDGROUPtyped by its entity name inZ_PRIMARYKEY→ZWTMEASUREGROUPfor date, zone and device,ZWTMEASUREmantissa × 10^exponent) givesheart_ratereadings. Rows relayed from another app (a watch via Apple Health, Garmin) are skipped and countedskipped_relayed; removed rows, rows without a value (correlations), without a date, and types outside the profile (impedance, scores, height, blood pressure) are counted too.raw_idis<type>:<profile>:<local id>,devicethe model number,extra.profilethe profile. Either store brings its partner of the same profile; a folder brings every profile.logbook add withings <store-or-folder>.myfitnesspalfile adapter: MyFitnessPal'smaindb.sqlite→health-sample/v1, tier 3:food_entries×food_portions×nutritional_values(nutrient 0) → oneenergy_intakeline per logged food in kcal (meal name frommeal_names, food, brand, quantity and portion underextra), at the entry's local clock in the store'stimezone_identifier(else the record's zone);measurementsof type Weight →weight(pounds converted when the owner's unit preference says so, the entered value underextra.original);exercise_entries→workoutwith the duration asvalueand the exercise's name and calories underextra. An entry the app keeps only the day of is a span over that local day withextra.all_day. Daily step totals, the other body measurements, zero weights and exercise without a duration are skipped and counted.logbook add myfitnesspal <store>.import-backup:withings(thecoredata/folder's*_WTHealth.sqliteglob with*_Measure.sqliteas companions, every profile, the adapter run on the folder) andmyfitnesspalrun afterapple-photos.apple-photosfile adapter: an iPhone'sPhotos.sqlite(ZASSETwith Apple-epoch capture dates, kind and subtype, favourite, hidden and trashed flags, coordinates with-180for none;ZADDITIONALASSETATTRIBUTESfor the original file name, the zone name and how the asset was imported;ZGENERICALBUMkind 2 for the owner's own albums through theZ_<n>ASSETSjoin table, found by its shape becausenchanges with iOS;ZDETECTEDFACE→ZPERSON) → onephoto/v1line per asset not in the trash, tier 1:asset_id/raw_idthe UUID,libraryapple-photos,file_namethe original name,media,lat/lon,width/height,duration_s,live_photo,provenance(screenshotfrom the subtype,camerafrom a live photo, a camera video kind or an import by the camera,receivedfrom another app or AirDrop, elseother),faces,peoplethe UUIDs of the people the owner named (a merged person under its target; ids, never names),favorite,hidden,albumssorted;extrathe UTI and the importing bundle.tzis the asset's IANA zone name when it has one (GMT+0200is not one). Trashed and undated assets skipped and counted.logbook add photos <store>.import-backup:apple-photosruns aftervoice-memos, on a copy ofPhotos.sqlite(with its -wal) fromCameraRollDomain; no image is copied.voice-memosfile adapter and RFC 0023voice-memo/v1: Voice Memos'CloudRecordings.db(ZCLOUDRECORDINGwith Apple-epoch dates, the owner's title inZCUSTOMLABEL, the file name inZPATH) → onevoice-memo/v1line per recording, tier 2:raw_idthe recording's unique id,title,duration_s,file_name,end=at+ duration, andmediathe audio as a SPEC §1.1 reference —.m4aasaudio/mp4, the app's.qtacomposition asvideo/quicktime— hashed a chunk at a time fromRecordings/beside the store (animport-backupcopy) or beside the store itself (the phone's and the Mac's layout). Without--attachmentsthe reference has nopathand the bytes stay where they are (counted attachments referenced, not stored); with it each file goes through the new streamedLogbook.attach_file(attachments.write_path,reference_path,digest_path: a hundred-megabyte recording is never held whole), and a re-run with the flag appends nothing but fills the store. A recording whose file is missing is a line without media, counted. No transcription (RFC 0023 rule 3).showprintsTitle (m:ss), thenaudio missingornot stored.import-backup:voice-memosruns afterapple-books; only the.m4a/.qtafiles underRecordings/travel with the store (media_suffixes), not the waveforms and composition manifests.--attachmentsstores their audio. An adapter whoseruntakesstore_filegetsLogbook.attach_file.apple-booksfile adapter and RFC 0022highlight/v1: Apple Books'AEAnnotation*.sqlite(ZAEANNOTATIONwith Apple-epoch dates; a row with selected text is a highlight, its colour index and underline flag underextra; a row without text is a bookmark, except the type-3 row that marks where the owner last stopped reading, which is the app's state and is skipped and counted) → onehighlight/v1line per mark, tier 2:raw_idthe annotation UUID,type,quoteandnoteverbatim,locationthe EPUB CFI as text,modified_atwhen later thanat. The title and author come from theBKLibrary*.sqlitebeside the store or in Books' own../BKLibrary/folder, by asset id; a book the library does not list leavesasset_idand no title, counted. Deleted marks (tombstones), undated and placeholder-dated rows are skipped and counted.logbook add books <store-or-folder>(booksis an alias; a folder is searched for the store).showprints a highlight as“quote” — Title · noteand a bookmark asbookmark — Title @ location.import-backup:apple-booksruns aftertwitter. ASourcecan now listcompanions— other files, by path or glob and from any domain, copied beside the store under their own names with their-wal/-shm(Books' library, so the adapter finds the titles beside the copy) — and keep only media with givenmedia_suffixes.pocketfile adapter: a Pocket CSV export (title,url,time_added,tags,status, one part or the unzipped folder of parts) →browse/v1, onesaveper row, sourcepocket,browserpocket,raw_idpocket:<time_added>:<sha256(url)[:16]>,tagssplit on|,statusunread/archived. Decided againstnote/v1: a note is the owner's own words (RFC 0010 rule 4) and a saved page is not; a bookmark already lives inbrowse/v1, and a read-later save is a bookmark kept in another app (RFC 0017, notes). A row without a url or a time is skipped and counted.shazamfile adapter: the app's library export (shazamlibrary.csv: aShazam Librarytitle line, thenIndex,TagTime,Title,Artist,URL,TrackKey) →listen/v1, onetrackper row,raw_idshazam:<TrackKey>:<TagTime>,extra.track_key; a row without a time or a title is skipped and counted. Sniffed by the title line or the header.apple-podcastsadapter, file and live (ADR 0017): Apple Podcasts'MTLibrary.sqlite(ZMTEPISODEjoined toZMTPODCAST;ZLASTDATEPLAYEDseconds since 2001; the columns discovered withPRAGMA table_infoso onlyZTITLE,ZUUIDandZLASTDATEPLAYEDare required and a store with other columns, or no show table, still reads) →listen/v1, oneepisodeper played episode,raw_idapple-podcasts:<ZUUID>@<last played>so an episode played again is a new line;show,publisher,url,duration_s,played_s,published,extra.play_count; never-played episodes counted.logbook add apple-podcasts <copy>reads a copy;logbook sync apple-podcastsreads the Mac's own store (LOGBOOK_PODCASTS_DBnames another), opened read-only so rows in the -wal file are seen, the watermark the newest last-played time — one mapping, so the two dedupe.google-takeout-youtubefile adapter: Google Takeout'sYouTube and YouTube Music/history/—watch-history.jsonandsearch-history.json(the JSON export), streamed throughijsonone entry at a time →watch/v1, sourcegoogle-takeout:Watched …andSearched for …entries, theheaderas the service, the first subtitle as the channel,v=as the video id. An ad (From Google Ads), another activity (Visited …) or an entry without a time is skipped and counted; a removed video is a line without a url, counted.logbook add "Takeout/YouTube and YouTube Music/history"sniffs the folder or either file.google-takeout-chromefile adapter: Google Takeout'sChrome/folder —History.json(Browser History, onevisitper entry fromtime_usec,extra.transition_qualifier;client_idand favicons not kept) andBookmarks.html(the Netscape file, onebookmarkper link fromADD_DATE,folderthe/-joined<H3>path, parsed with the stdlib) →browse/v1, sourcegoogle-takeout,browserchrome. An entry with no url or no time is skipped and counted.logbook add Takeout/Chromesniffs the folder or either file.safarifile adapter: Safari'sHistory.db(history_visitsjoined tohistory_items,visit_timeseconds since 2001, the columns discovered withPRAGMA table_infosotitleandload_successfulare read when present and a missing one leaves the field out) →browse/v1, onevisitper row, sourcesafari,raw_idsafari:<visit_time>:<sha256(url)[:16]>— the phone's copy and the Mac's own spell a synced visit the same way and dedupe. Opened read-only and immutable.logbook add safari <copy>reads a store under any name.import-backup: the Safari step runs thesafariadapter on the copy underinbox/<backup>/safari/instead of reporting copied, no adapter yet;ios_backup.EXTRASnames it as an adapter source like the call log and Health.google-takeout-tasksfile adapter: Google Takeout'sTasks/Tasks.json(every list, every task, subtasks included) →task/v1, sourcegoogle-takeout, tier 2:raw_id<task id>@<updated>,statusdoneforcompletedelseopen,dueas the day the export's midnight instant stands for (RFC 0016 rule 4),completed_at,list,notes,parent,extra.hidden/deleted/links;atisupdated(the export has no creation time). A task without a title is skipped and counted; a deleted one is a line, marked.logbook add Takeout/Taskssniffs the folder or the file.google-takeout-keepfile adapter: Google Takeout'sKeep/folder (one JSON per note, the.htmltwins ignored, attachments beside) →note/v1, one line per note, sourcegoogle-takeout, tier 2:raw_idkeep:<createdTimestampUsec>@<modified_at>(Keep exports no note id; the creation instant never changes, and the edit time on the end makes an edited note a new line, RFC 0010 rule 2),title,text(a list note as[x]/[ ]lines),modified_at,labels(RFC 0010 gains the optional field),extra.pinned/archived/trashed/color/links; attachments as{filename, media_type, sha256, bytes}from the file beside the note,pathwith the bytes in the §1.1 store only with--attachments, a file the export left out as{filename, media_type}and counted. A note with no text is skipped and counted; a trashed note is a line, marked.logbook add Takeout/Keepsniffs the folder or one note.ios-walletfile adapter: Apple Wallet passes →flight/v1andevent/v1. An air boarding pass is oneflight/v1line per leg, evidencetracked(RFC 0013, which gains the producer row): the airline's IATA BCBP barcode gives carrier, flight number, route, seat, compartment and the day of the year; the year is the first plausible one amongrelevantDate,relevantDates,expirationDate, the semantic tags and any dated field, and a pass that names none is skipped and counted (skipped_no_year), never guessed from a file time. Only the semantic tags (originalDepartureDate,originalArrivalDate) become scheduled times;relevantDateis kept underextra.relevant_dateand is the first leg'satwhen no schedule is known. A pass without a barcode is read from its primary fields' airport codes and aflightfield, else counted. Event tickets, and bus, boat and train boarding passes, areevent/v1lines (title, venue, the issuer ascalendar, the pass'slocationsand front fields underextra, minus any field whose key names a person or a credential); store cards, coupons and generic passes are skipped and counted. The PNR, the passenger's name, the barcode and the ticket numbers never reach a line.raw_idiswallet:<16 hex of pass type and serial>@<digest>, so a pass Wallet updated is a new observation and a Flighty export of the flight supersedes it throughflights.reconcile. Reads a.pkpasszip, an unpacked.pkpassfolder, apass.jsonor a folder of any of them; UTF-8 and UTF-16, a trailing comma forgiven.logbook add wallet <path>;adapters.named("wallet").easyparkfile adapter: the EasyPark app'srecentparkings_<user>.json→ onetrip/v1line per recently used area (fromwith description, signage code, operator and coordinates;atthe last-used time in Apple's epoch;raw_ideasypark:<area id>@<at>), oldest first; a placeholder without a time and a record with unusable coordinates are skipped and counted.import-backupcopies the file out ofAppDomain-net.easypark.app(a folder source whose glob names the file) and runs it.wispr-flowfile adapter: the Wispr Flow dictation app's Core Data store (ZTRANSCRIPTION: Apple-epoch start and end, the recogniser's text, the model's tidied text, the typed text, status, origin, language, the app it was typed into) → onetranscript/v1line per dictation, the text as atext/plainattachment through thestorecallback and never inline,raw_idwispr-flow:<uuid>,participantsempty (one speaker), tier 3 by default (--tieroverrides); rows without text or a start are skipped and counted, an end before its start dropped and counted. The recordings beside the store are not read.logbook add wispr <file>;import-backupcopies the store out ofAppDomain-com.wispr.flowappand runs it.flightyreads the app's own store:MainFlightyDatabase.dbfrom an iPhone backup (Flightjoined to the owner'sUserFlight,Airport,AirlineandTicket; gate and runway original and actual times as Unix seconds, estimates not kept; terminals, gates, aircraft, seat, cabin, reason;isCancelled; an actual arrival airport other than the scheduled one asdiverted_to; the origin's date in the store's zone when the shipped table does not know the airport; thepnrcolumn never read). The mapping, theextrakeys and theraw_iddigest are the export's, so a flight in both the backup and a CSV export is one observation and the second appends nothing, and one that carries more is a new observation the merge folds in.sniffknows the store by its tables;import-backupcopies it out ofAppDomain-com.flightyapp.flightyand runs it.import-backup: Wallet runs.ios_backup.Source.filesnames a folder source — every file matching a glob under a folder in the backup (Library/Passes/Cards/*/pass.json, HomeDomain), copied below the source's inbox folder with its path, the adapter run on the folder; the dry run prints how many files and bytes.ios-walletfollowsios-notesinSOURCES.twitterfile adapter: the X app's direct-message stores (com.atebits.tweetie.databases/v1/<account id>/<account id>-dmv2.dbof the group.com.atebits.Tweetie2 container in a backup, one per signed-in account) →message/v1, one line per message entry at its own timestamp:raw_idthe entry's UUID;chatthe conversation —directwhen its id is two account ids, named after the other account (the owner's nickname for them, else the screen name),groupotherwise, named by its custom title;from_methe store's own flag; the sender{handle, <screen name>}with the nickname asnamewhen the store knows the user, else{provider_id, <account id>}, never resolved;textthe plain text; an attachment givesmedia_kind(link,image,video,gif,other) with the store's own type string underextra; the account underextra.account(the sender of any entry flagged the owner's, else the id in the file's name); a status other thanSentunderextra.status. Informational entries, entries with neither text nor an attachment, and undated ones are skipped and counted.runtakes a store or a folder and reads every account's.import-backupgains the sourcetwitter, last.linefile adapter: LINE'sLine.sqlite(Library/Application Support/PrivateStore/P_<account>/Messages/Line.sqliteof the group.com.linecorp.line container in a backup) →message/v1, one line per message at its own timestamp:raw_idthe server's message id (pk<row>for one never sent, counted);chatthe LINE chat —directfor a user'su…id with the user's name as the owner spells it,groupfor ac…id with the group's name whenUnifiedGroup.sqliteis beside the store; a row without a sender is the owner's; the sender a contact hint, never resolved —{phone}whenContacts.sqlite(the app's own domain,…/Contacts Syncing/) pairs the user's mid with a number, else{handle, <mid>}, with the custom name else the profile name, the mid and the address-book name underextra. Text and unknown content types that carry text aretext(extra.content_type); images, video, audio (voice), files, stickers, locations, contacts and links carrymedia_kind. Calls (content type 6) are skipped and counted as calls; a row with neither text nor a known media type, or without a timestamp, too.runtakes the store or a folder and finds the companions beside the store or anywhere below the folder.import-backupgains the sourceline(three files by pattern — the account's id is in the path — the two companions copied first, beside the store), afterbeeper.beeperfile adapter: Beeper'sBeeperStore.sqlite(the group.beeper.chat.ios container in a backup) →message/v1, what the phone's Matrix cache holds in clear: every cached event with a body — its decrypted copy (clearEvent) when the app had one, else an unencrypted content — then every room's last message in clear when its event was not already logged (extra.from_last_message, counted). Encrypted events without a decrypted copy, reactions, redactions and redacted events, membership and bridge state are skipped and counted; the Megolm sessions are never touched.raw_idthe Matrix event id;chatthe room (directwhen one-on-one, the room's display name) withextra.networknaming the bridge (whatsapp, telegram, instagram, facebook); the owner is the member of the most rooms,from_mefor their events and for a double-puppeted copy of their own message; the sender is a contact hint from the member row, never resolved:{phone}when the bridge gave the number,{email}when an address, else{handle, <matrix id>}, the contact's preferred name else the network's, the Matrix id underextra.matrix_user. Text, notices and emotes carrytext; images, video, audio (voicewhen flagged), files, stickers and locations carrymedia_kindwith the file name and media type underextra(the bytes are not in the store).import-backupgains the sourcebeeper, aftersplitwise.logbook/adapters/keyed_archive.pydecodes NSKeyedArchiver plists (dictionaries, arrays, strings, data, custom classes by name, cycles) for any adapter whose rows hold them.splitwisefile adapter: Splitwise'sdatabase.sqlite(Library/Application Support/database.sqliteof the app's domain in a backup) →transaction/v1, one line per expense the owner is part of, at the expense's date:amountthe owner's side (an expense's owed share, negative; a payment as what the owner paid, negative, or received, positive),currency,merchantthe description,categorythe category name as the app shows it,accountthe group's name,note; the total cost, the owner's shares, every member's shares with a source-native ref ({email}, else{phone}, else{provider_id}, never resolved) and the name the app shows, who created it, the creation method and a deleted flag underextra. The owner is the person whose email is inowner_emails(logbook.json); without a match the person on the most expenses is taken and that is counted and said. An expense the owner is not a member of, or without a date, is skipped and counted.import-backupgains the sourcesplitwise, aftercopilot. Theowner_emailshintaddprints now names the adapter and what it does without them.copilotfile adapter: Copilot Money'sCopilotDB.sqlite(thedatabase/CopilotDB.sqliteof the group.com.copilot.production container in a backup) →transaction/v1, one line per row ofTransactions:amountthe row's amount negated (Copilot keeps Plaid's convention, debits positive),currency,merchantthe owner's override else the cleaned name,categoryCopilot's own slug when set,accountthe account id,statusfrom the pending flag,notethe owner's note; the type (regular,income,internal_transfer), recurring flag and id, the bank's original string, Plaid's category strings, tags, the parent of a split and a deleted flag underextra.atis the stored instant as UTC (Copilot stores the day's local midnight as a UTC instant) anddatethe day of it in the record's zone. A row without a date is skipped and counted; one the owner or the bank deleted is a line withextra.deleted.import-backupgains the sourcecopilot, afterapple-reminders.apple-remindersfile adapter: an iPhone's Reminders stores (Container_v1/Stores/Data-<UUID>.sqliteunder the group.com.apple.reminders container, one per account) →task/v1(RFC 0016), one line per reminder at its creation time:title,status(open/done),completed_at,due(an all-day reminder's day asYYYY-MM-DD; a timed one as the instant the phone showed it at, since a reminder without a zone keeps its wall clock inZDUEDATEas if it were UTC and the real instant inZDISPLAYDATEDATE),list,notes,parent(the source id of the reminder a subtask sits under),priority(Apple's 1–4 high, 5 medium, 6–9 low),modified_at; the flag, the zone, a start, the list's group and the store's file name underextra.raw_idisreminders:<uuid>@<last modified>(rule 2), so a reminder completed or edited after an import is a new line and an unchanged one appends nothing. A reminder marked for deletion is a line withextra.deleted; one without a title (it lives only in an opaque title document) or without a creation date is skipped and counted.runtakes one store or a folder and reads everyData-*.sqlitebelow it;logbook add reminders <folder>. Tier 2.import-backupgains the sourceapple-reminders(--only reminders), afterios-notes;ios_backup.Sourcenow takes a pattern as its path (Data-*.sqlite): every file of the domain that matches is copied beside the first with its-wal/-shm, the dry run lists them all, and the adapter runs on the copies' folder.mailfile adapter: an mbox mailbox — Google Takeout'sMail/folder (All mail Including Spam and Trash.mboxand the per-label files), or any mbox file or folder of them, sniffed by theFrom <id> <date>separator line — →mail/v1, one line per message, streamed line by line with one message in memory at a time so a multi-gigabyte export is never read whole. mboxrd>Fromlines are unescaped; nested multipart is walked for the firsttext/plainleaf, else the firsttext/htmlleaf stripped by a stdlib-onlystrip_html(scripts, styles, head and comments dropped, block tags and<br>as newlines, entities decoded); a part whose charset Python does not know or whose bytes do not obey it is decoded with replacement characters and flagged, never dropped. Every leaf with a file name, aContent-Disposition: attachmentor a non-text type is an attachment, named by digest always and stored inattachments/<sha256>(Logbook.attach) only with--attachments.logbook add mail <file|folder> [--account EMAIL] [--attachments] [--only-labels A,B] [--skip-labels A,B] [--since DAY|RFC3339] [--tier 1|2|3]:--accountprefixes everyraw_idand counts as one of the owner's addresses; the label filters match any label, case-insensitively, and count what they drop (skipped … by label);--sincetakes a day (the record's local midnight) or an instant;--tierapplies to the whole run.directionreadsowner_emailsfromlogbook.json(a new optional key, preserved like every unknown key;addprints a hint when it is absent and no--accountis given). Counts:without a Message-ID, keyed by digest,timed by the mbox separator (no Date header),with the body taken from HTML,with undecodable bytes replaced,attachments referenced, not stored/attachments stored; a message with neither aDateheader nor a readable separator date is skipped and counted (without a date).logbook add <file.mbox>andlogbook add ~/Takeout/Mailreach it by sniff.showprints a mail line as✉ subject — from → to (n attachments), the people by their resolution labels, else the header's names, else the addresses, the owner's own mail asme, never the body;show --rawprints the addresses as given and the body indented under the row.add's--tierhelp no longer says transcript only. Tested on a synthetic Takeout mbox (Oslo persona,example.orgaddresses): a plain reply with escapedFromlines, sent mail, an HTML-only newsletter, a nested multipart message with two attachments, a message without aMessage-ID, one without aDateand with an unknown charset; the mapping, the filters, the store, the dedupe on re-add, the schema, streaming (a run that fails if the file is read whole), the CLI flags and their refusal on another adapter, andshowwith and without resolutions.apple-healthfile adapter: an iPhone'shealthdb_secure.sqlite(sampleswith Apple-epoch dates anddata_type;quantity_samples,category_samples,workouts;objects→data_provenancesfor the device's product type and zone;unit_stringsfor the entered unit;sourcesfrom thehealthdb.sqlitebeside it) →health-sample/v1. Data types 3, 5, 7, 8, 9, 10, 12, 63, 118, 183 and every row ofworkouts; quantities converted from HealthKit's canonical units (heart rate count/s → bpm, HRV s → ms; the entered quantity and unit kept underextra.original); every optional table and column found through PRAGMA. Skips and counts placeholder dates, rows without a date or value, spans that end before they start, unknown types and sleep stages, and heart-rate readings over the cap.logbook add health <file>oradd apple-health <file>names it (adapters.namednow resolvescalls,contacts,healthasimport-backup --onlydoes);logbook add <file>recognises the store by content. Tests build the store in the test; no database is in the repository.import-backup: Health runs.healthdb.sqliteis copied first (reported copied, read beside healthdb_secure.sqlite), thenhealthdb_secure.sqlite, andapple-healthruns on the copy with the companion beside it; the encrypted-backup test plants a synthetic store and expects its lines. Safari alone is still copied, no adapter yet.aisadapter andlogbook sync ais(ADR 0018, ADR 0017): the positions of every registered vessel with an MMSI, heard on aisstream.io's websocket (LOGBOOK_AISSTREAM_KEY; thewebsocketspackage as theopenlogbook[ais]extra, imported only insidepull;LOGBOOK_AISSTREAM_LISTEN_S, default 60, sets the listening window) →location/v1withsubject= the asset id,trackeraisstream,raw_idaisstream:<mmsi>:<unix seconds>, speed in m/s from knots, AIS "not available" sentinels left out, class A and class B reports only. The same module reads a saved stream (one message per line) forlogbook add, through the samedraft.--sincefilters what was heard;--dry-runwrites nothing; a refused key is one line and exit 1, never the key.adsbadapter andlogbook sync adsb: the current state of every registered aircraft with an icao24 from the OpenSky Network'sstates/all(anonymous by default;LOGBOOK_OPENSKY_USER/LOGBOOK_OPENSKY_PASSoptional, sent only in the Authorization header) →location/v1withsubject,trackeropensky,raw_idopensky:<icao24>:<time_position>, so a parked aircraft's unchanged fix is one line poll after poll. The same module reads a saved response forlogbook add.sync: an adapter whosepulltakesassetsgets the record's registry; one that setsGROUP_MARKSkeeps a watermark per group instate/<name>.json(groups, one per asset, never moved backwards) besidesince.addpasses the registry to a file adapter that takes it.SKIP_PHRASESgainsskipped_unknown_subjectandskipped_not_a_position.flightyfile adapter: a Flighty CSV export (logbook add flights <export.csv>,add flighty, or sniffed by its header) →flight/v1, evidencetracked, one line per row. OnlyDate, Airline, Flight, From, Toare needed; every other column is optional and its absence leaves the field absent.Airlinemay be ICAO or IATA,Flightmay repeat the carrier; wall-clock times with no offset are converted with the origin's zone (departure, take-off) and the destination's or the diversion's (landing, arrival); an airport the table does not know keeps its times as text underextra.<field>_localand is counted; an arrival before its departure is kept and counted. Gates, terminals, seat, cabin and reason go underextra; the PNR and the Notes never.raw_idis the row's Flighty id with a digest of the mapped row, so an unchanged re-export appends nothing and an export that later carries the actual times is a new observation that supersedes the first.ios-callsfile adapter: an iPhone'sCallHistory.storedata(Core Data;ZCALLRECORDwithZADDRESS,ZDATEin Apple-epoch seconds,ZDURATION,ZORIGINATED,ZANSWERED,ZCALLTYPE,ZSERVICE_PROVIDER,ZUNIQUE_ID, every other column PRAGMA shows kept underextrawith theZprefix dropped, blobs and nulls left out) →call/v1, one line per row, streamed from a read-only immutable connection.raw_idisZUNIQUE_ID, else the row id (counted); the counterparty goes through the sharedphone.normalisewithLOGBOOK_DIAL_PREFIXasios-contactsdoes (a national spelling that cannot be completed is kept and flaggedextra.unnormalised), an address with@is an email, anything else a handle, a blob address is decoded, a withheld number gives no counterparty and is counted;servicefrom the provider bundle id (com.apple.Telephony→cellular,com.apple.FaceTime→facetime/facetime-audioby call type, a third-party CallKit app by the last part of its id) else fromZCALLTYPE, the raw provider underextra.service_provider, an unknown type underextra.call_type;answeredis the phone's flag,endset only when answered and the duration is above zero; placeholder dates (before 1900) and dateless rows are skipped and counted, asios-calendardoes.logbook add <file>sniffs it (aZCALLRECORDtable);logbook add ios-calls <file>names it, andadd <adapter> <file|folder>...now works for any file adapter by NAME, not onlytranscript.import-backupruns it on the call log an encrypted backup carries, copied out asios-calls/CallHistory.storedata(wascalls/, reported as "no adapter yet"); Health and Safari are still copied without an adapter.showprints a call as← who, 7 min, cellular/→ who, no answer, the counterparty by its resolution when one exists. Tests on a synthetic store built by the test: incoming, outgoing and missed, FaceTime video and audio against cellular and a WhatsApp call, the epoch conversion, a blob address, the dial prefix, unmapped columns underextra, dedupe on re-import, the CLI by name and by sniff, the encrypted backup round trip, and a property test over random rows.import-backupreads an encrypted iOS backup (IsEncryptedwith aBackupKeyBag).logbook/ios_backup_crypto.pyimplements the publicly documented keybag format: TLV records; the passcode key by PBKDF2-HMAC-SHA256 overDPSL/DPICthen PBKDF2-HMAC-SHA1 overSALT/ITER(a keybag from before iOS 10.2, withoutDPSL/DPIC, does the SHA-1 pass alone); class keys unwrapped per RFC 3394 with the passcode key (WRAPbit 2; a device-wrapped class, bit 1, stays unavailable);ManifestKeyand each row'sEncryptionKey(in thefilecolumn's NSKeyedArchiver plist) as a 4-byte protection class plus a 40-byte wrapped key; files andManifest.dbAES-256-CBC with a zero IV, PKCS#7 padding stripped or the manifest'sSizehonoured, decrypted in 1 MiB chunks, never whole in memory. The password comes only fromLOGBOOK_BACKUP_PASSWORD— never a flag, never printed, never in a message or a file; the keybag is checked first, so a wrong password exits 2 before any file is touched.Manifest.dbis decrypted into<root>/inbox/ios-backup-<udid>/and every copy is decrypted on the way to the same layout as for an unencrypted backup, so every adapter runs unchanged; each copy is checked against the plaintext size. Stores only an encrypted backup carries (ios_backup.EXTRAS) are copied out with no adapter yet and say so:health/healthdb_secure.sqlite,health/healthdb.sqlite,calls/CallHistory.storedata(nowios-calls/, with an adapter, see above),safari/History.db(--only health,calls,safarinames them). The inbox gainscopies.jsonfor every backup, encrypted or not: per copy its domain, path, copy, bytes,encryptedandprotection_class, merged over earlier runs of other sources, never a key.cryptographyis the optional extraopenlogbook[encrypted], imported lazily; an encrypted backup without it prints one line withpip install "openlogbook[encrypted]"and exits 2; the unencrypted path has no new dependency. Tested on a synthetic backup built in the test — a keybag from a test password with ten iterations, class and file keys wrapped,Manifest.db,sms.db, an attachment, a Health and a Safari store encrypted — proving the round trip byte for byte, the wrong-password refusal, the missing-extra message and the older keybag; never a real backup.gcallive adapter:logbook sync gcalpulls Google Calendar's private iCal feeds (LOGBOOK_GCAL_URLS, comma-separated, each optionallyname=url; stdlib urllib, fetched whole) →event/v1(RFC 0009) through the ics adapter's own reader, now exposed asics.lines(text, name, counts, timezone), so an event imported from a calendar export and the same event pulled by URL are the same line with the sameraw_id(<UID>@<LAST-MODIFIED>) andsource(ics) and are deduped (ADR 0017); recurring masters and materialised occurrences, all-day and floating times (in the record's zone, whichsyncnow passes to apullthat takestimezone) are unchanged. The feed's X-WR-CALNAME names the calendar as for a file; a given name applies only to a feed without one. The watermark is the newest last-modified time seen; each pull keeps the events changed since a lookback (24 h,LOGBOOK_GCAL_LOOKBACK_H) before it and the dedupe absorbs the overlap; a first sync reads everything;--sinceis used as given.syncreports seen and new per calendar (a live adapter's optionalgroup(draft);append_manygains askippedcallback for the drafts it deduped) and, on--dry-run, seen per calendar. A calendar that fails (an HTTP error, an unreachable host, a body that is not a calendar) is one line on stderr naming the calendar by its given name or a short hash of its URL, never the URL; the other calendars are still pulled and written, the watermark is kept, the exit is 1 (a live adapter's optionalfailedlist). The URLs never appear in the config's repr or any output.imessagelive adapter (#85):logbook sync imessagereads the Mac's own~/Library/Messages/chat.db(LOGBOOK_IMESSAGE_DBnames another store,~expanded), openedmode=roand onlyimmutable=1when that fails, never written and never locked against Messages.app →message/v1(RFC 0008) through the file adapter's own mapping, now exposed asimessage.lines, so a message imported from the phone backup and the same message read on the Mac have the same line andraw_id(the guid) and are deduped; the tapback and group-event skips, the typedstream body, the nanosecond/second dates and the media rule are unchanged. Attachments resolve by the stored paths under theAttachmentsfolder beside the store, else the Mac's own~/Library/Messages/Attachments;LOGBOOK_IMESSAGE_HASH_MEDIA=0skips the hashing as foradd. The watermark is the newest message date; each pull starts a lookback (24 h,LOGBOOK_IMESSAGE_LOOKBACK_H) before it, a first sync with no watermark starts from the record's newest imessage line less the lookback,--sinceis used as given.syncreports lines per chat type (in direct chats,in group chats) with the skips and the attachments hashed or missing. An unreadable database is one line naming Full Disk Access for the terminal as the usual cause, exit 1. The file adapter now cutssincein SQL, so rows before it are neither decoded nor hashed.sync's resume line names the source's item (message, point, asset) instead of always "point".transcriptfile adapter (#78):logbook add transcript <file|folder> [--source <name>] [--tier 1|2|3] [--at <RFC3339>]→transcript/v1(RFC 0004), one line per file. Reads JSON already in transcript/v1 shape — the interchange format for any tool, alogbook exportline minus the chain fields, the payload kept as given, an inlinecontent.textstored and replaced by its reference — WebVTT and SRT (every cue a turn; the speaker from the<v Name>voice tag or a leadingName:, else unknown; the cues' offsets giveend), and Markdown or plain text withSpeaker: textlines, a following line continuing the turn, and an optional front-matter block fortitle,started_at,ended_at,participants(Name <email>), a# headingas the title. VTT, SRT and transcript JSON are sniffed by content, sologbook add meeting.vttworks without the keyword; Markdown and text only through it. The file's own bytes are the SPEC §1.1 attachment: the first writer ofattachments/<sha256>(Logbook.attach,logbook/attachments.py: write-once, a mismatching file is an error, never overwritten);raw_idis<source>:<sha256>unless the JSON brings one; the start is the front matter's, else--at, else a date and time in the file name (2026-03-01T13-00-00Z …, Zoom'sGMT20260301-130000_…,2026-03-01 1300 …in the record's zone, a bare date at local midnight), else the file is skipped and counted. Tier 3 by default: a transcript carries other people's words in full.participantsare the front matter's, then every speaker label, source-native, never resolved;extracarriesformat,file,turns,speakers,unattributedandduration_s.transcript.draftis the one mapping every transcript source shares (ADR 0017).granolalive adapter (#78):logbook sync granolapulls Granola's public API v1 (LOGBOOK_GRANOLA_KEY, agrn_key from Settings → Connectors → API keys, Business and Enterprise plans;LOGBOOK_GRANOLA_URL, defaulthttps://public-api.granola.ai/v1):GET /notes?created_after=with cursor paging,GET /notes/{id}?include=transcript, andGET /notes/{id}/transcriptpaged when the note answers 413 TRANSCRIPT_TOO_LARGE. Onetranscript/v1line per recording throughtranscript.draft, so a transcript exported by hand as transcript/v1 JSON and the same one pulled here are one line:raw_idgranola:<note id>,at/endthe segments' span (else the calendar event's, elsecreated_at),participantsthe attendees as Granola names them plus any speaker label they do not cover (never resolved),contentthe segments as JSON underattachments/,source_urithe note's web url,extra.folders. Granola's AI summary is a model's words, so it is neverpayload.summary: it is a second line,note/v1, sourcegranola, tier 2,raw_idgranola:<note id>:summary,extra.derived = trueandextra.derived_fromthe transcript line's id — the one already in the record when a hand export came first (Index.line_id, asked through the newlookupcallback), else the one this pull mints (append_manynow keeps anida draft brings);LOGBOOK_GRANOLA_SUMMARIES=0skips it. The watermark is the recording's end;resumelooks back 24 h (LOGBOOK_GRANOLA_LOOKBACK_H), a first sync continues from the record's newest granola transcript,--sinceis used as given. Every request is retried once on a connection failure, a timeout, 429 or a 5xx, then the sync exits 1 with a message naming the request (a 401 names the variable) and nothing has been written: the whole pull is fetched before the first line is yielded, attachments are stored only as their line is yielded, and a dry run stores nothing.sync --dry-runnow prints the count per kind when a source yields more than one. The key is sent only in theAuthorizationheader, never in a URL, never printed. Tested against a fake of the API serving synthetic Oslo notes; no network.- ADR 0017: backfill and live share one mapping — every source adapter has a file mode and, where the source offers it, a live mode, both producing identical lines with the same
raw_id, so backfilled and live lines dedupe; the rule for every adapter from now on,dawarichandimessagethe existing examples. icsfile adapter: any iCalendar file (RFC 5545) — a Google Calendar export or Takeout'sCalendar/folder, an Apple Calendar export, a saved feed; sniffed by content, so any extension — or a folder of them →event/v1(RFC 0009), one line per VEVENT with the same shapeios-calendargives the same event:at/endfrom DTSTART/DTEND (or DURATION) in UTC,tzthe DTSTART's TZID when the zone database knows it (a/mozilla.org/…/Europe/Osloprefix is skipped over; an unknown one is read in the record's zone with the text underextra.tzid), floating times in the record's zone, a VALUE=DATE start an all-day event at local midnight ending at the DTEND or the next midnight;title,notes,location(GEO underextra.location),status,calendarfrom X-WR-CALNAME (else the file name), organizer and attendees asmailto:email refs with CN and PARTSTAT; a master's RRULE text asrecurrence(EXDATE/RDATE underextra), a RECURRENCE-ID exception'srecurrence_of; occurrences never expanded.raw_idis<UID>@<LAST-MODIFIED, else DTSTAMP>(rule 5), an exception keyed<UID>/<RECURRENCE-ID>@…. VEVENTs without a DTSTART, with an unreadable one or one before 1900, or without a UID are skipped and counted, as are VTODO and VJOURNAL blocks. The parser is stdlib only and tolerant: line unfolding, BEGIN/END nesting (an unmatched END is ignored, an open block closes at the end of the file), quoted and multi-valued parameters, TEXT escapes, CRLF or LF, a BOM; what it does not know it passes over.logbook/adapters/takeout/calendar.pyis the Takeout package's calendar sibling oflocation, delegating toics.import-backup <folder> [--dry-run] [--only names]: every phone source from an unencrypted iOS backup folder in one go.logbook/ios_backup.pyreadsManifest.db(opened read-only and immutable, so not even a journal appears beside it) andManifest.plist, locates each adapter's store by domain and path —AddressBook.sqlitedb→ios-contacts,ContactsV2.sqlite→whatsapp-contacts,ChatStorage.sqlitewithMessage/→whatsapp,sms.dbwithLibrary/SMS/Attachments/→imessage,Calendar.sqlitedb→ios-calendar,NoteStore.sqlite→ios-notes— and in that order copies each store with its-wal/-shmsiblings and its media into<root>/inbox/ios-backup-<udid>/<source>/under the original names, checks every copy by size, and runs the adapter on the copy (never on the backup, which is never written). A media path that would leave its folder is never copied. Per source: found or not found (a row whose file is missing says so), lines added, skips and notes asaddreports them; thenverify.--dry-runlists the files and sizes and writes nothing;--only contacts,whatsapplimits the run (the fixed order stays). An encrypted backup (IsEncrypted) is refused with a one-line message naming Finder's checkbox; a folder withoutManifest.dbexits 2.LOGBOOK_DIAL_PREFIXreaches the adapters as withadd, and a hint is printed when it is unset. The registry gainsadapters.named(name).google-takeout-photosfile adapter, the second Takeout sub-adapter: the unzippedTakeout/Google Photos/folder (or the Takeout root that holds it, or one album folder) →photo/v1(RFC 0002), one line per media file from its JSON sidecar:atfromphotoTakenTime(falling back tocreationTime, counted),raw_idthe id in the sidecar's Google Photos url else<album>/<file>,provenancethroughgooglePhotosOriginas a data rule (ADR 0011:mobileUpload→camera,fromSharedAlbum→received, elseother),lat/lonfromgeoData(thengeoDataExif) when non-zero, the caption, the album and the tagged names asextra.people{kind: "name", value}refs, never resolved and never inpayload.people. A live-photo pair (a still and a video with one stem) is onecameraline with the motion half underextra.live_video. Sidecars are matched by Google's naming (<file>.json,<file>.supplemental-metadata.json, the truncated and(1)-numbered variants), then bytitle, then by a unique prefix; a sidecar with no file is counted and a file with no sidecar is still a line, timed by the file and flaggedextra.no_sidecar. Media v1 rule as for WhatsApp: the file is hashed intoextra.media(sha256,bytes,local_path,media_type), never copied;LOGBOOK_TAKEOUT_HASH_MEDIA=0skips the hashing.logbook add <folder>now hands a folder to an adapter that claims it as a whole before walking its files.dawarichlive adapter:logbook sync dawarichpullsGET /api/v1/pointsfrom your own Dawarich server (LOGBOOK_DAWARICH_URL,LOGBOOK_DAWARICH_KEYas a Bearer header; stdlib urllib, paged until an empty page, yielded oldest first) →location/v1(RFC 0001) through the file adapter's own mapping, now exposed asdawarich.draft, so a point already imported from an export has the same line andraw_idand is deduped. The watermark is the newest point time; each pull starts a lookback (24 h,LOGBOOK_DAWARICH_LOOKBACK_H) before it for late batch uploads, and a first sync with no watermark starts from the record's newest dawarich location line (Index.newest) less the lookback. Rows without usable coordinates, timestamp or tracker are skipped and counted.syncnow reports how many pulled lines were already in the record and what the adapter skipped, never moves a watermark backwards, and exits 1 on a malformed response. The registry keeps one file and one live adapter perNAME. The shared mapping now drops a non-finite altitude/speed/heading and a heading above 360.whatsapp-contactsfile adapter: an iPhone's WhatsApp ContactsV2.sqlite (also the hashed file in an unencrypted Finder/iTunes backup) → oneresolution/v1alias line per contact with a linked-device id and a phone number that normalises:refis the lid spelled as thewhatsappadapter spells a@lidsender,alias_ofthe phone through the sharedadapters/phone.py(LOGBOOK_DIAL_PREFIXas forios-contacts),labelthe name WhatsApp shows,raw_idalias:handle:<lid>so a later backup appends nothing already aliased. Nothing is minted: the phone's entity comes from the owner's contacts import, before or after. Rows without a lid, without a usable phone, or with a lid already seen are skipped and counted. Opened read-only and immutable, no network (#58).
Readers and commands
logbook serve [--port N](logbook/serve.py, docs/serve.md): the record read in a browser, on this machine only. Server-rendered HTML with one inline stylesheet, no script, no font, no image and no link to anywhere but its own paths (aContent-Security-Policyofdefault-src 'none'says so to the browser too), every page from the index and the readers the commands use, nothing written./day/YYYY-MM-DDis the Day (day.read) as a timeline — the nights, the country, one row per stay, stop, move, flight or run aboard an asset, each row's attachments and company under a toggle (?open=1opens them all), what is unplaced, the health line, the sources;/days?from=&to=one row per day (days.read; the last fortnight without a window; a form and earlier/later links), each a link to its Day;/trips?year=the year's trips (trips.trips), each linking to its days;/places,/assets(with the last fix of each,asset_status.read) and/gaps?since=(gaps.report). The server binds 127.0.0.1 and refuses any other host (--host 0.0.0.0,::, a LAN address,localhost) with exit 2 before a socket is opened, and never resolves a name, not even its own. A Day answers in the timelogbook daytakes, through the index, whatever the record's length. Tests: the refusal of every other host, that no page references a URL outside itself (every URL-bearing attribute, the inline style, the headers), the pages on the synthetic persona, a 404 and a 400, that serving writes nothing, and one request over the loopback socket. The text helpers oflogbook/day.pyandlogbook/days.pythe pages reuse are public now (day.span_text,days.night_text, …).logbook infer keepers [--dry-run](logbook/keepers.py, producerkeeper-inference): amemorykeeper for every photo line its library marked a favourite (extra.favorite; theimmichadapter now keepsisFavoritethere,apple-photosreads asios-photos) and anartkeeper for every photo in an album named Art (extra.albumorextra.albums, case aside); throughappend_many, so a re-run appends nothing and a retracted keeper is never written again.logbook keepers [--since DAY] [--until DAY] [--lane memory|art] [--json]lists the keeper lines standing by day, with the photo's file name.show <day>prints the day's keepers under the date ashero <file names>(memory first,(art)marked) and each keeper line ashero photo (<lane>): <file>.logbook show person|asset|place <name> [--json](logbook/pages.py): the pages, read from the whole record (the days the owner's track covers).show person <name>takes a label (case aside), a unique first name or an entity id and prints the arc: the refs the person resolves from, first and last contact, days together per year, the places shared, open commitments (a placeholder that sayscommitment/v1lines are not read yet), the last ten shared stays with how each was decided, and under--jsonthe proposed evidence count and the line ids.show asset <id>: the trips aboard (fromtrips), nights, stays and hours aboard, the people aboard, and the summary of the asset's own track when the record holds one (points, stays, moves, distance, first and last fix, the first and last line).show place <name>: visits, hours, first and last, per year, the people met there, the photos taken there (photo lines inside a stay at the place), the last ten visits.show <day>is unchanged.logbook trips [--year YYYY | --since YYYY-MM-DD --until YYYY-MM-DD] [--airports FILE] [--json](logbook/trips.py): runs of consecutive days whose overnight stay is outside every home region (places.json, kindhome) or in transit, from one reading of the window. Each trip: a derived id (trip:<first day>:<last day>), its first and last day, the return day (until, the day after the last night), nights and nights in transit, the route in night order (the named place, elsenear <place>for a named place within 25 km, else the nearest large airport's name as a coarse city, else coordinates; repeats collapse), the named places visited, the people confirmed present (the with module) between the first day's midnight and the end of the return day, every flight dated inside it and the flights in (dated the first day) and out (dated the return day),assetwhen every night was aboard one asset, and the line ids it rests on. A run made only of in-transit nights is not a trip. Without a place of kindhomethere are no trips, and the command says why. ADR 0019: a trip is never a line, only a reader's output, until the captain names it, and the name is anote/v1.logbook rollup places|people: the two rollups that read company through the with module.places: per named place and per asset (the owner's stays aboard it), per year — stays, hours, first and last visit (the stay's start and end day), an asset's nights aboard, and the people confirmed present with their days and lines.people: per resolved person, per year — days together (days with confirmed evidence, by the evidence's own day), the last real contact (the last such day), the places shared (a named place,aboard <asset>, else coordinates), confirmed and proposed evidence counts and the lines; names that resolve to no person are listed apart underunresolved.logbook/present.py, the "with" module: who was with the owner at a stay.present(stay, lines, identities)lists one entry per piece of evidence — a person id when the ref or name resolves through the record's resolution lines (RFC 0006;resolve.identities_fromgives each ref its entity id and label), else the name or address as the source spelled it — with a confidence, a status and a reason: an attendee of a calendar entry whose span overlaps the stay (confirmed, 0.8 accepted, 0.6 tentative or unanswered, declined absent;attendee of <title>), a participant of a transcript recorded inside it (confirmed, 0.9, by email, phone, provider id, else the name against the labels;spoke in <title>), a note written inside it that sayswith <Name>(and<Name>; confirmed, 1.0;note says with <name>), and a face the library tagged in a photo taken inside it (provider_idref<library>:<person id>; proposed, 0.5;face in <file>). A circle page is listed as a source and names nobody yet.companymerges the evidence per person, confirmed first, with the sources, reasons and line ids.logbook rollup countries|flights|nights [--year YYYY | --since YYYY-MM-DD --until YYYY-MM-DD] [--airports FILE] [--json](logbook/rollup.py): the record summed up per year from one reading of the window, clipped to the days the owner's track covers (a day outside them is nothing, not a night in transit).countries: days per country per year from the overnight stay, in-transit nights and nights whose country is unknown listed separately, and the method printed with the numbers —logbook/countries.py: a place with acountry(ISO 3166-1 alpha-2, a new optionalplaces.jsonfield) whose radius holds the stay decides, else the nearest large airport within 300 km (the airports table) and its zone's country through the bundledlogbook/tables/zones.csv(the zone database's public-domainzone.tab, regenerated byscripts/make_zones.py); coarse near borders and far from airports, and the module says so.flights: count, kilometres (great-circle between the airports table's coordinates), long-haul (over 3,500 km), unmeasured (an airport the table does not know), by evidence (tracked, inferred, declared), per year, from the flight lines standing (RFC 0013 rule 4), each flight listed with its route and km.nights: home, away and in-transit nights per year, nights aboard each asset, and the longest trip (the longest run of consecutive nights not at home); without a place of kindhomeevery night is away and the rollup says so. Under--jsonevery number carries the ids of the lines it came from: a stay by its first and last location line (one unbroken run), a flight by its line standing.Index.span(kind)gives the first and last local day with a line of a kind.logbook places list|add|name|propose(andimport-takeout, which moved beside them: the Google Maps saved-places importer now lives atlogbook/adapters/takeout/places.py): the named places of the record.places.json(logbook/places.py) maps a name to{lat, lon, radius_m, kind, tags},kindone ofhome,asset-berth,other(absent isother; the old three-field shape still reads); home regions are the places of kindhome, andderive staysnow marks each nighthome("home": truein the JSON,· homein the table) when its stay is a home place or lies in one's radius.add <name> --lat --lon [--radius] [--kind] [--tags]edits the file only;name <lat,lon|stay-id> <name>adds the place and appends onenote/v1line,named <lat>,<lon> as <name>, so the naming is in the record.propose [--since] [--until] [--top N] [--json]is a reader: the owner's unnamed stays of the window (the whole record by default) grouped within 300 m and ranked by hours, each with its stay ids, the nearest known place and the distance, the asset it was aboard, the Google Timeline visits that overlap it when the record holds Takeout timeline lines (place id, semantic type, probability), a suggested name (the visit's semantic type, elseaboard <asset>, elsenear <place>within 2 km), and underlinesthe ids of its first and last location line and the point count;--writeasks for each name (Enter accepts the suggestion,sskips,qstops) and names the accepted ones asnamedoes. Every segment ofderive stays --jsonnow carries a derivedid(stay:owner:20260610T1000Z@59.9200,10.7400: kind, subject, start to the minute, centre) andlines(first and last location line id, points).logbook/reading.pyis the one loader the readers share: a window's lines through the index, the settings, places and assets, the derived stays and nights, and the record's resolutions.policy/import.json,{"disabled": [{"source", "reason"}]}: the sources the owner switched off.add,syncandimport-backupskip a disabled source and say so (<name>: disabled (<reason>); skipped),--onlyor not, before anything is copied or any variable is asked for;logbook sourceslists every adapter this build has, file and live, withenabledordisabled (<reason>), then any disabled name no adapter carries. Aliases resolve on both sides (books,health).initwrites the empty list; a record without the file gets it on the first read. A malformed file exits 2 naming it and nothing is written. README: What never enters the record — demo, sample or placeholder data never enters the record; an adapter existing is not a decision to run it.logbook places import-takeout <path> [--write]: Google Maps' saved and starred places — Takeout'sMaps (your places)/Saved Places.json(GeoJSON, one Feature per place: the point, the title, the address and business name) andSaved/<list>.csv(Title,Note,URL,Comment, one list per file: Favourites, Want to go, Starred places, the owner's own; coordinates only when the url carries/@lat,lonor/search/lat,lon) — proposed as entries ofplaces.json({lat, lon, category, address?, note?},categorythe list's name;stays.read_placesignores the extra keys) and written only with--write, new names added, an entry already there never changed, a place without coordinates listed and never geocoded (no network). Not lines: a saved place names coordinates, which is whatderive staysreads fromplaces.json.logbook/places.py.logbook derive stays [--day YYYY-MM-DD | --since YYYY-MM-DD --until YYYY-MM-DD] [--subject ID] [--dry-run] [--json]: the first reader of the record.logbook/stays.pyturns the window'slocation/v1lines into stays, stops and moves, per subject (ADR 0018: the owner first, then each asset), and prints a table in local time (span, kind, place or coordinates, duration, what is attached, aboard) or one JSON object (window,settings,subjects,segments,nights,noise_points). The window runs from the first day's local midnight to 08:00 after the last, so the night is inside it. Points are clustered in time order against an anchor (the cluster's first point, or a named place's centre) within a radius, default 150 m; a single fix away and straight back is GPS noise, dropped and counted; a cluster understop_min_s(3 min) is travel; the same place after a gap undermerge_gap_s(10 min) is one stay, after a longer gap two stays with a move of no distance between them, printed asgap. A cluster is a stay when it lastsstay_min_s(20 min) or when anything is attached — an event, transcript, note, call, message or photo whose instant falls inside it, anend-bearing line when its span overlaps — evidence promotes (promoted: true), duration is the fallback; else a stop, kept and flaggednothing attached. Retracted lines never count; counts only, never a line's text. A move spans from one cluster's last point to the next's first: distance along the points between, duration, and a mode from the average speed (walk ≤ 7 km/h, car ≤ 130, train above, flight above 150 km/h or when a gap with no points starts and ends within 8 km of airports,airports: ["OSL", "BGO"]); the airports are the flights table (RFC 0013,flights.Airports),--airports FILEorLOGBOOK_AIRPORTSadding to it as foradd flight. Aboard is derived, never written (ADR 0018 rule 3): the owner's stay isaboardan asset when the asset's positions in that span fall within the radius of the stay's centroid, a move when at least half the owner's points have an asset position within the radius at mostaboard_window_s(5 min) away, a gap between two stays aboard the same asset; aboard a registered asset, or moving as one, the mode is the asset's kind (yacht → boat, aircraft → flight, car → car). The overnight stay of each day is the owner's stay with the longest overlap of the night window (night: ["22:00", "08:00"]) when that overlap reachesstay_min_s, else the day isin transit. Settings live in<root>/policy/stays.json, written with the defaults on the first real run and never rewritten (an edited file is honoured);--dry-runwrites nothing, not even that, and says on stderr which settings apply.<root>/places.json({"Home": {"lat": 59.91, "lon": 10.75, "radius_m": 120}}, the radius optional) names a stay and gives the place its own radius.assets.jsonis read throughlogbook.assetsfor the kinds and names.--subject <id>prints one asset's track,--subject ownerthe owner's; an id neitherassets.jsonnor a line in the window names exits 2. Nothing is ever appended by this command.stays.derive(lines, settings, places, assets, tz)is the pure pass an engine calls without a folder. Tested on synthetic Oslo tracks: GPS noise, an outlier, a short and a long gap at home, a ten-minute cafe stop promoted by one photo, every evidence kind and a retracted message, walk and car by speed, a train to OSL and a gap to BGO as a flight, an overnight at home, a red-eye night in transit, a range of days, a yacht's synthetic AIS track with the owner aboard, the subject filter, an unknown subject, an empty day, and the same lines deriving twice to the same segments.logbook stats --health [--json]: one row per local day from thehealthlines, read through the index (Index.of_kind, a streamed sweep of the files): sleep in hours (the asleep stages —asleep,core,deep,rem, neverin_bed— of the night that ends on the day, summed per device, the longest device taken), steps (per quarter hour the larger device, summed), resting heart rate (the mean of the day's readings). Retracted lines are left out. Never a device, a zone or any other field;--jsongives{"days": [...]}.showfolds one calendar entry that several sources carry into one row: twoevent/v1lines with the same title (case and spacing aside), or naming the same flight in two spellings (Flight to Zürich (LX 561),Flug LX561 nach Zürich), starting within five minutes of each other, from different sources, print once, at the first one's time, with the source column naming them all (ics+ios-calendar). One calendar holding an entry twice is still two rows. The folded lines leave the day before the runs of location points are collapsed, so a repeat from a second calendar no longer breaks a run in two. Extends SPEC §3.2's run collapse on the reader's side; nothing about the record changes.showprints anote/v1line as its first line, then… (+N lines)when there are more (leading blank lines skipped); the whole text, as written, stays behind--raw. A day with three long meeting notes reads as three lines again.show: a run of location points is one source and one subject (SPEC §3.2 as clarified); an asset's run is prefixed with its id, so a day at sea reads as the phone's points and the boat's.- Asset registry (ADR 0018):
<root>/assets.jsonnames the boats, aircraft and cars whose positions the record tracks as their own subjects, one entry{id, kind: yacht|aircraft|car, name, mmsi?, icao24?, registration?}each;logbook assets add <id> --kind --name [--mmsi] [--icao24] [--registration]registers one (an id, mmsi or icao24 belongs to one asset; an icao24 is stored lower-case; a bad entry is one line on stderr and exit 2) andlogbook assets listprints them. A setting of the record, outside the chain, read throughlogbook.assets; unknown keys of the file are preserved. logbook add flight "LX 561 NCE ZRH 2026-09-27 pilot 07:05-08:20 A320 ZZ-ABC": the owner's word as amanualflight/v1line, evidencedeclared— designator, origin, destination, date, then optionally the role (defaultpassenger), a departure and arrival clock (local at each airport, recorded as actual; an arrival before the departure is the next local day), an aircraft type and a registration. A sentence that startsflightbut not with a designator is still a note; one that starts with a designator and does not parse exits 2 with the format. A declared flight the record already holds is merged into it (the role wins) and the console says so.logbook infer flights [--since DAY] [--until DAY] [--airports FILE] [--dry-run]:flight/v1lines, sourceflight-inference, evidenceinferred, from the record's own evidence: a calendar entry (event/v1, its last version standing, not cancelled) whose title names a flight (LX 561,Flight to Zurich (LX 561); an airline the table does not know needs the word "flight" or ✈), plus a silence of twenty minutes or more in the location points around it that starts within 8 km of one airport and ends within 8 km of another; the gap's edges are the actual times, the entry's span the scheduled ones, the airports the gap's; a route in the title (OSL-ZRH) picks between candidate gaps, else the longest wins. An entry without such a gap is a plan and produces nothing (counted).extra.eventandextra.gapname the entry and the two points. A re-run appends nothing; a flight Flighty already tracked gets the inference attached as an observation.showprints a flight asXY 561 OSL → ZRH, arrives 09:24, Airbus A320 LN-XYA, tracked, as pilotand a flight line another flight line superseded assuperseded by #N.Index.by_kind(kind, first_day, last_day)andIndex.superseded(kind)(from thesupersedescolumn, no rebuild).adapters.namedresolves the aliasflights→flighty. Tests: the tables (every zone loads), the grammar, the merge in every order, the adapter on a synthetic export (Oslo persona, airline XY), the inference on synthetic tracks around Oslo and Zürich airports, the CLI end to end.verifystreams the record (#28):Logbook.lines()is now a merge of the month files — every file open at once, one parsed line from each in a heap keyed byseq, the smallest yielded and its file read on — so memory is one line per month file however long the record; the whole-logexportstreams the same way. On a synthetic record of 3,000,000 lines over 120 month files,verifywent from 72 s and 4.7 GB peak RSS to 54 s and 23 MB, andexportof the whole log from 26 s and 6.5 GB to 23 s and 29 MB. The writer keeps every file inseqorder and the merge relies on it; a file that is not (SPEC §3 orders byseqwherever a line was found, so such a record can still be valid) raisesUnsortedFile, andverifyand the whole-logexportthen read again through the two-pass sorted readmigrateuses, sixteen bytes a line.verify --progressprints one line per month file on stderr as its last line is checked — files finish in the order of their lastseq, so a backfilled month finishes early — and stdout stays the one line it always was, byte for byte.verifystill never opens the index.- Dedupe without the log in memory (#29):
append_manyhas deduped through the index since ADR 0007 — oneSELECTper 10,000-draft batch against the(source, raw_id)index, the in-memory set only the batch's own keys, the index extended at every checkpoint so nothing is ever appended past it — and the issue's premise no longer held; this closes it with the measurement: 100,000 drafts already in a 3,000,000-line record are deduped in two to three seconds at 41 MB peak RSS, the same before and after.showandexport --dayread only the lines the index locates (checked by a test that fails if either lists or scans the month files). Twoslowtests (LOGBOOK_SLOW=1) build the 3,000,000-line record in a temporary folder and assert thatverify's peak RSS on it is within 48 MB of a 1,000,000-line record's and that the dedupe stays under 256 MB, each measured in a process of its own. index.sqliteschema 3: themediacolumnstatscounts also reads apayload.contentreference (RFC 0004), so transcripts count as attachments; an existing index is rebuilt once, by the first reader.showprints a transcript as<title> — <participants>; <turns>, <length>, a participant by the resolution of its email when one exists, never the text.logbook addpassesstore(the attachment store),source,tierandatto an adapter whoseruntakes them, and refuses--source/--tierfor one that does not.export crossing --to <destination> --since <RFC3339|last> [--until <RFC3339>] [--tier 1|1,2|1,2,3] [--kinds a,b] [--out <dir>] [--dry-run](#77): onecrossing-package/v1bundle (RFC 0005) for a named circle member, the lines of the half-open window[since, until)verbatim inentries.jsonl, read through the index and never rewritten;attachments/<sha256>copies of every SPEC §1.1 file the store holds (hashed on the way; a missing one stays a reference and is counted);resolution.jsonlwith every resolution line the exported refs resolve through, alias hops included (RFC 0006), nothing else from outside the window;manifest.jsonwithlogbook_head,covers,recipient,tiers,counts(logged, crossed, held back, per tier, per kind, resolutions, attachments),blobs, the digest of each file, the tool version, areviewlist of every tier-2 line when tier 2 crosses and atier3warning when tier 3 does. The ceiling per destination lives in<root>/policy/crossing.json(ADR 0016),{"hermes": {"max_tier": 2}}by default, written byinitand by the first export; a request above it, or to a destination the file does not name, exits 2 naming the file; tier 3 needs both the file and an explicit--tier 1,2,3, and the console says so loudly. Every real export appends one tier-1crossing/v1line, sourcelogbook(RFC 0011): destination, window, counts, policy in force,logbook_head, andpackage_sha256, the digest ofmanifest.json; then records the window end per destination in<root>/exports/crossing.json, which--since lastreads (the first run without it is refused with the flag to pass).--dry-runprints the counts per kind and tier, the attachment bytes and the policy that would apply and writes nothing. A retracted line is held back.Index.windowlocates a window byat;resolve.standingandresolve.walkexpose the last-line-standing map and the alias walklabelswas built on.logbook stats [--json]: one screen of what a record holds, read through the index in one SELECT per table and nothing from the files: format and head; lines, first and lastat; lines per kind with first and last local day and distinct sources; lines per source; lines per local year as a bar of one character per ~1% of the busiest year; retractions and the lines they hide; resolution lines and the entities they mint; attachments referenced underpayload.mediaorextra.media(SPEC §1.1) and how many are present underattachments/; and what the run took. Numbers, kinds, sources and dates only, never payload content.index.sqliteschema 2 adds thesupersedes,entityandmediacolumns it counts; an existing index is rebuilt once, by the first reader.
Fixes and housekeeping
verify --progressreports the month files in path order, each asfile n of N: <path>: ...(#120, fixes #101). The merge inLogbook.lines()finishes a small file long before a large earlier one, so the lines came out in heap-exhaustion order and a reader could not tell how far the run was; a file that finishes early is now held until every earlier path has, and the counter runs 1, 2, … N.showno longer fails on an event whose attendee is a string, the shape before RFC 0009: SPEC §3.2 reads it as anemailref, named through the record's resolution lines like any other, and anything else is printed as it is (SPEC §5: a reader never fails on a payload it cannot interpret). The conformance sample's first day showed it.logbook/present.pyno longer raises a SyntaxWarning for an escaped asterisk in its docstring.- Scrub:
initprints the record as~/Logbookwhen it is under the home directory, never the expanded path, anddocs/demo.gifis re-recorded from a throwaway home (the old one showed a real user name); the example flight sentence and the Flighty fixture carry the unassigned registrationZZ-ABCinstead of a real airline's; the Withings profile ids, the Reminders store names and the Norwegian numbers outside the persona's+47 9000 000xblock in the fixtures are re-patterned. Nothing in the tree matched the owner's private identifier list. - Tests no longer see the shell's
LOGBOOK_BACKUP_PASSWORD:tests/conftest.pyclears it besideLOGBOOK_HOMEand the home directory. infer flightsmissed every flight of a tracker that keeps logging in the air. The search wanted a silence of twenty minutes between a point at one airport and a point at another; a phone that logs the take-off roll and the climb starts its silence from a point seven kilometres up, near no airport, and one that logs the whole flight is never silent at all, so neither was a flight. Now the search is for a leg: the last point within 8 km of one airport, then the first point within 8 km of a different one, every point between them near no airport, at least twenty minutes apart (flights.MIN_LEG, wasMIN_GAP); the leg's two points are the actual times andextra.gapas before, silence in between is usual but not required.Airports.nearestlooks up the nine one-degree cells around a point (CELL_KM) so every point of a day can be placed, not only a gap's edges. "Flug" counts as a flight word beside "flight" and ✈ (Flug XY561 nach Zürich). Four calendar entries for one flight (two calendars, two spellings) gave four identical inferences: the dry run said four flights and the real run wrote one and called the other three "already in the record".flights.reconcilenow drops a draft that repeats an observation earlier in the same stream, and the dry run counts the observations the record already holds the way the real run does, so both say1 flight from 4 calendar entries. The skip phrase readscalendar flights the location points do not confirm. Found on a real record's September; reproduced on synthetic tracks around Oslo and Zürich airports.granola: a note Granola made without recording (one empty turn from an instant to the same instant,duration_s0) was still logged as atranscript/v1line with an empty transcript stored under it. Now such a note yields only its summary as thenote/v1line,raw_idgranola:<note id>:summaryas ever,extra.derived_fromset only when the record already holds a transcript for the note (else left out,derived_from_raw_idstill names it), nothing stored, and the skip counted aswithout a recording.granola.recorded(line, segments)is the rule: a segment with words, or a span above zero seconds. Tested with a synthetic note carrying one empty segment.import-backup: the Safari step reportedsafari: History.db not foundon every encrypted backup. The source was registered underAppDomain-com.apple.mobilesafari; the phone backs the file up inHomeDomainatLibrary/Safari/History.db, and that is whereios_backup.EXTRASnow looks. A store is resolved through theFilestable ofManifest.dbby domain andrelativePath, never by a fixedfileID; the test plants a synthetic row whosefileIDis not the SHA-1 a backup would give it and copies the file from where that row points. The encrypted-backup fixture, which had copied the wrong domain, is corrected.import-backup: a copy is checked against the stored blob, not the manifest'sSize. An iOS 26.5 backup records a file's size on the phone (Size) while the blob it stores is another size, so the first file stopped the import withcopied 29,650,944 bytes, the backup has 35,745,792although the decryption was exact (blob 29,650,960 = plaintext + 16 bytes of PKCS#7 padding). Now a decrypted copy must equal the blob's length less the padding stripped (ios_backup_crypto.decrypt_filereturnsDecrypted(written, padding)and strips valid padding before it honoursSize; a blob whose last block is not padding fails), a plain copy must equal the blob byte for byte (the manifest'sSizeis now read for an unencrypted backup too), and a copy that matches the blob but notSizeis onewarning:line naming the file and both sizes, never an error.copies.jsonrecords the copy's realbytesand, per copy, thatwarning.Plan.copiedis a list ofios_backup.Copy.- Repository hygiene:
scripts/check_pii.pyis a stdlib-only pre-commit hook that greps every added line of the staged diff for the owner's personal identifiers and fails the commit on a match, printing the file and line but never the text. The identifiers never enter the repository: the hook reads one case-insensitive regex per line from the fileLOGBOOK_PII_PATTERNSnames (default~/.config/logbook/pii-patterns); without the file it prints one warning and passes, so CI and other checkouts are unaffected. Tested against a temporary patterns file of synthetic values only. CLAUDE.md gains the commit routine (author identity,-s -S,git log -1 --format='%G?'→G, how to create the patterns file) and the release routine (grep__version__on the tagged commit beforegit tag -s). imessage: an attachment row with nofilenameis onlyextra.media_missing;extra.mediais no longer written with amedia_typeand no path, so it always carrieslocal_pathas its docstring and RFC 0008's media rule say, the fix #74 gavewhatsapp(itsmedia_kindstill comes from the mime type). The property test fixes itself to the adapter (#75): its date floor is computed fromAPPLE_EPOCH + EARLIEST_DATE(2010-07-05T05:20:00Z, not the 7th); the media rule holds in the first slot and underextra.more_media; a sender may carry the optionalnameRFC 0008 added (#59), never blank, which the test's store now grows adisplay_namecolumn to exercise.whatsapp: a media row with noZMEDIALOCALPATHis onlyextra.media_missing;extra.mediais no longer written with a title and no path, so it always carrieslocal_pathas its docstring and RFC 0008's media rule say. The property test fixes itself to the adapter (#66): its date floor is computed fromAPPLE_EPOCH + EARLIEST_DATE(2010-07-05T05:20:00Z, not the 7th), and a sender may carry the optionalnameRFC 0008 added (#59), never blank.- CI: a
cross-impljob on every pull request and push tomainbuilds the independent TypeScript implementation (bighydro/logbook-ts) at itsmain, checks that itsverifyprints the head inconformance/expected.jsononconformance/sample-logbook, then appends one note to a copy of the sample with the Python CLI and verifies the copy with the TypeScript CLI: the two implementations must agree on a record the other wrote.
0.4.1 — 2026-09-25
- Documentation fix; no code behaviour change: the example phone number in README,
adapters/phone.pyand theios-contactstests is now the UK fictional-range number07700 900123(dial prefix44), never a real one. CLAUDE.md hard rule: example phone numbers, emails and addresses come only from reserved fictional ranges.
0.4.0 — 2026-09-21
- SPEC §1.1 (ADR 0015): the content-addressed attachment store,
attachments/<sha256>, optional, write-once, never pruned, outside the hash chain; the{ sha256, path, bytes, media_type }reference shape that RFCs 0004, 0005, 0008 and 0010 point at. No format bump; nothing implemented yet. - SPEC clarifications, no format bump, no hash change: GENESIS named; month-file placement is a writer MUST, not a validity condition; every envelope field present and
endnull, never absent; timestamps UTC withZ, fractional seconds hashed verbatim;seqdecimal unpadded and hex lowercase in the pre-image; the verifier checks §2 as well as the chain; duplicate keys and duplicateseqare invalid; only the canonical form is hashed; unknown keys inlogbook.jsonare preserved; the write order (lines, thenlogbook.json, then the index). §6 andconformance/README.mdnow state the same tamper-and-delete condition. Found by the clean-room TypeScript implementation. - The reference is as strict as SPEC §2–3 (#47), no hash change:
verifynames any missing envelope field (endisnull, never absent;schema/observation.schema.jsonnow requires it); a line with a duplicate JSON key, at any depth, is invalid on read; writers normaliseat/end/recorded_atto UTC with a literalZ(an offset is converted, a stamp with no zone is refused);verifyreports a timestamp with a numeric offset as a WARNING in this release — the record stays valid, exit 0 — and the next release makes it an error;append/append_manyfsync the month files beforelogbook.jsonis saved. ios-contactsfile adapter: an iPhone's AddressBook.sqlitedb (also the hashed file in an unencrypted Finder/iTunes backup) →resolution/v1(RFC 0006), one line per phone number and email address, minting one UUIDv7 per contact aspersonorcompany— how a record gets its people (ADR 0013.2). Opened read-only and immutable; refs are deduped on the normalised value so a later backup appends nothing already resolved;LOGBOOK_DIAL_PREFIXcompletes numbers saved without a country code, dropping one national trunk0.logbook addnow reports every count an adapter tallies, not only the location ones.whatsappfile adapter: an iPhone's WhatsApp ChatStorage.sqlite (also the hashed file in an unencrypted Finder/iTunes backup) →message/v1(RFC 0008), one line per message: chat (direct or group; broadcast lists are groups; status chats skipped), sender as a source-nativephoneorhandleref through the new sharedadapters/phone.py(so a WhatsApp number and an address-book number are the same ref), text,media_kind.raw_idis<chat jid>:<stanza id>so a later backup appends nothing already logged. Media v1 rule: files are never copied into the record; a file present underMessage/is hashed intoextra.media(sha256,bytes,local_path) for a later attach pass, a missing one isextra.media_missing;payload.mediais never set (the §1.1 store is not built yet);LOGBOOK_WHATSAPP_HASH_MEDIA=0skips the hashing. Streams the store through one cursor, built for a million rows.logbook addnow also reports what an adapter noted without skipping (media hashed or missing, rows keyed by row id).imessagefile adapter: an iPhone's Messages sms.db (also the hashed file in an unencrypted Finder/iTunes backup) and the chat.db macOS keeps under~/Library/Messages→message/v1(RFC 0008), one line per message: chat (direct or group), sender as a source-nativephone,emailorhandleref through the sharedadapters/phone.py, text,reply_to,media_kind,extra.service.raw_idis the message guid, so a later backup appends nothing already logged. A body that iOS 16+ keeps only inattributedBody(an NSArchiver typedstream) is decoded by a stdlib-only reader; tapbacks and group events are skipped and counted (rule 1); a date in seconds or nanoseconds since 2001 is read either way. Media v1 rule as for WhatsApp: no file is copied andpayload.mediais never set; a file present underAttachments/beside the database is hashed intoextra.media, a missing one isextra.media_missing, further attachments go underextra.more_media;LOGBOOK_IMESSAGE_HASH_MEDIA=0skips the hashing. One streamed SELECT, opened read-only and immutable.ios-notesfile adapter: an iPhone's Apple Notes NoteStore.sqlite (also the hashed file in an unencrypted Finder/iTunes backup) →note/v1(RFC 0010), one line per note at its creation time:textdecoded from the gzip+protobuf note archive by a stdlib-only walker (field path 2 → 3 → 2), falling back to the snippet when the archive will not decode;title,folder,modified_at;raw_idis<identifier>@<modified_at>so an edited note is a new line and an unchanged one appends nothing. Password-protected notes are skipped (the body is encrypted); notes marked for deletion are logged withextra.deleted; a note with no recoverable text or no usable creation date is skipped. Checklist markers (RFC 0010 rule 3) are not interpreted yet. Opened read-only and immutable, streamed through one cursor.ios-calendarfile adapter: an iPhone's Calendar.sqlitedb (also the hashed file in an unencrypted Finder/iTunes backup) →event/v1(RFC 0009), one line per stored entry: span in UTC with the entry's own zone, calendar, title, notes, location (coordinates underextra.location), organizer and attendees as email refs with their responses, status. A recurring master carries its rule as RRULE text and a detached occurrence carriesrecurrence_of; occurrences are never expanded.raw_idis<uid>@<last modified>(rule 5), so an edited entry is a new line next time. Placeholder rows (a start before 1900, such as 1601) and rows with no start are skipped and counted.supersedesis never set on import; readers join an edited entry's lines on the bare uid. Every column beyond the start is optional, for other iOS versions.logbook addnow passes the record's timezone to an adapter whoseruntakestimezone, so a floating all-day entry lands at local midnight.showprints people by name from the record's own resolution lines (RFC 0006): the sender of a message, the organizer and attendees of an event.Index.resolutions()yields every resolution line in chain order (no schema change, no rebuild);logbook/resolve.pybuilds one{(ref.kind, ref.value): label}map per invocation, skipping retracted lines and the line a later resolutionsupersedes, the last one standing winning for a ref (rule 4). A chat is not an entity: an unnamed group prints itschat.idas the source gave it.show --rawprints every ref unchanged.showstill only reads.- RFC 0008:
sendergains an optionalname, the sender's display name as the source shows it (a WhatsApp push name or group-member contact name; iMessage fills it only from a store whose handle table has adisplay_namecolumn), never a resolution.showfalls back to it when no resolution names the sender, before the direct chat's own name and the raw ref;--rawignores it. - Tests never see the shell's
LOGBOOK_HOMEor home directory (HOME,USERPROFILE): an autouse fixture intests/conftest.pypins both to a temporary folder for every test, so a test can never open the real record at~/Logbook. Never remove it (CLAUDE.md).
0.3.0 — 2026-09-15
- BREAKING: records created by 0.1.0 or 0.2.0 must run
logbook migrateonce before any other command will read or write them (SPEC §3.1). - Format
logbook/0.2(SPEC §3.1, ADR 0014):canonical_jsonis now RFC 8785 exactly (UTF-16 key order, ECMAScript float layout; tested against the RFC's vectors). 0.1 hashed floats such as0.0,120.0and1e-06differently, soverifyand every writer refuse a 0.1 record;logbook migraterecomputesprev/hashin seq order, keeps everything else, recordslineageinlogbook.json, appends onemigration/v1line, keeps the 0.1 files atlogbook-0.1/. The conformance sample is 0.2. index.sqlite: a disposable SQLite locator of the files (ADR 0001, 0007) —logbook indexbuilds it in one streaming pass;show,retract,export --day/--daysandadd/syncdedupe go through it and rebuild it when it is missing or stale;append/append_manyextend it at each checkpoint;verifyand whole-logexportnever read it.shownow lists a local day (the owner's timezone) with local clock times, asexport --dayalways did.sync <source> [--since RFC3339] [--dry-run]pulls from a live source through the new live-adapter contract (configure/pull) and keeps its watermark instate/; first live adapter:immich→photo/v1(RFC 0002), stdlib urllib only.
0.2.0 — 2026-09-15
- Docs site (MkDocs Material) deployed from main; reproducible demo tape.
- Package published as
openlogbook; the command islogbook. initandfindrefuse a code checkout (#12).export --day DATE/--days FROM TOwriteday-package/v1directories (ADR 0013 §4);export/is ignored.addtakes several paths (logbook add a.json b.json some/dir); a path that does not exist is an error (exit 2), never a note.retract SEQ "reason"writes aretraction/v1line that supersedes SEQ (SPEC §3);showhides the retracted line behind a marker,export --daykeeps it and addsretracted_by.export --daysreads the log once for the whole range instead of once per day.
0.1.0
- Format v0.1: folder layout, envelope, hash chain, tiers, conformance rule.
- CLI: init, add (text or JSONL), show, verify, export.
- Conformance fixture with expected head.