• 1.4.31-tanto b5e8a3ee13

    loweel released this 2026-11-24 22:01:44 +01:00 | 10 commits to master since this release

    Stabbypossum 1.4.31 "TANTO" gives an account's key to whoever asks for it, whatever the flags say.

    Install

    Run the image from Docker Hub: loweel/stabbypossum.

    This release ships no binaries. The source archive is attached below.

    The key is always given out

    With authorized fetch on, a server that asked for one of our accounts, signed by somebody our rules block (flag None), was answered 403. Mastodon signs these requests with its own instance actor. If that actor was blocked, the server still received our posts for its users, but could not read the key to check them. It answered our deliveries with 403 "Public key not found", and the posts were lost for it. In production four servers did this, 15 times in four hours.

    Handing out the key and the flags are two layers apart. A server that cannot read the key cannot check what we deliver. Now an account asked for by a blocked signer is given reduced to its key: id, type, preferredUsername, inbox, outbox and publicKey, as for an unsigned request. Posts and collections are still refused (403) to a blocked signer.

    The rule is proved with SPARK: for an account's own document the answer is never a refusal.

    If a remote server still cannot fetch the key because of its own network or timeouts, there is nothing more this server can do.

    Tests

    The full smoke passes on the test image and on the production image, with 0 errors in the log. The smoke asks for an account signed by a blocked signer and expects the key-only document. SPARK proves everything, and the unit tests pass.

    Downloads
  • 1.4.31-falchion 30928fb45f

    loweel released this 2026-11-24 17:50:09 +01:00 | 11 commits to master since this release

    Stabbypossum 1.4.31 "FALCHION" puts every remote account and instance on one of five fixed flags, and gives the shared inbox its own user, federated.

    Install

    Run the image from Docker Hub: loweel/stabbypossum.

    This release ships no binaries. The source archive is attached below.

    No rollback. At start this release rewrites the policy rows in the new format. An older release would read every rewritten row as a block. Do not go back to an earlier image after running this one.

    Five flags

    Every row of the remote policy table, on an instance or on a remote account, now carries one of five flags. The numbers belong to the flag and are the same for everybody:

    Flag Latency Maximum
    Direct none no limit
    Fast 1 hour 2 per hour
    Chill 1 day 3 per day
    Slow 3 days 10 per week
    None blocked nothing

    The administrator's own flags, the reasons and the numbers set per row are gone. A row written by the code says where it came from: a client app, an automatic event, the protocol check, a missing host, an unanswered follow, a probe, an import, a person, or the conversion.

    Migration. At start every older row is rewritten as the nearest of the five flags. Latency is compared first, then the maximum, scaled to the same period. On a tie the harsher flag wins, and a maximum of 0 is None. Once every row has moved, the old flags folder goes. A row that cannot be resolved is left as it was and read as None, and in that case the old flags folder stays.

    Missing Host (an instance that has not answered for days) is None: nothing is sent to it, nothing is asked of it, and what it sends is stopped.

    Client apps. Block writes None, and unblock lifts only None. Mute writes Slow, unless the account is already None, and unmute lifts only Fast, Chill or Slow. A row marked for purge is kept as Direct with the purge, so the cleanup is not lost. An imported mute list becomes Slow, like a mute from an app.

    Rows written by the protocol check or for a missing host are no longer counted as automatic, so a later event can no longer lift them. Only a person removes them.

    The Flags page now only lists the five flags. You choose a row's flag from a menu.

    The five flags live in a SPARK package, proved with gnatprove.

    The federated user

    Everything that arrives at the shared inbox now only gets routed. It goes to the partitions of the local users it is meant for, or to the system user federated. A Delete goes to both.

    • The federated user stores public posts and follows only the instance rows. The shared inbox keeps only instance blocks.
    • The federated timeline is the Home of the federated user, trimmed every hour to its newest 256 entries. If the listing cannot be read whole, an ERROR line says so.
    • At start the old federated timeline (maildir-v1/federated) is moved there. If both exist, they are merged.
    • An INFO "routed" line says where each message went.
    • The web UI shows 32 entries per page.

    Tests

    The full smoke passes on the test image and on the production image, with 0 errors in the log. SPARK proves everything, and the unit tests pass, including the flag migration (an unresolved row keeps the old flags folder) and the move of the federated timeline.

    Downloads
  • 1.4.31-bowie c2f51f5825

    loweel released this 2026-11-24 11:35:30 +01:00 | 13 commits to master since this release

    Stabbypossum 1.4.31 "BOWIE" takes the Delete a deleted account sends about itself, and says in the log why and where a message was turned away.

    Install

    Run the image from Docker Hub: loweel/stabbypossum.

    This release ships no binaries. The source archive is attached below.

    A deleted account's Delete of itself is taken

    When an account is deleted, its server tells everyone with a Delete of that account, signed with the account's own key. By then the server no longer gives that key out: asked for it, it answers 410 Gone. The signature cannot be checked, so we refused it with 401, and the sender tried again for days, twice each time (once with each signature scheme). In production this was most of the deliveries refused at the inbox.

    Now, when the key's server answers 410 and the message is a Delete of exactly the account that key belongs to, the inbox answers 202 and forgets its stored copy of that account. Anything else signed by such a key is still refused.

    The check is exact, word for word, and proved with SPARK. A first version only looked for the account's address inside the error text, and a key address built to contain another account's address (in its query, or as a longer path) could have made us forget that other account. The review caught it before release.

    The log says why a message was turned away

    Every place where the server refuses or drops a message now writes one INFO line, with the XULF site id of the code that decided:

    • Inbox signatures refused, with the kind: the key's server answered 410, 403, 308..., the signature is stale, a header is missing, and so on, plus the key id.
    • Any inbox delivery answered with something other than 2xx.
    • Rate: a message that waited for room longer than its rule allows is "expired", one stopped by a block is "blocked", with how long it waited.
    • Tarpit: a message that was waiting out its latency when a block came is told apart from one blocked on arrival.
    • Dropped later: each line carries the activity id, so a message accepted at HTTP can be paired with where it was dropped.

    A request without a session cookie is not a message turned away, and stays at DEBUG.

    Tests

    The full smoke and the unit tests pass. The smoke sends a gone account's Delete of itself (202), a Delete of a post signed by that account (401), and the two forgeries against a stored account (401, the account kept).

    Downloads
  • 1.4.31-kukri f5e2c464cf

    loweel released this 2026-11-24 08:22:23 +01:00 | 18 commits to master since this release

    Stabbypossum 1.4.31 "KUKRI" stops retrying a profile refresh for a host that does not answer, and makes a slow inbox answer say who caused it.

    Install

    Run the image from Docker Hub: loweel/stabbypossum.

    This release ships no binaries. The source archive is attached below.

    A failed profile refresh stops at once

    The server refreshes a remote account's profile now and then. When the other server did not answer, or answered with an error, the refresh was tried again and again: in production an account on a host that was simply down was asked eleven times over five hours, and the job ended at ERROR in the log, twice in two nights.

    A refresh that fails now stops at the first failure, with a WARN line, as a refused one already did. Nothing is lost: the next time the account's key is fetched, or once its profile is 36 hours old, it is asked again, and the host's failures are still counted for the Missing Host check.

    A slow inbox answer says whose signature it was

    When a delivery to an inbox takes more than five seconds, the server logs a WARN with where the time went. It now also names the key the delivery was signed with and why the signature was not taken. At night three addresses kept posting to inboxes, some that do not exist, signed with keys whose server never answered; until now only the proxy's log could tell who they were.

    Tests

    The full smoke and the unit tests pass. The smoke's check of the six-hourly consistency run no longer fails when a run starts by itself in the middle of the check.

    Downloads
  • 1.4.31-stiletto c3979435fc

    loweel released this 2026-11-24 01:10:41 +01:00 | 19 commits to master since this release

    Stabbypossum 1.4.31 "STILETTO" fixes the memory a Purge kept, makes flags renamable, and closes a gap left by MISERICORDE's Delete from the server.

    Install

    Run the image from Docker Hub: loweel/stabbypossum.

    This release ships no binaries. The source archive is attached below.

    A Purge no longer keeps memory

    To find the posts of the account it clears, a Purge read every file in object/ whole. The largest one stayed on the maintenance task's stack for as long as the process lived: in production on 23 November three Purge rows left 5 to 10 MiB of heap each, about 19 MiB that never came back.

    A file is now searched 64 KiB at a time, and read whole only when it names the account. The spool's terminal/ sweep and the cleaning of ignored/ search the same way, every name in one read of the file.

    Measured locally at 1 CPU, 20,000 objects with a 6 MiB largest one:

    before after
    live heap after the first Purge +13.1 MiB +0.4 MiB

    The smoke's --purge-burst N measures it.

    Flags are UUIDs, and their names can be changed

    A flag is now a UUID and its numbers; the name is only what a person reads.

    • Built-in flags (Spam, Missing Host, Client Block, ...) have fixed UUIDs, the same on every Stabbypossum. Their names and numbers stay fixed.
    • Flags you added get a UUID of their own and are filed as flags/<uuid>.json. Their name can be changed on the Flags page, and every row that carries the flag shows the new name at once, without being rewritten.
    • Rows store only the flag's UUID.
    • Names never clash: a name already shown by another flag, built-in or added, gets -2, -3 and so on.
    • Export and import on the Flags page: flags.csv, one line per added flag with id, name, latency, maximum, period, expiry. On import a flag whose id is already here stays as it is here, a new one is added, and a line that cannot be read is counted.
    • A user's policy.csv export now also carries the flag's UUID.

    Upgrading. At the first start each added flag gets its UUID, derived from the file it was kept in, so a start cut short and done again gives the same flag. Then every row that named its flag is written with the UUID. Rows written before still read correctly while this runs. A flag or a row that cannot be moved is logged at ERROR, keeps working as before, and is tried again at the next start; the Flags page says how many flags are still waiting.

    A boost of a deleted post is let go

    MISERICORDE's Delete from the server removed a post and every copy of it, but a boost of that post arriving afterwards still made an entry in a follower's Home: no text, but an entry that should not exist, and the booster was noted on the post again. A boost of a post that is a tombstone here, deleted by its author or by the administrator, now makes nothing.

    Also fixed

    • When the counts of a new actor's profile could not be queued, the ERROR line did not say why. The spool's answer is now logged with the request: a request already being written at that moment is a race and goes to DEBUG, anything else is an ERROR.

    Tests

    The full smoke and the unit tests pass. The unit tests now include the upgrade: an old flag file, rows naming it on the instance's table and a user's, the move run twice, then cut short and run again; one flag remains, with the same UUID, name and numbers, and the rows carry the UUID.

    Downloads
  • 1.4.31-misericorde 2265a03266

    loweel released this 2026-11-23 17:26:33 +01:00 | 21 commits to master since this release

    Stabbypossum 1.4.31 "MISERICORDE" gives the administrator a way to remove a remote post from this server completely, for personal data the server must not keep.

    Install

    Run the image from Docker Hub: loweel/stabbypossum.

    This release ships no binaries. The source archive is attached below.

    Delete from the server

    A post from another server can bring personal data onto this server's disk, for example a phone number written in a mention. Until now it could be hidden, but its text stayed on the disk.

    The post's menu (the three dots) now has Delete from the server, in red. It shows only to the administrator, and only on posts from other servers. A post of this server is deleted by its author, and that Delete goes out as usual. After a confirmation, the server removes the post and every copy of it:

    • the post itself, and its index files;
    • every copy in every timeline, notifications included, and every entry that carries it: a boost of it, a quote of it, a notification about a post that quotes it;
    • each user's own copies: liked, boosted, bookmarked, pinned, disliked;
    • the refused activities kept in ignored/ that name it;
    • the spool's terminal/ folder drops what names it at its next hourly sweep.

    What stays: a tombstone with the post's id, its author's address and the date, and a mark in erased/ that holds the id. They contain nothing of the post, and they stop it from being stored again: if it arrives again, boosted, or searched, it is not written.

    Nothing is sent to any server. The author's server, and every server that received the post, keep their own copies under their own rules. This only controls this server's disk. Backups made outside the server are not touched either.

    The answer says whether everything was removed. If a step fails, the interface says so and the log has an ERROR naming it. Running it again does what is left.

    ignored/ no longer keeps data forever

    ignored/ kept every refused activity, whole and forever, including ones with a forged signature. It now keeps them as long as the spool keeps a stopped payload, 7 days, and a daily sweep removes the older ones. The first sweep runs at the first midnight after the update.

    Also fixed

    A Purge flag left one copy behind: the notification of a post quoting a purged account's post kept the quoted text. The Purge and Delete from the server now look into boosts, notifications and quotes nested inside each other.

    Tests

    The smoke runs the case from start to end. A remote post with a phone number mentions the user, is boosted, quoted, liked and bookmarked. The administrator then deletes it from the server, and the smoke checks that:

    • a search for the number in the whole data folder finds nothing (outside terminal/, which is cleared hourly);
    • the tombstone holds only the id fields;
    • no Delete is sent;
    • the post sent again, boosted again or searched is not stored;
    • an account that is not the administrator is refused (403);
    • a post of this server is refused (422).

    Full smoke and unit tests pass.

    Downloads
  • 1.4.31-katar 850834f4f7

    loweel released this 2026-11-23 11:49:50 +01:00 | 22 commits to master since this release

    Stabbypossum 1.4.31 "KATAR" fixes the bugs found while watching production on 23 November. There were nine points: this release fixes points 2 to 8, KARD already fixed point 1, and point 9 is about the tests and is measured next.

    Install

    Run the image from Docker Hub: loweel/stabbypossum.

    This release ships no binaries. The source archive is attached below.

    The nine points

    1. Requests refused while the server was busy (already fixed in KARD). When the server is slow, its client API turns some requests away with 429 and Retry-After: 1: the request was not run, ask again in a second. The web interface took that as a failure, so the delivery marks ✔ of some of your posts stayed hidden until the page was loaded again. KARD made the interface ask again. This release changes nothing there.

    2. Every response kept memory. SGIAN-DUBH stopped user media from passing through memory. Every other response still did: timelines, JSON, the interface's own files. A response's body was copied whole onto the handler task's secondary stack on its way to the socket, and gzip copied it twice more. GNAT keeps that space for the life of the task, and the 16 HTTP tasks live as long as the process. Now the body goes to the socket and to gzip in 64 KiB slices, through a buffer that is freed once the body is sent, and the interface's files are read the same way.

    Measured locally at 1 CPU with 16 parallel GETs of the 627 KB stylesheet every page loads:

    before after
    live heap, plain +29 MiB +0.7 MiB
    live heap, gzipped +11.9 MiB more +0.7 MiB

    3. The Stats page turned red at night. "Outbound failed, last hour" showed 92% in red on a quiet hour: 11 of the 12 deliveries had gone to one slow server, bologna.one. When every failure goes to the same host, the tile now stays yellow at most and names it, for example "11 of 12, all to bologna.one". Failures spread over several hosts can still turn it red.

    4. A timeout's log line named the wrong limit. A delivery has two limits: 8 seconds for the whole delivery, and 5 seconds for the first byte of the answer after the request has gone out. The log showed only the 8, while the 5 was the limit that ran out. Both are now logged.

    5. A message from someone new took seconds. To check a signature from an actor it had never seen, the server fetched the actor's key, then also its three collections (followers, following, outbox) just for the counts on the profile. All of that happened before the sending server got its answer. An outbox can take seconds to come back, and in production the first message from someone new took about 6 seconds. The key is now fetched alone, and the counts are fetched in the background afterwards. When the key is fetched again, the counts already known are kept.

    Measured locally:

    before after
    first contact, median 0.50 s 0.05 s
    40 new actors, 320 activities 9.2 s 4.4 s

    6. The certificate bundle was read for every request. Every outgoing HTTPS request read and parsed the whole certificate bundle again. It is now read once when the server starts and shared by every connection. If the bundle cannot be read, the server logs one ERROR and goes back to reading it for each request.

    7. A debug line was built with debug off. For every post sent out, the server built a log line that listed every recipient and every inbox, then threw it away when debug logging was off. It is now built only when debug logging is on.

    8. A peer's bad link was logged as our error. Links that a peer sends and that cannot be followed are logged as WARN, where they were ERROR: a // in the path, an at:// id, an encoded dot or slash. A link to an address that is not public stays an ERROR.

    9. The smoke test failed its timing checks at 1 CPU (being measured). Not a server bug, the test bench. On a single CPU the smoke's timing checks used to fail: stall, full lane, fan-out, and restart after a kill. The test's own client also gave up on a 429 instead of asking again. The first full smoke run on this release passed every check, timing ones included, with no 429 and no ERROR in the log. One run is not a frequency: the next runs measure how often these checks still fail, before any threshold is changed.

    Also fixed after review

    An independent review of these changes found no memory-safety problem. Its other findings are fixed here:

    • an actor's key fetched again and again, for example under a forged key id, neither wipes the actor's counts nor fills the queue;
    • an empty response no longer allocates memory;
    • three failures that left no trace now log an ERROR.
    Downloads
  • 1.4.31-kard 888abfcdb7

    loweel released this 2026-11-23 09:22:53 +01:00 | 26 commits to master since this release

    Stabbypossum 1.4.31 "KARD" fixes the web interface when the server is busy. The server is unchanged.

    Install

    Run the image from Docker Hub: loweel/stabbypossum.

    This release ships no binaries. The source archive is attached below.

    What changed

    Delivery marks no longer go missing. While the server is slow, its congestion window for the client API answers some requests with 429 and Retry-After: 1: the request was not run, ask again in a second. The web interface took that as a failure. A page of your own posts asks for every post's delivery mark at once, so some of those requests were refused, and their ✔ stayed hidden until the page was loaded again. In production this happened 13 times in three days, and twice to the instance information read at start-up.

    A read refused with 429 is now asked again after the time the server gives, up to three times. A post, a like or any other change is never sent twice.

    Downloads
  • 1.4.31-sgian-dubh 87016efc97

    loweel released this 2026-11-23 08:17:57 +01:00 | 27 commits to master since this release

    Stabbypossum 1.4.31 "SGIAN-DUBH" fixes the memory that serving media kept.

    Install

    Run the image from Docker Hub: loweel/stabbypossum.

    This release ships no binaries. The source archive is attached below.

    What changed

    Serving a user's media no longer keeps memory. A GET of an image or a video under /<user>/s/, and of a cached remote emoji, read the whole file into memory and copied it several times before it reached the socket. Every HTTP task kept the space of the largest file it had served, for as long as the process lived. In production this showed as steps in the Memory chart that never came down: on 23 November two clients fetched about fifty media in parallel, and the live heap went from 64.8 to 84.0 MiB and stayed there.

    The file is now handed to libmicrohttpd, which sends it from disk; its bytes never pass through the server's memory. Linux's page cache already keeps the files that are read often.

    Measured locally at 1 CPU, 16 parallel GETs of 4 MiB videos, four rounds:

    before after
    live heap after the first round +192 MiB +0.7 MiB
    time per round 2.0 s 0.3 s

    Tests: the smoke's --media-burst N runs N such rounds and reports the live heap after each.

    Downloads
  • 1.4.31-rondel ef34cd0d2e

    loweel released this 2026-11-22 22:17:42 +01:00 | 28 commits to master since this release

    Stabbypossum 1.4.31 "RONDEL" fixes the web interface. The server is unchanged.

    Install

    Run the image from Docker Hub: loweel/stabbypossum.

    This release ships no binaries. The source archive is attached below.

    What changed

    A successful subscription showed as an error. On the Feeds page, after the server had saved a new feed, the page called a function that no longer exists. It was removed when the People page was split into Following, Followers, Feeds and Follow requests. The resulting error showed as a red toast, so a subscription that had worked looked as if it had failed. The page now redraws the list with the new feed in it and keeps the "Feed subscribed" message.

    Following someone from the search showed the same false error. The page now stays where it is and shows "Following @…".

    Errors now say why. When the server refuses a request, the interface shows the reason the server gives, for example feed-has-no-entries (422). Before, it showed only 422 Unprocessable Entity. This applies to every error that goes through the interface's API calls.

    Downloads