Skip to content

Releases

v1.3.3

Choose a tag to compare

@github-actions github-actions released this 16 Nov 18:57
v1.3.3
359bbe0

A fix only: no migration, so upgrading is a tag change and an apply — but the
extractor version changed
, so run tome reextract once afterwards.

Extraction version 9

A caption a domain rule selects is stored as a caption. The reader styles a
<figcaption> smaller and set apart from the prose, but many sites mark a caption
only with a class, and the sanitizer drops every class — so gallery and lead-image
captions were stored as bare blocks and read at body size. The domain-rule rung now
stores an element as a figcaption when an image names it with aria-labelledby or
aria-describedby, or when a caption class (wp-caption-text, a lightbox's
pswp-caption-content) sits beside an image. An element holding a picture is never
renamed, and neither is one inside a paragraph.

Only that rung: the extractor libraries discard figcaption text when they rebuild a
body, so marking captions ahead of them deleted the captions instead.

Measured over every re-extractable body in a real archive (9,197): 918 change, all
on the one site whose rule this reaches, and no text changes anywhere.

Run tome reextract once after upgrading.


Image

ghcr.io/runlevel-six/tomekeeper:v1.3.3
ghcr.io/runlevel-six/tomekeeper@sha256:c0a48055092295fd5dbab9d2b60b1d8d9147ba45d48ec1a2312e5928d70562a0

v1.3.2

Choose a tag to compare

@github-actions github-actions released this 16 Nov 17:35
v1.3.2
11562a9

Fixes only: no migration, so upgrading is a tag change and an apply — but the
extractor version changed
, so run tome reextract once afterwards to reach the
articles already in the archive.

Extraction version 8

What a reader never sees is removed from the page before any rung reads it. Two
real shapes stored the same words over and over:

  • An author-box plugin ships, inside an inline display: none, a list of every post
    its author has written. The extractor kept the author's name from each entry, and
    articles ended with the byline up to a thousand times.
  • A lightbox keeps a second copy of each figure's caption beside the image for its
    zoomed view, hidden by the site's stylesheet, so every caption appeared twice.

Elements hidden by an inline display: none or visibility: hidden now come out,
and so does any element inside a <figure> that repeats its <figcaption> word for
word. Both act on whole elements, so an image's alt and hover text survive whenever
the image does, and an element holding an image is never taken as a caption's copy.
The hidden attribute is deliberately left alone: streaming server rendering sends
the finished article inside one and swaps it in from script.

Measured over every re-extractable body in a real archive (9,185): 328 change,
and none loses an image or a caption.

Run tome reextract once after upgrading.

Fixed

  • A serve error that races shutdown is reported rather than discarded, by both
    the web server and the metrics listener. After a clean shutdown it is nil, as
    before.

Image

ghcr.io/runlevel-six/tomekeeper:v1.3.2
ghcr.io/runlevel-six/tomekeeper@sha256:11a66941154d7a40af85c50512cf43da4b9f989df5c2dbcb0d3a054202058e24

v1.3.1

Choose a tag to compare

@github-actions github-actions released this 03 Oct 20:02
v1.3.1
17781e8

A fix only: no migration and no extractor change, so upgrading is a tag change and
an apply.

Fixed

  • Marking a list read now goes straight to the unread list. The confirmation
    used to render its result in place, leaving /mark-read in the address bar, so
    the next reload or restored session passed through a redirect before reaching a
    list. A successful mark now redirects to / immediately, which also keeps the
    POST out of the history where a reload would offer to resend it. The "Marked N
    articles read" line went with it; the list you land on shows the result. A mark
    that fails still says so in place rather than landing somewhere that looks like
    success.

Image

ghcr.io/runlevel-six/tomekeeper:v1.3.1
ghcr.io/runlevel-six/tomekeeper@sha256:46890563628f498bb7a09007b5d6537236fb6a5b73178b44f756d3cf2c9ed81a

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 08 Sep 23:21
v1.3.0
51a7b79

Adds migration 00023, so this is a minor release: run the migration Job, then
apply. No extractor change — nothing stored is re-derived, and the migration
backfills the new column from the bodies already on disk. On an archive of 12,304
stored bodies that backfill writes 7,587 rows and takes a few seconds.

