Skip to content

The digest

logbook digest [YYYY-MM-DD] [--json | --markdown] is the day in at most 25 lines: what the owner reads of it in the evening, not the Day itself. Its shape in three lines, the flights, the open promises due within the week, the usual sources that had nothing to say, what the calendar holds for tomorrow, and one closing question the owner can answer in a word, drawn from the record's own question bank. It is composed from the readers that already exist — the Day, the promises, doctor sources --gaps — and derives nothing of its own; it writes nothing to the record (the question bank's defaults and a note of what it asked are files beside it, never lines) and it sends nothing. The command only says what the message would be; the schedule delivers two lines of it.

logbook digest                       # today, as text
logbook digest 2026-06-10            # a Wednesday
logbook digest 2026-06-10 --markdown # the same lines as Markdown, for a message that renders it
logbook digest 2026-06-10 --json     # the whole sets behind the lines, every row with its line ids

What it says, in order

  1. where — the stays of the Day's timeline in order (a run aboard an asset as aboard <asset>, an unnamed stay as its coordinates with the nearest large airport's city), the first six and …, then where the night after was spent: night at Home, night away, aboard Solvind, night in transit. A day with no line at all is nothing logged.
  2. with — the people the Day confirms present (declared in a note, speaking in a transcript, attending a timed calendar entry at the stay); never the owner, never a face in a photo or an attendee of an all-day entry, who are only proposed — and 1 proposed after the names says how many are (nobody confirmed (1 proposed) without a name), never a count beside a name. A person proposed at one stay and confirmed at another is confirmed.
  3. attached — how many of each kind attached across the day's rows (1 event, 1 note, 3 photos), and how many lines fell inside no row (2 unplaced).
  4. flight — the flights of the day from the flight/v1 lines standing, as the Day lists them: XY 561 OSL→ZRH 07:05–09:15, with the evidence when it is not tracked; three at most, then +N more flights.
  5. due — the open promises due on the day or within seven days after it, from the promises reader: the sentence as written, who said it (you for the owner), the due day and the phrase it was read from; three at most, then +N more due this week. A promise closed with promises done is out. A promises reader that judges its proposals (a model that reads them after the rules) puts the ids it holds to be promises on its report as judged; when that set is there, only those count. The rules do not judge, so today every open proposal counts.
  6. gaps — the usual sources with no line on the day, one line: dawarich: usual, no line. A source is usual when it has a line on four in five of the logged days of the fortnight ending on the day (the days rule, days.usual_sources); it is missing when doctor sources --gaps, asked from the day with those sources expected, counts the day among its missing days or holds no line of it at all. A note written once in the fortnight is not usual, so it is never missed.
  7. tomorrow — the timed calendar entries of the next local day, from the event/v1 lines standing (retracted lines out; an entry several calendars carry is one, from N sources, as the Day folds them), with the attendees the record names: Lunch, from 12:00 to 13:00 · with Kari Nordmann, the title first and its time after a word, so no clock touches a name a title opens with. An all-day entry is not timed: it comes first and says so, Kari in town, all day, whether its calendar flags it all-day or another calendar carries it from midnight to midnight. Three at most, then +N more entries.
  8. The question, last, after a blank line. One, from the record's own bank — policy/questions.json, written with its defaults the first time and yours to edit — so that the owner can answer in a word and the day closes itself (ADR 0005: one nudge, one channel). Each question in the bank says which facts of the day it asks on (when: travelled, aboard, night_away, reunion, !photos, long_sleep, ... — the table is in RFC 0027) and how much of the draw it takes (weight); the digest draws one of the questions whose conditions hold, never the same one two days running, and remembers what it asked in state/questions.json. The defaults are the nudges the digest used to choose in code, each as a question with the condition that chose it:
when the question
nothing logged Where were you?
a usual source is missing Was dawarich switched off?
the night after is in transit Where did you sleep?
a person is proposed and confirmed nowhere Was Kari Nordmann with you?
a calendar entry fell inside no row Did “Lunch” happen?
a promise is due on the day or before Is “I'll send the photos by Friday.” done?
someone seen again after ninety days How was it, seeing Per Hansen again?
travelled What did you see today that you had not seen before?
a long night's sleep Did the long sleep help?
any logged day What were you glad of today?, Anything to add?

The content of the bank — which questions, with what research behind them (source) — is left to a future author (RFC 0027, The question bank — to be written); these defaults cite nothing. logbook setup questions list|add|disable manages the file:

logbook setup questions list                                   # id, kind, weight, when, text
logbook setup questions add sea-air --text "What did the sea smell of?" --kind savouring \
    --when aboard --when '!night_in_transit' --weight 2 --source "a placeholder citation"
logbook setup questions disable sea-air                        # kept in the file, never asked

The answer is the owner's to write — a note, a promises done, a confirmation — and the digest never writes it for them.

The limit

Twenty-five lines is a hard limit, not a target. The parts are capped as above, so a day with six flights, eight promises and nine meetings tomorrow still fits with room over; should a day ever not, digest.fit cuts lines from the middle for one … row and keeps the header and the question. The JSON is never cut: it holds the whole sets, and lines says how many lines the text has. The digest is never a list of everything — that is what logbook day is for.

A synthetic example

The Oslo persona of the test suite, who does not exist, on a Wednesday with a lunch at an unnamed cafe, a promise made the evening before, and two entries in tomorrow's calendar:

2026-06-10  Wednesday
  where      Home → Office → 59.9200,10.7400 → Office → Home · night at Home
  with       Kari Nordmann
  attached   1 event, 1 photo
  due        “I'll send Ola the mooring photos by Friday.”  you, 2026-06-12 (by Friday)
  tomorrow   Standup, from 09:00 to 09:30
  tomorrow   Lunch, from 12:00 to 13:00 · with Kari Nordmann

Anything to add?

The Monday they fly to Zürich:

2026-06-15  Monday
  where      Home → OSL, Oslo → ZRH, Zurich → 47.3769,8.5417 (Zurich) · night away, 47.3769,8.5417 (Zurich)
  with       nobody confirmed
  attached   1 event
  flight     XY 561 OSL→ZRH  07:05–09:15
  tomorrow   Dinner, from 19:00 to 21:00 · with Ola Nordmann

Anything to add?

A day the record holds nothing for:

2026-06-10  Wednesday
  where      nothing logged
  with       nobody confirmed
  attached   nothing

Where were you?

--markdown prints the same lines as a heading, a bulleted list with the labels in bold, and the question in bold on its own:

## Saturday 13 June 2026
- **where** Home → aboard Solvind · night away, aboard Solvind
- **with** Ola Nordmann
- **attached** 1 note, 1 photo

**Anything to add?**

The JSON

--json prints one object: day, weekday, tz; shape (where, the stays in order; night with where, home, aboard, in_transit; with with confirmed and proposed as names; attached as count and noun pairs; unplaced); flights, the Day's own with their line ids; promises (within_days, judged, and open, every proposal as promises --json prints it); gaps (usual and missing); tomorrow (day, and entries, the timed ones, and all_day, each with title, all_day, start, end, their local forms, with, sources and lines); unplaced, the Day's list; sources, the names with a line on the day; question (id and kind of the question in the bank, text with its placeholders filled, and facts, the names of the day's facts that held, so a when can be written against what the chooser saw; id is null when nothing in the bank could be asked); and lines.

The week, rather than the day, is logbook digest --paper [--week YYYY-Www]: four pages of A4 with the days one line each, who was there and the keepers, the promises due and what was read, in On paper.

What it does not do

It does not send anything or schedule anything: a delivery layer that takes the text, picks the channel and keeps to one message a day is the next decision, not this command. It remembers only which question it asked on which day (state/questions.json, the last seven), so as never to ask the same one two days running; it does not remember the text, nor any answer. It does not read a day that has not come: a day after today in the record's zone is refused. It does not derive anything the Day, the promises reader and doctor sources --gaps do not already derive, so a change in their rules is a change here; the one setting of its own is the question bank, which is the owner's file and not the code's.

Delivery

The digest is not sent whole. The schedule's notifier, when it is set (the schedule), sends two short messages a day through Telegram, and nothing else of the day:

  • after the 06:00 close, Your Day page for 2026-10-16 is ready · 42 lines, with the link to the Day when LOGBOOK_NOTIFY_LINK_HOST is set;
  • at LOGBOOK_NOTIFY_EVENING_HOUR, Your question for 2026-10-16: What were you glad of today?, the question this command closes with, drawn the same way and remembered in state/questions.json, so logbook digest that evening asks the same one. A question of the bank with a placeholder, filled from the day (a name, a promise's sentence), is not sent: Your question for 2026-10-16 waits in `logbook digest`.

One message each, at most once a day; the token is never printed.