Added

  • Every list of articles shows the picture the article leads with. Unread,
    Everything, a feed, a tag, a category, Saved, Starred and the search results, all
    from the row's left edge. The picture is the one this archive already holds: the
    first image in the reader's own body, recorded by migration 00023 as
    article_content.lead_image_sha when the body's images are localized, and
    backfilled for the archive that exists. An article whose images are not archived
    yet has no thumbnail and gets one when the worker reaches it.

    Nothing is loaded from the site the article came from — the whole point of
    localizing images is that reading tells no publisher anything, and a list that
    hotlinked would say so on every scroll. Thumbnails are lazy and served from the
    content-addressed, immutable-cached /assets/, so each one is fetched once
    ever, and a row without a picture uses the full width rather than leaving a
    reserved column: two of every five articles have no image.

    Derived once and stored rather than read out of the body at render time. On the
    live archive, taking it from content_html with a regular expression cost 460ms
    against the unread list's 114ms — content_html is stored out of line, so it
    drags every body of the page off disk to read its first hundred bytes.
    Reference: Thumbnails.

Fixed

  • Coming back to /mark-read no longer lands on a 404. Marking a list read
    renders the result in place, which is what puts the count in front of the reader
    who earned it — and leaves /mark-read in the address bar. A browser restoring
    that session, or a reader reloading the next morning, asks for it again with no
    list named, and that was a wall in front of somebody whose last action had
    succeeded; installed as a web app, a wall with no back button. It now sends them
    to Unread. A POST naming no list is still refused: "mark nothing read" has no
    honest answer.

Image

ghcr.io/runlevel-six/tomekeeper:v1.3.0
ghcr.io/runlevel-six/tomekeeper@sha256:98b657d7df034c41615b55557b8c610d24da52d7973cb0c1acfee7666820425d

v1.2.2

Choose a tag to compare

@github-actions github-actions released this 01 Sep 01:37
v1.2.2
ac095e3

No migration and no extractor change, so this is a tag change and an apply.
Every fix here is in the interface; nothing touches what is stored.

Fixed

  • The attention queue and the feed list were held to a reading measure. Their
    tables — six columns and five — were capped at the same width as a paragraph of
    prose, so they scrolled sideways inside a narrow column on a window with room to
    spare. Both now get a width suited to a table, while the prose on them keeps the
    measure the table gives up: the queue's explanatory paragraph, and the feed
    page's import banner. The forms on the feed page were already bounded and do not
    move. The horizontal-scroll rule stays as the safety net for a phone.

    An article's explanation and the accounts list had it too, through the
    shared .page width. Both are named individually rather than widening .page,
    since the rest of its pages — Settings above all — are prose and controls that
    the measure is right for. The explanation gets the most room of any page here:
    its ladder is seven columns ending in a sentence per row, and it is the page
    somebody opens when something is already wrong, which is a bad moment to be
    scrolling sideways to read the reason.

  • "Edit" on a domain rule now lands on the form. The form sits below the table,
    and the link carried no anchor — so pressing Edit reloaded the page, moved
    nothing, and looked like a dead control unless you knew to scroll. Every route to
    it carries the anchor now: the rules table, both links on an article's
    explanation, and the per-row link from the attention queue and the audit.

Documentation

  • Install on Kubernetes now says what the field is immutable error on
    tomekeeper-migrate means — that it is Kubernetes refusing to change an existing
    Job's pod template, that the rest of the apply succeeded and the Deployments did
    roll, and that the remedy is the documented delete-then-apply. The correct
    sequence was already there; what it looks like when you skip it was not.

Image

ghcr.io/runlevel-six/tomekeeper:v1.2.2
ghcr.io/runlevel-six/tomekeeper@sha256:4705a130338ceadbbb377b83043251c7b051fd255f8c41c75529fb10dcf4a4e5

v1.2.1

Choose a tag to compare

@github-actions github-actions released this 01 Sep 00:58
v1.2.1
b050e23

No migration and no extractor change, so this is a tag change and an apply.

Fixed

  • Editing a domain rule no longer forks it. "Apply this for everyone" was
    never ticked — not on a blank form, not when opening an existing rule — despite
    its own description promising it is on for an administrator. So the ordinary way
    to change the household's rule (press edit, change something, save) did not
    change that rule: a selector edit silently saved a private copy and left
    everybody on the old one, and a fetch setting was refused with a message that
    did not name the control that would have allowed it. Now on by default for an
    administrator, reapplied when a rule is loaded for editing, and the refusal says
    which control to tick. A POST still carries whatever was actually chosen, so
    turning it off deliberately works as before.

Image

ghcr.io/runlevel-six/tomekeeper:v1.2.1
ghcr.io/runlevel-six/tomekeeper@sha256:f88ccd4ddd32edf072298ac5eecebef6f7e0b8a9cbffb063c196f9a9e8ce0075

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Sep 00:30
v1.2.0
e663e66

The extractor version is unchanged at 7 and there is no migration, so nothing
here needs tome reextract. A rule saved through the new field still takes effect
at the next worker start, the same as one written by the CLI.

Added

  • A User agent field on the domain rules page, beside the rate and the
    needs-JavaScript flag, and a marker in the rules table when one is set. v1.1.0
    made the setting real but left it reachable only from the CLI or raw SQL, which
    is not somewhere most people will look. Like the other two fetch settings it is
    the household's — a reader's own rule may still set selectors only, since the
    page is fetched once.

Documentation

  • How to add a domain rule gained When a site refuses the default identity —
    how to tell a User-Agent shape filter from a real robots refusal before writing a
    rule for it, and why the value should carry no version number.
  • The same page's Apply it to what is already stored covered tome reextract
    only, which makes no requests and so can do nothing for an article whose page
    never arrived. It now says how to re-fetch those, which is the step a rule about
    fetching actually needs.
  • user_agent in the data model reference said "Reserved; not yet read". It has
    been read since v1.1.0.

Image

ghcr.io/runlevel-six/tomekeeper:v1.2.0
ghcr.io/runlevel-six/tomekeeper@sha256:a297256137bcc1d53ea0a3294fc9683d81606fcf74ef6419cb44fd6653184fd4

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Sep 00:11
v1.1.0
1026cb6

The extractor version is unchanged at 7, and there is no migration, so nothing
here needs tome reextract and the upgrade is the migration Job plus an apply.

Articles that already failed to fetch are the exception, and they need asking for
by hand: a recorded fetch failure is never retried, so neither a new User-Agent nor
the feed-body fallback reaches one on its own. tome refetch --yes <ids> runs both
for them.

Added

  • A domain rule's user_agent is now sent to that domain. The column has existed
    since the table did and was never applied to a request, nor settable outside raw
    SQL. It now reaches both the polite HTTP client and the headless renderer, so a
    flagged domain is told the same thing however it is fetched, and robots.txt for
    that host is requested under the same identity it is tested against.
  • tome domain-rule set --user-agent <string>, and the value in list and show.
    Without the flag the command's replace-in-place upsert silently cleared any value
    already stored.

Fixed

  • A fetch that fails now falls back to the feed's own body. The extraction ladder
    has always had a rung for a page that never arrived — viaFeedBody runs when
    there is no stored HTML — but nothing enqueued an extraction for a failed fetch,
    and neither the re-extraction sweep nor tome reextract --domain will look at an
    article with no stored page. The feed's copy was therefore unreachable by every
    route. Applies to a robots.txt refusal too: that body came from a feed the reader
    subscribed to, not from crawling the page.

    The failure is still recorded, so the article still appears in the attention queue
    with the reason it could not be fetched. Nothing overwrites a body that already
    exists.

Why you would use it

Some origins filter on the shape of the User-Agent rather than on conduct. Measured
against arstechnica.com on 2026-08-31: tomekeeper/1.0.1 (+url) was refused at the
edge with a bare 403 while Mozilla/5.0 (compatible; SomeBot/1.0; +url) was served —
the filter rejects honesty, not bots. The remedy is the long-standing
Mozilla/5.0 (compatible; name; +url) convention Googlebot and bingbot use, where the
Mozilla token is vestigial and the parenthetical still names the fetcher and how to
reach its operator. The default identity is unchanged, and a rule that claims to be a
person at a browser is still the wrong answer.


Image

ghcr.io/runlevel-six/tomekeeper:v1.1.0
ghcr.io/runlevel-six/tomekeeper@sha256:a807ed6fd9b56c3986b7548914b0cbc2296305b7f5c70fcb7aa1cacc2f72dfe8

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 24 Aug 01:31
v1.0.1
cb2fc55

Fixed

  • Backup verification compared the wrong hashes, and said so loudly about healthy
    files.
    v1.0.0's manifest recorded what the database holds — articles.raw_blob_sha
    and assets.sha256 — and compared stored files against those. But a page is stored
    gzipped while that column is the hash of the page as fetched, and an image is stored
    transcoded while that column identifies the original download. So on the first real
    archive it was pointed at, 5,790 of 6,208 files were reported corrupt and the archive
    was called unusable.
    The files were fine; the comparison was meaningless.

    The manifest now records the SHA-256 of every entry as it is written, hashed in the
    same pass that copies it. Verification therefore compares what arrived against what was
    read — which is the failure it exists for — and every entry is checkable rather
    than a third of them: 10,789 of 10,789 on the archive that exposed this.

    The database's hashes are still read, for the one question they can answer: which files
    the rows point at, and so which are missing.

    Archive format 2. A v1.0.0 archive is refused by --verify rather than reported as
    corrupt, since its hashes cannot be compared against anything; tome restore --force
    will still load one, because its files and tables were always intact. Take a fresh
    backup.

    Found by running the thing on 10,774 real files, which no fixture had done — every
    fixture wrote bytes the test itself had hashed. There is now one that stores a page
    gzipped while recording the plaintext hash, exactly as the fetcher does, and it fails
    if the old behavior comes back.


Image

ghcr.io/runlevel-six/tomekeeper:v1.0.1
ghcr.io/runlevel-six/tomekeeper@sha256:5d921c9c7483507dc21ee98ecd613256fd3d694f7c4477e1e6709368deb030ff

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 24 Aug 00:49
v1.0.0
b3d6b6c

Added

  • tome backup writes both halves of the archive as one file, and can prove it is
    whole.
    Every table, every stored page and image, and a manifest recording a hash
    for each file the database records one for — so tome backup --verify compares the
    copy against what the archive claimed about itself before the copy was made. That
    check needs no database and no configuration, only the file, because "is this backup
    any good" has to be answerable on whatever machine it ended up on.

    This closes the last gap that could lose the archive. Until now the automated
    half was a database dump on Kubernetes and nothing else: the blob tree — the fetched
    pages and images, the part that cannot be rebuilt once a site changes or goes — was a
    paragraph in a how-to that a person ran by hand, and had been run once. Worse, the
    documented way of running it silently produced a short copy: a kubectl run --rm -i
    streaming a tar delivered 73.9 MB of 307 MB, 37 files of 8,946, and exit code 0.

    It is a command in the binary rather than a recipe per platform, because an archive
    runs under Kubernetes, under Compose, or from a systemd unit, and because the image is
    distroless — no shell, no tar — so every recipe necessarily ran outside the
    application in whatever the platform provided. --to naming a directory means the
    command picks the rotating filename itself
    , which is how a scheduled job rotates
    with no shell to expand date in. With no --to it streams to standard output, so
    piping it into restic never lands a local copy at all.

    The order it works in is load-bearing. The database snapshot is taken first, in a
    repeatable-read transaction, and the tree is walked after it — so every row in the
    archive refers to a file that existed when the snapshot was taken, and anything
    written during the walk is extra bytes rather than a row without its file. The obvious
    order produces exactly that inconsistency for every article fetched while the backup
    runs.

    Two things are deliberately left out, each for a stated reason. The job queue, because
    a restored queue chases articles that may since have been pruned and the schedulers
    rebuild it within a minute; and goose_db_version, because a restore migrates before
    it loads. A table added to the schema without being added to the backup fails the
    backup, by name
    — a backup missing a table is otherwise discovered only by the
    restore that needed it.

  • tome restore loads one: it migrates the schema, replaces every table in one
    transaction, resets the id sequences, and unpacks the tree. It refuses a database that
    already holds articles unless --force, refuses an archive from a schema it cannot
    reach, and refuses a format from a newer build — all before anything has changed.
    Restoring stays a command and never becomes a route, because it needs the writers
    stopped and nothing inside a running application can arrange that.

  • A backup can be downloaded from the interface, on the accounts page, for
    administrators only. It is not the export, and the page says so: an export is your
    reading, portable into another reader; a backup is the household's bytes. It streams,
    so it costs the server constant memory whatever the archive weighs.

  • Scheduled everywhere, not just on Kubernetes. The nightly CronJob now runs
    tome backup from the application's own image with the blob volume mounted
    read-only; Compose gains a backup profile for docker compose run --rm backup;
    and the how-to carries a systemd timer whose ExecStartPost verifies what it just
    wrote, because a scheduled backup that is never verified is a scheduled hope.

    The Kubernetes backups volume is 20Gi in the manifests now, up from 5Gi: seven
    rotating archives hold the whole archive rather than just the database. Do the
    arithmetic for your own archive before assuming that is enough — it scales with the
    images.

  • The restore drill runs in CI, which is what §8 has always asked for and what
    nothing has ever done: back up a real database, restore it into an empty one, diff the
    tree byte for byte, and assert that a truncated archive is refused. The round-trip test
    covers the format; this covers the commands, which is where the last two bugs lived.

Off-host copies are still yours to arrange, and that is a limit rather than an
omission.
One copy on the same disk as the archive protects against a mistake, not
against the disk. restic and rclone do that job properly and the how-to shows both;
where the second copy lives is a decision about somebody's own network.


Image

ghcr.io/runlevel-six/tomekeeper:v1.0.0
ghcr.io/runlevel-six/tomekeeper@sha256:1957db3a17a6830b0ba43f2bf0ceaa40a3cda91661087b4c8a5abdbae90430ba