Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Plamenu handbook

Plamenu is an experimental federated social server with a web interface, communities, music, video and shared apps. Use this handbook with the matching server release. Experimental releases can change configuration and database formats; operators need independent, tested backups.

I want to…Start here
Find people, write posts or manage my accountUsing Plamenu
Listen, upload music or manage a private libraryMusic
Watch, publish or broadcast videoVideo
Moderate a community or run the instanceAdministration
Install Plamenu on a host or container platformInstallation
Back up, upgrade or troubleshoot a running serverOperator guide
Connect a client or integrate another serverClients and APIs, federation

Features available to you depend on your server’s policy and your role. Contact your server’s administrators for account access and moderation; use project support for software bugs. Read limitations before choosing a deployment or client.

The handbook describes shipped behavior, not planned features or a certification that every supported workflow has passed release testing.

Using Plamenu

Open your server’s HTTPS website. Register if registration is enabled, or use an invitation or account supplied by its administrators. Complete any email confirmation or approval requested on screen, then sign in.

Set your display name, biography, avatar, language and time zone in Settings. Your handle identifies your account across servers. To follow someone elsewhere, search for their full @name@server.example handle or public profile URL.

TaskWhere to go
Read accounts you followHome; Lists for selected followed accounts
Browse local and federated public postsLive feeds
Find people, communities, posts and videosSearch and Discover
Write, reply, quote, schedule or editPosting
Join discussions or organize an eventGroups and events
Listen, upload, share or organize audioMusic
Watch, publish or broadcastVideo, live broadcasting
Run an app with other peopleApps and Webxdc
Review activity and control deliveryNotifications
Change privacy, security, filters or export dataAccount and safety

Post and profile menus provide follow, reply, quote, boost, favourite, bookmark, mute, block and report actions where permitted. Bookmarks keep posts for you; favourites also send a social interaction to the author. Private mentions are messages addressed to accounts; they are not end-to-end encrypted.

Many pages work with ordinary links and forms when JavaScript is disabled. Enhanced players, browser broadcasting, live updates and interactive Webxdc apps need scripts. Keyboard and media alternatives are described in accessibility.

You can also use a Mastodon-compatible client. A client may expose fewer features than the website. Use the hosting domain for sign-in even if your handle uses a different domain.

Search and Discover

Use Search for people, posts and hashtags already known to your server. Paste a full public post URL or account handle to resolve something remote. A missing result can mean the source is unavailable, access is restricted, or your server blocks it; search is not a complete index of the fediverse.

Discover offers People, Posts, Communities, Videos, Servers and Topics from sources configured by your administrators. Choose a source, search term, language or sort order to narrow the catalogue. Open profile, Open post and Open video resolve the selected item for use in Plamenu; View original visits its source website. Opening a result does not follow its author.

New to you uses your discovery viewing history. Use Include seen items or Reset viewing history when you want to revisit suggestions. This history is separate from video watch history and music listening history. Hide dismisses a suggestion; use account blocking for a broader safety decision. Next page remains available without automatic loading.

Explore connections follows authors, topics and public curated collections already represented in the catalogue. Save up to 20 topics for later. Saved topics are private and do not change your account follows.

A normal catalogue search runs on this server. Search wider asks you to select remote servers before sending them your query. Those servers can see the query and this instance’s request. Results can be incomplete or unavailable; this does not grant access to restricted posts or private profiles.

Paused updates, exhausted request allowance and empty catalogues are different states. The page explains the current state. Operators can adjust acquisition in Discovery administration.

For a specific music site’s catalogue or podcast website, use the search/link box in Music. For videos already resolved on your instance, use the video library. These views serve different catalogues.

Posting

Ordinary posts allow 5,000 characters by default; your server can set a different limit. Long-form articles have a separate default limit of 50,000 characters.

Open New post to write a post, or use Reply or Quote on an existing post. The toolbar has controls for attachments, polls, scheduling, content warnings, emoji, visibility, quote permissions, text format, and language. Use Preview to check formatting before publishing.

Text and media

Choose plain text, Markdown, or HTML from the text-format menu. HTML is sanitized. Attach images, audio, or video and add a short description when the attachment conveys information. For an image that only adds visual decoration or repeats the nearby post text, select This image doesn’t add information to the post instead. Upload limits are set by your server; video processing may take time. Use the sensitive-media checkbox and content-warning field when appropriate.

For audio, add a transcript including dialogue and meaningful sounds. For video, add a transcript/media alternative that also describes important visual information, and attach timed captions as a UTF-8 WebVTT (.vtt) file when the video contains speech or other meaningful audio. Captions should identify speakers when needed and include meaningful non-speech sound.

For video, choose This video includes audio description only when the uploaded video actually contains it. If ordinary dialogue and narration already convey every important visual, choose the separate soundtrack option. A transcript does not replace audio description for prerecorded synchronized video at WCAG Level AA.

Audio, video and live broadcasts

New post offers Audio, Video and Go live alongside ordinary posts. Choose Audio for a titled recording: select one audio file, listen to the attached preview, and add a description. Artist, album and other catalogue fields are under More music details (optional). Your audience and the usual post interactions apply. Music also supports private uploads, albums, playlists and a listening queue.

Choose Video to open the video upload and review flow. Your video stays a private draft until you publish it. Videos in the main navigation opens the watch catalogue; upload and live creation are available there too. Local and remote videos use the same playback controls. Thumbnail previews appear when available, and native controls remain available without scripts.

Choose Go live, create a channel if this is your first broadcast, and give the broadcast a title and audience. Continue to camera setup opens camera and screen controls immediately. Granting capture permission only opens a private preview. Check it, then press Go live to start transmitting. Cancel preview releases the camera and microphone without going live. Keep the page open while broadcasting and use Stop broadcasting to finish. Streaming apps use External encoder and stream key; those credentials are not needed for broadcasting from the browser. Screen capture and browser recording availability depend on your browser and device.

For the complete workflows, see video publishing and live broadcasting.

Visibility

VisibilityAccess
PublicPublicly readable and eligible for public feeds
UnlistedPublicly readable, omitted from public feeds
Followers onlyAccepted followers and addressed recipients
Private mentionMentioned accounts
Local onlySigned-in members of this server; not federated

Private mentions are not end-to-end encrypted. Operators of servers storing a post can access it. Edits and deletion requests may reach remote servers late, and cannot remove independent copies.

Who can quote offers Anyone, Followers or Only me. This controls Plamenu’s consent-aware quote workflow; it cannot stop independent copying or force every remote server to honor the policy. Visibility and quoting permission are separate decisions.

Polls, scheduling, and edits

The poll control sets choices, duration, and whether multiple choices are allowed. The schedule control accepts a publication time in your configured time zone. Notes and articles can be scheduled; group posts and events cannot. Manage queued posts in Settings → Scheduled posts. Failed publication stays queued for retry. If a post remains overdue, contact your server’s operator or cancel it from that page.

Use a post’s menu to edit it. You can change its text, content warning, language, and attachment descriptions, or remove attachments. The edit form keeps the original visibility and does not add new attachments or polls.

The disclosure beside the post type selector explains how other servers may display that type. Replies use Notes.

Articles

Choose Article below New post, then enter a title and body. The server has a separate character limit for articles. Use Schedule for later to queue an article. Open the disclosure beside the type selector for details of how other servers display it.

Events

Choose Event below New post, then enter an event name, description, and start time. The time zone defaults to your account preference; both dates use the selected zone. Zone labels include the UTC offset for the start date. Optional fields include an end time, venue, online attendance, capacity, and tentative status. Who can attend selects open attendance, approval, invitation, or an external attendance link.

Events federate as ActivityPub Event objects. Remote software may display only a link and may not offer RSVP controls. See organizing events for participation and cancellation.

Groups

Open a group and use its post action to start a thread. The group composer has a title and an optional link; a link requires a title. Group posts are public and subject to the group’s posting, membership, and moderation rules. A titled ordinary group post is sent as an ActivityPub Page.

Personal custom emoji

Settings → Custom emoji manages your collection. Upload PNG, GIF, or WebP images, or choose Borrow custom emojis from a post or profile’s menu. Your emoji appear alongside server-wide emoji in composers and reaction pickers. They work in post bodies, content warnings, polls, profiles, and reactions.

Your role and the server’s limits control uploads and borrowing. You can rename and recategorize original uploads. To replace a borrowed emoji, delete it and borrow again. Removing upload permission still allows management of existing emoji.

Groups and events

Join a discussion

Open Groups, a community link, or a community found through Discover. Follow or request membership using the controls on its page. Following a group does not grant moderation rights; the group’s posting rules still apply.

Create a thread from the group page. Threads have a title and can include an external link and body text. Replies, votes, reports and locks belong to that community’s discussion. A locked thread may remain readable while accepting no new replies. Remote groups also enforce their own policies.

Owners and moderators use the group’s management links for membership, moderation and reports. Instance-wide suspension and domain policy belong to instance administrators. Group-only moderators do not get unrestricted access to the administrative console. A video channel is a different kind of managed actor; see channels.

Organize an event

Choose the Event post type. Enter the title and description, start/end times, and a place or online meeting link. Check the time zone shown by the form, especially across daylight-saving changes. You can indicate capacity and a tentative event, and choose open attendance, approval, invitations or external registration. Events cannot use ordinary scheduled-post publication.

Publish the event and share its link. The event’s attendance controls let readers respond; approval and invitation modes require the organizer’s action. As organizer, use Attendees to review pending requests and accept or decline them. External registration happens at the linked service, under its rules.

If the event will not happen, use Cancel this event. The post stays visible with its cancellation and attendees are notified. Editing or cancelling a federated event propagates asynchronously; tell participants directly through your usual channels if an urgent change must reach everyone.

Plamenu event participation does not imply support for every event client’s calendar, ticketing or guest-registration workflow. Planned video broadcasts have their own calendar links.

Music

Open Music to search for songs, artists and albums known to your server, or paste a supported music-site, album or track link. Use Play to listen; saving or subscribing is optional. Remote availability and access can change. Live radio and Podcasts are available from the same workspace.

Upload and publish

Choose Upload audio, select a file and check its title, artist and album. Save privately keeps it in My music. Publish now also makes it public and shares an Audio post. Open the resulting track to edit metadata, artwork, access and publication. Publishing directly through the composer adds ordinary post description, warning and interaction controls; Audio posts cannot currently be scheduled.

Uploaded tracks are stored independently of posts. Withdraw Audio publication keeps the stored audio; publishing again creates a new post. Making a stored track private/local or deleting it retracts its active publication. Ordinary Audio posts use ordinary post visibility and attachment URLs instead.

Organize your library

My music combines your uploads, saved references and music favourites. Saving remote music keeps a reference, not an owned copy or permanent access. Saved references lets you remove references that have become unavailable. A music favourite is distinct from favouriting the social post. Saving another local member’s track can notify its owner under their music notification policy.

Create artists and albums from Artists, or edit the metadata found in uploaded tags. Track details support notes, additional artist credits, tags, genre, year and track/disc order. Choose album assigns an existing album without changing the recording. Artists, albums, tracks and collections can have artwork. Reload a stale edit form rather than overwriting a newer edit.

Libraries and playlists hold ordered references to tracks, Audio posts and podcast episodes. Add a track accepts its link. Libraries deduplicate entries; playlists permit repeats. Move or remove an entry without deleting its source. Use Manage tags to organize collections; tag and genre links open related music. Album/artist deletion has separate options for retaining or removing tracks: review the confirmation before a recursive deletion.

Access and sharing

Stored music can be public, limited to signed-in local members, or private with explicit member grants. A collection’s visibility does not automatically expose its tracks. Enable Also share my tracks only when you want the album or collection’s readers to access your contained tracks, including private ones. Other people’s tracks and restricted Audio posts retain their own permissions.

Create share link produces a revocable link, with optional expiry. Copy it when shown; anyone holding it can use the granted access. Artist links share the artist’s details, not every private track. Albums and collections include your private tracks only with Also share my tracks enabled. Use Sharing to revoke links and member grants. Revocation cannot recall downloaded copies or erase old operator backups.

Public resources provide Embed music and RSS/Atom feeds where supported. Embeds use public access even if you are signed in; a private share link is not permission to put that music in a public widget. Collection share previews offer separate capability-bearing feed URLs: protect those like the share link itself.

Player, queues and listening history

The player stays in the current tab. Browse music while listening opens a browsing window; Open in music player offers a separate player. Use Queue options to append/replace selections, and Advanced playback for saved players, output destinations and precise seeking.

Queues support ordering, repeats, shuffle and saved position. Reloading does not start sound automatically. Removing a queue entry does not delete music; a queue never bypasses current sharing permissions. Forget this player removes that saved queue.

Listening preferences controls private listening history. Actual playback counts after the configured threshold; metadata fetches, seeks and downloads do not. Automatic reports need JavaScript. Listening statistics shows your recorded plays by track, artist, album, genre, date and local time. Erasing history clears these statistics; turning it off cancels pending sessions. Music listening history and video watch history are separate settings.

Subscriptions, podcasts and feeds

Music subscriptions follows updates to a music library or track. It is separate from following the owner’s account and does not unlock private music. A remote subscription can remain pending until accepted.

In Podcasts, Follow a podcast accepts a feed or a website advertising one. Play episodes directly, add them to a queue/collection, or mark them played. Podcast tools contains refresh and bulk controls. Manage subscriptions with OPML imports/exports subscriptions; review failed-feed results. Unfollowing removes your subscription without deleting the shared catalogue. Failed refreshes retain the last usable information and show an error.

Library, playlist, artist-release, tag and genre pages offer feed links. A feed reader still needs appropriate access to private resources. A feed request does not count as a listen.

Downloads, formats and client apps

Playback formats prepares MP3, Ogg Vorbis, FLAC, AAC or Opus copies within server/role limits. Cold streaming may not be seekable until preparation finishes. A conversion does not change ownership or access to the original.

Download ZIP prepares selected accessible audio in the background. Open Downloads for progress, per-item failures, cancellation and the expiry time; review missing items before treating an archive as complete. Downloading is not a server backup.

In Music clients, create a dedicated password for a Subsonic/OpenSubsonic app. Use your server address and local username. Read-only credentials browse/play; management credentials also allow supported library changes and listening reports. Copy the password once, set expiry as needed, and revoke it here. Now-playing sharing requires explicit opt-in.

Live radio and server streams

A saved Radio station stores station rules/settings; it does not by itself start a broadcast. Live radio → Create stream creates a server-hosted output. Choose its format, bitrate, stream address and public/private visibility, then use Manage stream queue and Play. Playback continues when you close the page; use Pause, Stop or Disable to stop it.

A private listener link is shown once. Replace listener token invalidates the old link and disconnects existing listeners. A public stream rebroadcasts the queued audio to its listeners, using the owner’s source access. Choose a private stream and protect its listener link when the output should not be public. Broadcast only material you are entitled to share.

Mounted folders

Local folders shows libraries assigned by the operator. Scanning indexes originals in place; Files to include controls recursion, extensions and exclusions. Watching detects changes. Removing a track from Plamenu leaves its source file; Reindex this source file can restore its index. Disconnecting a folder also preserves originals.

Rename, tag writeback and permanent source deletion are separate controls, available only when the operator permits them. Edit track details before tag writeback; explicit deletion removes the actual file. Customized metadata is preserved across scans. If recovery reports a changed mount or file, ask the operator to restore it; cached playback files are not substitutes for originals.

See account safety for account deletion and exports, media operations for quotas and mounted storage, and the music API for integration.

Watch and publish video

Videos offers Latest, Followed channels, search, playlists and viewing settings. Following a channel subscribes to that channel, separately from its owner’s personal posts. Anonymous browsing depends on server policy.

Watch privately

Start playback explicitly. Use captions, chapters, written alternatives and quality controls where available. A standard MP4 fallback supports browsers without JavaScript; older or remote media may offer different formats.

Eligible players use peer-assisted delivery by default. The tracker and other participants can learn your network address. Before playback, open … → Video settings and turn off Share video with other viewers for server-only delivery. Save the choice in Video viewing settings to use it across your signed-in browsers. No-JavaScript playback is server-only. Public embed URLs can use ?p2p=0; a creator’s embed does not override your explicit opt-out.

Watch history is off by default and separate from delivery analytics. Enable Save my watch history for private resume positions. JavaScript saves progress while watching; without it, use Saved playback position. Resume is explicit, not automatic playback. History retains up to 1,000 positions for 90 days. Forget one video, clear history, or disable it to erase all positions. Replacement/trim invalidates positions for changed footage; metadata edits do not.

Publish a recorded film

  1. Create or accept access to a channel.
  2. In Video studio → Upload a video, select it and choose your source file. The default source limit is 2 GiB; your operator may set another limit.
  3. Wait for processing. The draft and preview are private. A failed encode retains the source for Retry processing.
  4. Choose Review your video. Check playback, title, description, audience, language, warning, category, licence, poster, captions and chapters. Add accessible alternatives.
  5. Publish now, or choose a publication time at least five minutes ahead in the displayed time zone. Manage reservations in Settings → Scheduled posts.

Native Video publication supports public/unlisted audiences; it is not a private video-sharing service. Raw uploaded sources are never offered as public downloads. Playback and explicit MP4 offers use processed outputs. Unpublished drafts expire seven days after creation; retry does not extend that.

With JavaScript, uploads can resume by selecting the same file in the same browser. Without scripts, cancel an interrupted draft and upload again. Use Drafts to find processing failures or cancel unwanted work. Storage may remain charged until background deletion finishes.

Import instead of uploading

Import a video copies a public HTTPS file or supported recorded ActivityPub/PeerTube Video into a private draft. Confirm your right to copy it, then review and publish as above. This creates a new Video under your channel; it does not inherit the original’s comments, subscribers or identity. Arbitrary website scraping, credentials/private sources and live imports are unsupported.

Scheduled sources periodically checks a public channel or playlist for new recorded videos. Enable it deliberately, then review each resulting private draft: it never automatically publishes. Pause stops new discovery; cancel already queued drafts separately. Removing a source keeps copies but forgets its deduplication history, so re-adding it can copy older entries again.

Edit a publication

Open its management overview for metadata, captions, chapters and poster edits. For films with a retained native source, Edit the published film supports:

  • Reprocess with current settings while retaining the selected source window.
  • Trim using times relative to the currently published film. Review retimed captions/chapters and supply fresh written alternatives where cleared.
  • Replace using your own ready private draft in the same channel.

Prepare and review a private candidate, then explicitly apply it. The old film stays playable until application succeeds. The post URL, author, channel, comments and playlist references stay intact. A stale review or failed process cannot silently replace the film. Already delivered copies cannot be recalled.

Playlists, downloads and embeds

Create a channel playlist through Video studio → Playlists. Add native or remote Video links; this references their media without copying it. Repeats are allowed. Set optional whole-second start/end clips, reorder entries or remove them. Previous/Next links do not force automatic navigation.

Public playlists are discoverable; unlisted ones require a link; private ones are restricted to authorized channel creators. A playlist never grants access to an otherwise restricted video. Deleting one keeps the videos. Importing a PeerTube playlist retains its remote ownership; create your own to curate it.

Creators use Downloads and embeds to control explicit offers. Viewers can copy embed code in Video settings, or download an eligible MP4. These are not DRM controls: disabling an offer cannot prevent saving publicly played bytes. Active live broadcasts have no completed MP4 download yet.

See live broadcasting for camera/encoder workflows and client APIs for programmatic editing and history.

Video channels and collaboration

A video channel has a stable address, profile and subscribers. Create one in Video studio → Create a video channel. Channels lists your channels and pending invitations. A channel is separate from a discussion group.

RolePermissions
OwnerAll channel work, invitations, ownership transfer and deletion
EditorChannel profile and all its published videos
PublisherUpload and manage their own channel publications

Invitations require acceptance; changing a role requires new acceptance. Revocation takes effect on current work as well as later edits. Collaborators’ private drafts do not become shared drafts. Profile Controllers identifies accepted roles; pending invitations remain private.

Owners/editors can set avatar/header descriptions, manage publications and review channel follow requests. Relevant channel notifications link to their review forms, subject to the recipient’s preferences and existing content access. Following a channel grants no editing rights.

Transfer or delete

The owner chooses Transfer ownership, names a local recipient, and sends an invitation. The recipient accepts by entering the immutable channel address. Finish/cancel private drafts, schedules, broadcasts and recording finalization first; retire recurring broadcasts before handoff. An unsafe transfer is refused.

Transfer keeps the channel address, subscribers and publication identities, but revokes existing collaborators/invitations and completed broadcast credentials. The old owner gets no implicit role. The new owner can reinvite people. Original authorship is preserved: deleting an author’s account still removes that author’s videos, including those in a transferred channel.

Delete channel requires its address and permanently retracts publications, removes drafts/schedules and tombstones the channel. This includes collaborators’ channel videos; their accounts and other channels are unaffected. Storage cleanup runs in the background. The address cannot be reused.

Delivery analytics

Delivery analytics is off until the owner enables it. Owners and editors can read daily UTC response/byte totals; only the owner changes collection, retention or erases them. Retention is 1–90 days, default 30. Disabling collection erases retained totals; Erase delivery totals keeps the chosen policy.

These are best-effort counts of body bytes emitted by the server, not views, unique people, watch time, billing traffic or P2P statistics. No viewer identities are stored in these aggregates. Retries and bots can contribute; crashes can undercount. Operators can disable collection server-wide. Private watch history is a separate member setting.

Live broadcasting

In Video studio → Create live broadcast, select a channel, title, description, audience, category/licence and content warning. Choose the offered DVR/latency and recording options. Keep the broadcast management page private: encoder credentials allow someone to transmit as your broadcast.

Camera or screen

Open the browser broadcast controls on a supported HTTPS browser, grant the needed device permissions and preview your camera/screen. A preview alone does not transmit. Choose Go live when ready. Cancel preview releases capture; Stop broadcasting ends transmission. Browser capture requires JavaScript and support for the selected device/format.

External encoder

Copy the server URL and stream key from the management page into your encoder. Use the advertised RTMP, RTMPS or HTTPS-FLV option supported by your operator and encoder. Do not guess a public ingest address from the website URL: the operator must configure network reachability and TLS. Treat stream keys as passwords; rotate exposed credentials using the broadcast controls.

Check the waiting/player page from another browser, start the encoder, then verify picture, sound, captions/alternatives and the chosen audience. Stop the encoder deliberately when finished and wait for any recording finalization. Channel permission changes or suspension can terminate broadcasting authority.

Announcements and recordings

Planned starts announce a time; they do not start your camera or encoder. The waiting/management page offers calendar subscription and reminder links. Subscribe for later changes; a one-time calendar import may stay unchanged. The calendar app delivers reminders. The channel calendar includes public broadcasts; an unlisted broadcast’s schedule requires its direct link.

A one-shot broadcast keeps its publication for the recording. A reusable broadcast can create separate recordings per session. Check each recording’s warning, licence and alternatives: parent settings can change after it was prepared. Waiting reusable broadcasts must be retired before a channel transfer.

DVR availability and latency depend on the chosen mode, source and server resources. On interruption, reload the broadcast’s state before reconnecting; a restored server does not mean a previous encoder is still on air. Operators should inspect live recovery and storage. Peer-assisted playback has the same privacy choice as recorded video. See known limits for qualification gaps.

Apps and Webxdc

Apps hosts shared Webxdc sessions: small packaged applications whose participants exchange updates. A saved app and a running session are separate.

  1. Open Apps → Create session.
  2. Choose a personal or instance app, or upload a .xdc package.
  3. Give the session a name and description. Under Advanced settings, choose whether anyone with the invitation link can join or you approve requests.
  4. Create the session, open it and share its invitation link with participants.

The session page provides join, leave and owner management controls. Some sessions allow guests; use only the access offered by that session. Membership controls collaboration, not end-to-end encryption or secrecy of the package. The app needs JavaScript; normal session management uses HTML forms.

Keep reusable apps

Your app library lets you save packages and upload later versions. Choose a saved app when starting another session. Each session pins the version it started with: updating or removing a library entry does not upgrade or delete existing sessions. Removing a session and removing an app are separate actions.

External catalogues are selected by administrators. Browsing a catalogue does not install anything. Importing an entry validates and saves its package; canonical metadata comes from that package. Catalogue refreshes and package imports are deliberate actions, not automatic software updates.

Apps run on isolated Webxdc origins. Your server needs working DNS and TLS for those origins; a blank or unreachable app can be an installation problem. Use packages you trust, and report suspicious apps to your administrators. Library and storage limits may prevent new uploads or updates; removing the last reference to a package allows its storage to be reclaimed.

Administrators: see app moderation and quotas. Integrators: see catalogue and version semantics and the session protocol.

Notifications and mentions

Notifications collects activity such as mentions, follows, reactions and requests. Use Manage read state and notifications to mark individual items read/unread, delete them or mark all read. Opening the inbox does not mark all its contents read. Check notification requests as well as the main inbox.

Notification delivery controls in-app, email and daily digest delivery for each type. Email needs a confirmed address and working mail on your server; email channels are off until you enable them. Email summaries link to a private email-notifications inbox, including types you disabled in the in-app inbox. Browser push also depends on browser permission and your push preferences.

The Mentions archive includes local, federated and website mentions. Filter by source or non-public mentions. Clearing notifications does not erase this archive; deleted, retracted and inaccessible content remains subject to access checks. Music resources also have Activities pages for discussion of that particular track, artist, album, collection or station.

Channel and group notifications identify the managed actor. Follow requests, collaboration invitations and ownership offers link to their review forms. An invitation grants no management access until accepted. A role in a channel never makes somebody else’s private reply readable.

If notifications are missing, check delivery preferences, requests, blocks and mutes, then email confirmation or browser permission. Live notifications is an optional interface setting; see its known navigation limitation.

Account settings and safety

Open Settings to change your profile, preferences, languages, privacy, notifications, filters, relationships, security, and data-transfer settings. Profile changes may take time to reach remote servers.

Privacy

Privacy & reach controls follower approval, default post visibility, profile discovery, search-engine indexing, and direct remote media loading. Requiring approval applies to new followers; review existing followers separately. Direct remote-media fallback is enabled by default when the server cannot cache a file. This exposes your browser’s IP address to the media host when the browser loads from it; turn Allow direct remote media off to keep media requests on your instance.

Profile, relationships and collections

Add profile metadata such as your website. A website linking back with rel="me" can earn a link-verification checkmark; that verifies the link, not a legal identity. Use Relationships for follows/followers and requests, Lists for selected followed accounts, and Featured hashtags for profile links.

Collections curates shareable sets of accounts. Inclusion requires the account’s discovery/featuring consent; pending invitations are not accepted members. The same page shows collections featuring you and lets you leave them. These account collections are separate from music collections and video playlists.

Live notifications

Live notifications are off by default. Enabling them in the built-in client can disrupt navigation context and scroll position; see Known issues.

Filters, mutes, blocks, and reports

Filters hide or warn on matching content in selected contexts. Muting removes an account’s activity from your view. Blocking restricts interaction with that account. Use Report in a post or profile menu to send a case to your server’s moderators. The form may offer to forward it to the remote server as well.

Sign-in security

Security offers TOTP, WebAuthn security keys, active sessions, and sign-in history. Store recovery codes somewhere you can access if you lose your usual factor. Review authorized applications and revoke access you no longer use. Contact your server’s operators if you cannot recover access.

Import, export, and migration

Import & export accepts CSV following, blocking, muting, domain-blocking, bookmark and list data. Choose Merge to add to existing data or Overwrite to replace the selected set. Review the import before confirming, then check Recent imports for successes and failed rows; completion can be partial.

A full account archive is a downloadable snapshot, not a server backup or an implemented historical-post import. Protect it as private data.

To move followers, first add the old account as an alias at the destination, then start migration from the old account. Other servers process the move asynchronously. Posts and all other account data do not move with followers.

Deletion

Automated deletion continuously removes old posts under your chosen age, exceptions and popularity thresholds. Review the policy before enabling it: deletions are permanent and federate to other servers.

Export anything you need before deleting an account. Plamenu queues local cleanup and remote deletion notices. Remote servers and independent archives may retain copies. Your username remains reserved. Stored music, queues, history and owned channels are also affected; transfer channels deliberately before retirement, and remember that your original videos are still deleted.

Identity proofs (experimental)

Settings → Identity proofs lets you publish an FEP-c390 statement linking your account to an Ed25519 key you own. Verified keys appear on profiles, with a link to the signed statements. A proof establishes control of a key; it does not establish a person’s legal identity or authorize account migration.

Copy the actor ID shown in settings. From the source checkout, create a key and sign a statement locally with uv:

uv run scripts/sign-identity-proof.py --generate --key identity.pem \
  --actor 'https://your-server.example/ap/accounts/your-account-id' > statement.json

Use your actual actor ID. Paste statement.json into settings and publish it. Keep identity.pem private and backed up. To sign for another account with the same key, run the command with its actor ID and omit --generate. Remove proof withdraws the statement and notifies connected peers.

Accessibility and media alternatives

Use the interface with ordinary links, labelled forms and keyboard controls. Many workflows remain available without JavaScript. Browser capture and interactive apps require it; the video and music guides explain their playback fallbacks. These features are not a claim of complete WCAG conformance.

When posting, describe meaningful images with alt text; mark an image decorative only when it conveys no information. For audio, provide a transcript. For video, provide both spoken/sound information and important visual information:

  • Visual description explains meaningful visuals and on-screen text.
  • Transcript / written alternative describes dialogue, sounds and visuals.
  • Caption languages accepts WebVTT tracks, one per language.
  • Chapters accepts a line such as 0:00 Introduction for each section.
  • Describe the poster as well as the film.

A soundtrack declaration says whether the existing audio contains audio description or already conveys the visuals. It does not generate narration. Review alternatives after replacing or trimming a film: captions can be retimed, but a written description may no longer match the selected footage.

Viewers can open ALT, written alternatives and Read captions as text, select caption languages and use chapter links. With scripts disabled, timestamp links open the native media at that position. Remote software may omit alternatives or discard extensions when forwarding them.

Report an accessibility problem with the page/action, browser, operating system, assistive technology, and expected versus actual result. Do not include private content or credentials. Maintainers track accessibility validation separately from these usage instructions.

Known limitations

Plamenu is experimental. Use a matching release’s documentation and test upgrades on restored data. There is no general production, capacity or WCAG conformance certification. A working feature or a passing focused test does not establish release-wide validation.

AreaLimitation and practical response
DeploymentOne serving process per database. Do not run a second web replica against it; optional processors are DB-less.
Identity and upgradesPublic/handle domains are permanent after federation. Forward migrations can prevent binary-only rollback; keep a consistent recovery set.
Encryption-secret rotationFederation-key rewrap does not migrate TOTP secrets. Do not rotate the shared secret on an enrolled installation without a migration plan; see key operations.
Private contentPrivate mentions are not end-to-end encrypted. Revocation cannot recall delivered copies or rewrite old backups.
ClientsMastodon compatibility does not expose every native music, video or app feature. The Lemmy adapter has explicit gaps.
Live notificationsThe optional web setting can disrupt navigation context/scroll restoration; it defaults off. Disable it if affected.
VideoNative publication is public/unlisted. Browser capture depends on device/browser support; third-party media may lack playable formats or alternatives.
Peer deliveryHTTP playback success does not establish P2P delivery. PeerTube live exchange and cold-origin-loss redundancy have qualification limits.
Live performancePrior qualification did not establish all decoded-latency/smoothness budgets, including the multi-broadcast workload. Do not advertise a guaranteed live latency or scale from those results.
AccessibilityAutomated checks do not replace human assistive-technology verification; no site-wide WCAG 2.2 AA claim is made.

Known qualification gaps remain open until the applicable tests pass on the revision being shipped. Historical timings and session transcripts belong to validation artifacts, not the operating manual. Maintainers use the release procedure and video verification guide to collect current evidence.

For an account problem, contact your instance’s administrators. For a software problem, include the exact version, action, expected/actual result and redacted logs using Getting help.

Install a new server

Download signed AMD64 or ARM64 archives from Releases, or use the multi-architecture OCI image. The release page includes checksums and signature-verification instructions. For local evaluation from source, use the development guide.

PathHostDeployment setup
Debian binaryA new or existing Linux serverLinux binary, systemd unit, host configuration, and Caddy
OCI imageExisting container infrastructureImage running as UID 10001, with configuration and storage requirements

Container examples cover Docker Compose, Incus, and Proxmox VE.

Requirements

You need a stable public domain, DNS control, ports 80 and 443, PostgreSQL, space for media and independent backups, and an SMTP relay if the server will send registration or password-reset mail. Webxdc also needs DNS for both webxdc.<social-domain> and *.webxdc.<social-domain>.

Choose domain and optional account_domain permanently before federation begins. If handles should use an apex domain while Plamenu runs on a subdomain, read Split-domain handles before installing.

After either installation path, create the first administrator, reboot once, rehearse a restore, and configure external checks for /ready and disk space before inviting members.

Install the binary on Debian

This is the reference deployment: Debian 13, the release binary, PostgreSQL 17 from Debian, Caddy, and systemd. Releases include AMD64 and ARM64 binaries. The static binaries can run on other Linux distributions of the same architecture; adapt the package names and service setup for your host.

The steps assume a fresh, dedicated server and an administrator with sudo. Run the commands section by section, replacing the example values for your server.

Prepare the host

sudo apt-get update
sudo apt-get install -y --no-install-recommends \
  postgresql caddy ffmpeg ca-certificates curl openssl
sudo adduser --system --group --home /var/lib/plamenu \
  --no-create-home plamenu
sudo -u postgres createuser plamenu
sudo -u postgres createdb --owner=plamenu plamenu

The operating-system user and PostgreSQL role have the same name. Debian’s default peer authentication therefore lets Plamenu use the local database socket without storing a database password or opening PostgreSQL to the network.

Install a release

Choose a version from Releases and follow its verification instructions before installing. Set PLAMENU_VERSION to that version without the v prefix (for example, export PLAMENU_VERSION=VERSION, replacing VERSION). An unset version fails before downloading; the commands select the host architecture:

# Set PLAMENU_VERSION to the selected verified release, without the v prefix.
version=${PLAMENU_VERSION:?Set PLAMENU_VERSION to the selected release first}
case "$(uname -m)" in
  x86_64) arch=amd64 ;;
  aarch64) arch=arm64 ;;
  *) echo 'Supported architectures: AMD64 and ARM64' >&2; exit 1 ;;
esac
archive="plamenu-$version-linux-$arch.tar.gz"
mkdir "plamenu-$version"
cd "plamenu-$version"
curl -fLO "https://codefloe.com/plamenu/plamenu/releases/download/v$version/$archive"
tar -xzf "$archive"

sudo install -m 0755 plamenu /usr/local/bin/plamenu
sudo install -m 0644 plamenu.service /etc/systemd/system/plamenu.service
sudo install -d -m 0750 -o root -g plamenu /etc/plamenu
sudo install -m 0640 -o root -g plamenu \
  plamenu.host.toml.example /etc/plamenu/plamenu.toml
sudo install -m 0644 Caddyfile.host.example /etc/caddy/Caddyfile

plamenu-VERSION-linux-ARCH.tar.gz contains one executable, the systemd unit, example Plamenu and Caddy configurations, and the license.

Configure the server

openssl rand -hex 32
sudoedit /etc/plamenu/plamenu.toml
sudoedit /etc/caddy/Caddyfile

In /etc/plamenu/plamenu.toml, replace social.example.com and the encryption secret. Keep the socket database URL and loopback bind for this single-host layout. Configure SMTP before enabling a mail-dependent account flow.

In /etc/caddy/Caddyfile, replace every social.example.com. Point the social domain, webxdc.<social-domain>, and *.webxdc.<social-domain> to the server. The configuration guide explains split-domain handles and why proxy trust must remain narrow.

Validate and start

# CLI commands initialize media storage before systemd creates StateDirectory.
sudo install -d -m 0750 -o plamenu -g plamenu \
  /var/lib/plamenu /var/lib/plamenu/media
sudo -u plamenu /usr/local/bin/plamenu \
  --config /etc/plamenu/plamenu.toml role list
sudo caddy validate --config /etc/caddy/Caddyfile
sudo systemctl daemon-reload
sudo systemctl enable --now postgresql plamenu caddy
# Debian may already have started Caddy with its packaged default config.
sudo systemctl reload caddy
curl -fsS http://127.0.0.1:8420/health
curl -fsS https://social.example.com/ready

/health checks that the process answers. /ready also checks PostgreSQL and worker-supervisor health. If the public check fails, inspect journalctl -u plamenu and use the troubleshooting guide.

Next, create the first administrator.

Run the OCI image

Each release publishes one OCI image tag containing linux/amd64 and linux/arm64. The release page links to the container package and gives the pull command and immutable digest. Set PLAMENU_VERSION to the selected release number without the v prefix. Docker selects the host’s architecture:

docker pull "codefloe.com/plamenu/plamenu:v${PLAMENU_VERSION:?Set PLAMENU_VERSION first}"

Private packages require docker login codefloe.com. Use the published image@sha256:… reference for deployments that must stay on that exact release. Local preparation also retains both tested images; see release preparation.

Runtime requirements

An OCI deployment must provide all of the following:

ConcernRequirement
ProcessThe image entrypoint runs plamenu --config /etc/plamenu/plamenu.toml serve as UID/GID 10001
ConfigurationRead-only file at /etc/plamenu/plamenu.toml, readable by UID 10001
MediaPersistent, writable storage at /var/lib/plamenu/media, owned by UID/GID 10001
ScratchWritable /tmp; size it for the source/output workload, not just the final file. See media capacity.
DatabaseA supported PostgreSQL database reachable from the container; do not publish PostgreSQL publicly
HTTPContainer port 8420 behind an HTTPS reverse proxy
Health/health for liveness and /ready for database-aware readiness
IdentityOne serving Plamenu process per database; permanent domain and account_domain
Proxy trusttrusted_proxies contains only the actual proxy addresses or subnet

The root filesystem can be read-only. Drop every Linux capability and set no-new-privileges when the runtime supports it. Plamenu shells out to the FFmpeg and FFprobe already present in the official image.

Pick a runtime

  • Docker Compose is the supplied all-in-one example and includes PostgreSQL and Caddy.
  • Incus runs the same image as a native Incus application container; the guide was exercised against a real Incus deployment.
  • Proxmox VE can import the same image through its native OCI support; check the support status of your installed Proxmox version.

Other OCI runtimes need the same process, storage, database, and proxy setup. This repository does not supply Kubernetes, Podman, or Nomad deployment recipes.

Docker Compose

The supplied Compose stack runs PostgreSQL, Plamenu, and Caddy. It requires Docker Engine, Compose, and a release image. Choose a version from Releases.

Prepare the deployment

Set PLAMENU_VERSION to the selected release number without the v prefix, then copy that release’s examples:

# Set PLAMENU_VERSION to the selected release, without the v prefix.
version=${PLAMENU_VERSION:?Set PLAMENU_VERSION to the selected release first}
git clone --branch "v$version" --depth 1 \
  https://codefloe.com/plamenu/plamenu.git
cd plamenu
cp deploy/.env.example deploy/.env
cp deploy/plamenu.toml.example deploy/plamenu.toml
chmod 600 deploy/.env deploy/plamenu.toml

Before starting:

  1. Put the release’s immutable image@sha256:… reference in deploy/.env.
  2. Replace the PostgreSQL password in .env and plamenu.toml with the same random value.
  3. Set the social and Webxdc domains.
  4. Set encryption_secret to openssl rand -hex 32 and escrow it separately from PostgreSQL and media backups.
  5. If 172.30.0.0/24 overlaps another network, change it in both files.
  6. Configure SMTP before enabling registration or password reset.

Validate and start

docker compose --env-file deploy/.env -f deploy/compose.yml config
docker compose --env-file deploy/.env -f deploy/compose.yml up -d
docker compose --env-file deploy/.env -f deploy/compose.yml ps
curl -fsS https://social.example.com/ready

All three services should become healthy and the public /ready request must succeed. Continue with the first administrator, using the OCI command shown there.

Incus

Use Incus 7.0 LTS or a newer supported release; it can consume OCI images as application containers. This recipe assumes an existing bridge and storage pool, an external PostgreSQL database, a fixed container address, and a reverse proxy managed outside the Plamenu container.

Choose the Plamenu image version from Releases.

The commands use default as the storage pool, 10.0.0.42 as the container address, and /root/plamenu.toml as the configuration file. Replace these values for your installation.

Prepare configuration and storage

Create /root/plamenu.toml on the Incus host from deploy/plamenu.toml.example. Use the database’s private address, bind 0.0.0.0:8420, and trust only the reverse proxy.

Create separate configuration and media volumes with the image’s UID/GID:

incus storage volume create default plamenu-config \
  initial.uid=10001 initial.gid=10001 initial.mode=0700
incus storage volume file push /root/plamenu.toml \
  default plamenu-config/plamenu.toml \
  --uid 10001 --gid 10001 --mode 0600
incus storage volume create default plamenu-media size=50GiB \
  initial.uid=10001 initial.gid=10001 initial.mode=0750

Create the application container

Replace REPLACE_WITH_RELEASE_DIGEST with the digest from the release assets, keeping the sha256: prefix:

incus remote add plamenu-registry https://codefloe.com --protocol=oci
incus init \
  "plamenu-registry:plamenu/plamenu@sha256:REPLACE_WITH_RELEASE_DIGEST" \
  plamenu \
  -c boot.autostart=true -c limits.cpu=2 -c limits.memory=2GiB \
  --device "eth0,ipv4.address=10.0.0.42"
incus config set plamenu oci.entrypoint \
  "/bin/sh -c 'until ip route | grep -q ^default; do sleep 1; done; exec plamenu --config /etc/plamenu/plamenu.toml serve'"
incus storage volume attach default plamenu-config \
  plamenu config /etc/plamenu
incus storage volume attach default plamenu-media \
  plamenu media /var/lib/plamenu/media
incus config device add plamenu tmp disk source=tmpfs: path=/tmp size=1GiB \
  initial.uid=10001 initial.gid=10001 initial.mode=1777
incus start plamenu
curl -fsS "http://10.0.0.42:8420/ready"

The route wait is intentional: an Incus application process can start before its default network route appears. Keep port 8420 private and point the host or edge reverse proxy at it. The host proxy must also serve the wildcard Webxdc origin described in deploy/Caddyfile.

Back up the PostgreSQL database and both custom volumes as one recovery set. To upgrade, stop the instance and recreate its root from the new digest while reattaching the same configuration and media volumes. Do not delete the custom volumes with the old instance.

See the upstream Incus OCI remote guide and custom-volume documentation for registry authentication, clusters, and storage-specific behavior.

Proxmox VE

Proxmox VE 9.1 introduced OCI image imports and application containers as a technology preview. See the 9.1 release announcement and check the support status of your installed version. This recipe also needs a Plamenu image version from Releases.

Import and create

In the Proxmox web interface:

  1. Open a storage that accepts container templates and choose Pull from OCI registry.
  2. Pull the immutable codefloe.com/plamenu/plamenu@sha256:… reference from the release assets.
  3. Create an unprivileged container from that imported template. Keep its image entrypoint, allocate a fixed private address, and enable start at boot.
  4. Add persistent storage at /var/lib/plamenu/media and make it writable by UID/GID 10001. Put the secret-bearing configuration at /etc/plamenu/plamenu.toml, readable by that UID.
  5. Size writable /tmp for media processing, connect the container to a private PostgreSQL service, and reverse proxy private port 8420 over HTTPS.

If the first boot stops with Network unreachable, delay the image entrypoint until the container has a default route, as in the Incus guide. Proxmox exposes this as the container entrypoint setting; keep the final command exactly plamenu --config /etc/plamenu/plamenu.toml serve.

Apply every item in the OCI runtime requirements, including the wildcard Webxdc origin and narrow trusted_proxies value.

The import squashes OCI layers into the container root filesystem. An upgrade is therefore a stopped replacement, not an in-place layer swap: back up PostgreSQL and media, import the new digest, create a replacement container, reattach the preserved media/configuration, then verify /ready before retiring the old container. Keep the old recovery set until the new instance has passed a restore rehearsal.

The authoritative workflow is in the current Proxmox VE administration guide, under Container Images → Open Container Initiative (OCI) Images. Storage, network, backup, and cluster commands vary by Proxmox layout, so Plamenu does not prescribe volume IDs or bridge names.

Create the first administrator

The web registration flow cannot bootstrap its own administrator. Create the first local account with the CLI, then assign the built-in Owner role.

Replace alice, alice@example.com, and replace-with-a-unique-password with the owner’s username, email address, and password:

sudo -u plamenu /usr/local/bin/plamenu \
  --config /etc/plamenu/plamenu.toml account add alice \
  --email alice@example.com --password 'replace-with-a-unique-password'
sudo -u plamenu /usr/local/bin/plamenu \
  --config /etc/plamenu/plamenu.toml account set-role alice Owner

Use the same username in both commands. Role names are case-insensitive. To inspect the roles available in this release, run:

sudo -u plamenu /usr/local/bin/plamenu \
  --config /etc/plamenu/plamenu.toml role list

For the Compose deployment, run these commands from the deployment checkout:

docker compose --env-file deploy/.env -f deploy/compose.yml exec plamenu \
  plamenu --config /etc/plamenu/plamenu.toml account add alice \
  --email alice@example.com --password 'replace-with-a-unique-password'
docker compose --env-file deploy/.env -f deploy/compose.yml exec plamenu \
  plamenu --config /etc/plamenu/plamenu.toml account set-role alice Owner

On another OCI runtime, execute the same two plamenu --config … commands as UID 10001 in the running application container.

Open the configured HTTPS domain and sign in. The Admin link should now be available in the main navigation. Use it to set the server name and description, registration policy, server rules, moderation defaults, retention, and mail behavior before inviting members.

Do day-to-day browsing from a separate ordinary account when practical. Keep the owner account protected with a unique password, two-factor authentication, and a recovery path tested by another authorized operator.

All other CLI commands and current flags are in the generated command-line reference.

Operate a server

For initial setup, follow installation and create the first administrator.

TaskGuide
Set domains, database, storage, mail, and proxy settingsConfiguration
Manage registration, accounts, reports, and server policyAdministration
Manage discovery sources and historyDiscovery
Control storage, processing and mounted musicMedia operations
Change the running versionUpgrading
Preserve and recover dataBackup and restore
Watch readiness, resources, and deliveryMonitoring
Diagnose failuresTroubleshooting

Responsibility and first-day checks

Instance administrators manage accounts, reports, rules and policy through the web console. Hosting operators manage the executable/container, database, filesystem, proxy, network and secrets. One person may do both; a moderator role does not grant host access.

Before inviting members, verify public HTTPS readiness, owner and ordinary sign-in, password-reset mail, a post/upload, remote account resolution and a restore rehearsal. If enabling music, video or apps, exercise their actual upload/playback or app-launch path too: a healthy home page does not test media processing, Webxdc DNS/TLS or encoder reachability.

Keep alerts for readiness, free disk space, queued failures and backup age; review reports and failed jobs regularly. Record the exact installed version and compare release notes before changing it.

Run one serving process per database. Keep the public and handle domains unchanged after federation begins. Back up PostgreSQL and media together while writes are stopped, and preserve the matching encryption secret separately.

Specialized guides cover background queues, federation keys, remote profile history, and Tor/I2P routing.

Configuration

Plamenu reads deployment settings from a TOML file supplied with --config. The reference binary and OCI deployments both use /etc/plamenu/plamenu.toml. Generate the fully commented template for the exact release with:

plamenu --config plamenu.toml config generate

Use the host or OCI example as a starting point. The configuration tests parse both files.

Settings that need an early decision

domain
Permanent HTTPS host used in ActivityPub actor and object identifiers.
account_domain
Optional permanent handle domain. It must equal domain or be a parent of it. Omitting it uses domain.
database_url
PostgreSQL connection string. The Debian host example uses local peer authentication and stores no password. The Compose example’s password must match POSTGRES_PASSWORD in deploy/.env.
encryption_secret and encryption_secret_version
Root used to encrypt federation private keys and TOTP secrets. Generate a strong independent value, restrict file access, and escrow it outside database and media backups. Follow the key runbook to rotate it; do not simply replace the value. That guide documents the current TOTP migration limitation.
trusted_proxies
Exact proxy addresses or tight subnets whose forwarding headers are trusted. A broad private network lets unrelated machines forge the client address used by security logs, blocking, and rate limits.
media_dir
Persistent local media root. It must be writable by Plamenu and included in coordinated backups.
video_analytics
Optional root-level boolean (default true) allowing privacy-preserving delivery analytics. Each channel still defaults to off until its owner opts in. Set false to stop collection server-wide on restart and remove retained aggregates in bounded maintenance. No viewer identifiers are stored. See Private creator delivery analytics.

Split-domain handles

To host at social.example.com while publishing alice@example.com, set both values before creating accounts:

domain = "social.example.com"
account_domain = "example.com"

The web server at example.com must preserve the complete request URI while redirecting WebFinger, host-meta, and NodeInfo discovery to the hosting domain:

example.com {
	redir /.well-known/webfinger* https://social.example.com{uri} permanent
	redir /.well-known/host-meta* https://social.example.com{uri} permanent
	redir /.well-known/nodeinfo* https://social.example.com{uri} permanent
}

Do not proxy the Plamenu API or sign-in pages through the account domain.

Mail

SMTP is optional for a closed CLI-created installation, but registration, confirmation, password reset, and other mail-dependent workflows need it. Configure the relay, restart Plamenu, and test delivery before allowing those workflows. Keep relay credentials out of version control and limit the sender’s permissions at the provider.

Optional services

Section or keyConfigure when…
[translation]Members should translate posts via DeepL, LibreTranslate or an OpenAI-compatible service. Choose its endpoint/model/languages; content is sent to that provider.
[notifications]Change seen-notification retention (default 90 days) and UTC purge/digest hours (03:00/08:00). Unseen notifications are preserved; mail delivery can repeat after a crash.
[federation]Route guarded outbound federation through a proxy or hidden-service transport; see Tor/I2P.
conversation_containersOpt into hosting experimental private conversation containers. Default is off.
update_check_urlPoll a selected JSON release feed for update notices. This does not automatically install a release.
csp_reportingCollect CSP reports. They may contain sensitive URLs; plan log access/retention.

The generated template contains accepted fields and defaults. Unknown fields are rejected. Keep provider credentials outside version control. Do not assume federation proxy settings also route translation services or webhooks.

Native video storage and processing

[native_video] defaults include a 2 GiB source ceiling, 50 GiB per account, 1 TiB global storage, 8 GiB pending storage, 32 unfinished drafts, two processing slots and a 1 GiB disk floor. Processing can reserve much more than the source: it must admit retained originals, output qualities and scratch before work starts. Avoid tuning from the final film’s size alone.

For music, [music] controls storage, role/instance bitrate ceilings, renditions and download jobs. Its default retained-audio budgets are 50 GiB per account and 1 TiB overall. Read media operations before enabling paired storage, remote video copies, processors or mounted libraries.

Live ingest

live_ingest_bind controls plaintext RTMP, loopback by default. [live_rtmps] provides a separate TLS listener with certificate/key paths. Configure the actual encoder path, firewall and certificates before advertising it to members. The website’s HTTPS reverse proxy does not automatically expose an RTMP port. Keep stream credentials private. See live broadcasting.

Apply a change

Protect the TOML file so only administrators and the service account can read its secrets. Restart for file-based configuration changes, inspect startup logs and /ready, then test the affected workflow. UI-managed instance policy is stored in PostgreSQL and generally takes effect without a process restart.

Generate templates into a new file for comparison; do not overwrite a live configuration to pick up defaults. Keep permanent identity values and use the key procedure for secret rotation. Maintain an inventory of the release, image/binary checksum, proxy config, external mounts, mail/translation services and independent secret escrow.

Administration and moderation

The administration interface requires a role with the relevant permission. Assign each moderator their own account and role.

Before opening registration

  • Write clear server rules and a concise description of the community.
  • Choose closed, invite, approval, or open registration.
  • Test SMTP confirmation and password reset from an external mailbox.
  • Set upload, retention, and automated-deletion limits that fit available storage and moderation capacity.
  • Decide federation policy and document when the server limits or blocks a remote domain.
  • Create moderation roles with only the permissions each person needs.
  • Confirm members can find a private contact path for urgent reports.

Daily work

Command-line administration

One CLI command can run alongside one plamenu serve process against the same database. Use the same binary version and configuration as the running server; serialize scripts that invoke several CLI commands. A second concurrent CLI command fails immediately, including diagnostic commands that initialize the database before reading it. Commands with specific stopped-write requirements, such as a coordinated backup, still require that maintenance window.

During an upgrade, finish active CLI commands before replacing the server and use the new binary for subsequent administration. See writer-lock troubleshooting if a command is refused or the process exits after losing its database session.

Console administration

The console groups work into accounts, reports, appeals, groups, instance and domain policy, federation diagnostics, trends, invites, rules, announcements, custom emoji, webhooks, roles, terms, settings, and an audit log.

Record a useful reason for moderation actions. Review reports and appeals as distinct stages, and verify whether an object is local, cached from a remote server, or already unavailable before acting. Remote reports and actions cross organizational boundaries and may reveal information to another operator.

Personal custom emoji moderation

The Settings → Custom emoji group sets the per-user limit (0 means unlimited) and the largest accepted emoji file. Open an individual local account’s collection from that account’s moderation page; the custom emoji console provides seven-day trending views for federated origins, all locally hosted emoji, or personal-only emoji. Manage custom emoji holders can disable, rename, recategorize, remove, or promote a personal emoji. Promotion makes one copy instance-wide and retires equivalent personal copies from pickers and quotas while preserving historical references. A conflicting instance shortcode must be changed explicitly; an existing emoji is never overwritten.

The Upload and borrow personal custom emoji role permission is granted to the built-in User role by default and can be revoked independently. The shield menu action is named Import emojis server-wide; member borrowing remains in the ordinary … menu as Borrow custom emojis. Trend accounting covers the trailing seven days and ranks distinct users before total public, unlisted, and local post/reaction uses; private and direct activity is excluded.

Webxdc apps

Settings → Webxdc apps controls package uploads and federated package fetches. Defaults are 256 MiB per package, 512 MiB after expansion, and 256 MiB per individual file. Archive path, entry-count and compression-ratio checks still apply.

The Create Webxdc sessions member permission is enabled by default. Revoke it in Roles to prevent new hosted sessions; joining existing sessions remains available. It grants no staff access. Manage all Webxdc sessions separately grants the Administration → Webxdc console (enabled for Admin and Owner).

Defaults allow 1024 MiB per session, 1024 MiB across sessions created by one local account, and 10240 MiB across the server, including remote caches. An identical package shares one ZIP and one expanded copy across all sessions. Each account’s quota counts its distinct packages once, and the server quota counts each stored package once. Durable updates count separately per session; ephemeral packets are not stored. These are payload budgets, excluding database row/index overhead and browser-local storage. The session budget must cover the package and expanded limits combined; the account budget must cover one session.

The console lists hosted sessions and remote caches, including ended sessions, with package size, reference count and session-data size. Session details show how much deletion would release. End or delete a hosted session through the normal federated lifecycle, or remove a remote cache and leave for all local participants. Actions are audited. Shared files are released only after the last session and saved app version release them. Members can see their quota usage on the Apps page.

The console also manages instance apps and external catalogues. New imported instance apps start hidden for review; choose local-instance availability or public catalogue publication deliberately. Refreshing a catalogue does not install packages. Review new versions explicitly; existing sessions stay pinned to their original version. See app libraries.

Changes take effect without a restart. Existing apps remain available when limits are lowered; new uploads, fetches and durable updates must fit the new limits. The upload form shows the current package limit and reports rejected uploads without discarding the session name and description.

Federation policy

Account-level mute/block, domain moderation, and server-wide federation policy solve different problems. Prefer the narrowest effective control. Before a domain-wide action, assess effects on existing follows, cached content, pending deliveries, and members who rely on contacts there.

Use federation debug and the read-only plamenu federation commands to gather evidence. A remote timeout does not by itself prove a block; DNS, TLS, signature verification, authorized fetch, overloaded queues, and remote policy can produce similar symptoms.

Discovery and media work

Use Discovery administration for source policy, acquisition budgets and history retention. Use Media operations for storage, processing, streams and mounted-folder recovery.

High-risk actions

Account deletion, group deletion, key revocation, key-store contraction, and server self-destruct are intentionally consequential. Read their command help and specialized runbooks, take a current backup where recovery is possible, and verify the target before running the command. Self-destruct is irreversible from the federation’s perspective even though local data remains while notices drain.

Music worker jobs

/admin/music/jobs shows task counts and pending/active music work. Viewing needs view_devops; stopping a current run needs manage_settings. Select one or multiple conversions, ZIP exports, outputs or folder scans to stop their current run. Saved output/folder configuration remains, and watched folders may run again on their next scheduled scan. Each successful stop is audited. File recovery cannot be terminated halfway through repair; restore the original mount/files and let the recovery worker finish.

The scoped API is GET /api/v1/admin/music/jobs (admin:read) and POST /api/v1/admin/music/jobs/cancel (admin:write). Cancellation accepts one {kind,id} reference or {jobs:[{kind,id},...]} with at most 100 unique tasks. Completed or already-stopped work is not deleted by a batch cancellation.

Retire an instance

Announce the closure date, stop new registration and allow time for member exports and follower migration. Keep the identity domains and signing keys available while departure/deletion notices drain. A stopped service or deleted DNS record does not tell other servers that accounts were retired.

The self-destruct command deliberately broadcasts account deletion and serves 410 while work drains. Read its CLI help and take the required recovery records before confirming; rerunning it reports wind-down progress. Do not use it for a temporary outage, upgrade or hosting move. Its federated deletions cannot be undone by restoring a local backup.

Discovery and remote history

Administration → Discovery requires Manage federation. It manages a bounded catalogue for the member Discover pages, separate from normal delivery, search of already known posts and remote profile history.

Start or change acquisition

  1. Enable discovery and leave Pause updates off when you want acquisition.
  2. Add a server address, import a source list or explicitly choose bundled starters. A starter list is a convenience, not an endorsement or availability guarantee. Imported sources must pass verification before being shown.
  3. Choose mechanisms for directories, peer exploration, public outboxes, indexing, recommendations, video catalogues and on-demand wider search. Peer sharing is reserved for future work; enabling it does not add it.
  4. Set request and retained-entry budgets suitable for your instance. Inspect the resulting queue, source states and acquisition cost before increasing them.

Missing discovery/indexing preferences have explicit policy controls. An explicit refusal must not be treated as permission. Domain restrictions, source identity, origin validation and current access still apply. A stored reference is not proof that a source remains authorized or available.

Source-list import/export uses version 1 JSON, up to 100 sources and 64 KiB. Export the current list as a format example. Disable bundled sources absent from this list affects bundled entries, not a wholesale replacement of all operator policy. Keep private diagnostics out of public support requests.

Read the state

StateAction
Pending / Needs refreshLet the worker verify; inspect queue and budgets
ReadyRecently verified; content still needs its own access checks
Retrying laterRead the recorded error and retry time; fix DNS/TLS/policy if needed
Allowance exhaustedWait for the rolling 24-hour charges to expire, or deliberately adjust limits
PausedExisting catalogue remains; resume when acquisition should continue
DisabledCheck global, mechanism and source settings before diagnosing the network

Requests, charged bytes and per-origin limits include acquisition work; icons and auxiliary metadata are not free. The console separates costs by content and operation and shows retained versus active inventory. Do not diagnose an empty member page solely from the total retained count: freshness, consent, filters, blocks and seen-state affect eligibility.

Use the matching binary and explicit configuration for CLI diagnostics:

plamenu --config /etc/plamenu/plamenu.toml discovery status
plamenu --config /etc/plamenu/plamenu.toml discovery sources export

See CLI help for source import, configuration, pause/resume, recheck and one-shot acquisition. Mutation commands make real requests and changes; they are not health probes. Serialize them with other administrative CLI work.

Remote profile history

Administration → History controls fetching older posts when a signed-in member opens a remote profile. This is independent of Discover’s recommendation catalogue. It is enabled by default, including bounded resolution of bare item links. Disable it to stop new acquisition; queued work remains for later resume.

The profile shows queued/fetching, partial, complete, unsupported or backoff. Load older posts requests another bounded page; complete means the observed collection ended, not that every post ever written was recovered. Historical imports should not create notifications or outgoing activities.

Retention defaults to 90 days. The console shows cold storage by origin and provides Prune one batch now. Local references such as bookmarks, replies and reports protect relevant posts. Review counts before shortening retention; pruned content is recoverable only if the origin still serves it. For detailed limits and client behavior, see remote history reference.

Media, music and processing

Plamenu uses persistent local media storage and PostgreSQL metadata. One serving process owns the database; optional video processors do not turn it into a multi-writer cluster. FFmpeg/ffprobe are needed for media processing. Packaged OCI images include them; a binary host must install them.

Capacity and quotas

Budget the media root, database, temporary workspace and backups separately. Uploaded sources, encoded qualities, artwork, pending jobs and deletion debt can coexist. A small final film does not imply a small processing reservation. Set upload limits to what the filesystem can actually admit and monitor free space during representative jobs; there is no certified universal minimum host.

ConfigurationPurpose
[native_video]Source ceiling, per-account/global/pending storage, unfinished drafts, processing slots and disk floor
[music]Retained audio, conversion bitrate/role caps, conversion scratch, ZIP jobs/sizes and retention
[[music_local_roots]]Explicit operator-mounted libraries and write/delete capabilities
[media_mirror]Optional paired durable media root
[[video_offload]]Optional private processors, with local fallback
[video_redundancy]Optional approved, consented copies of remote recorded videos
video_analyticsServer-wide permission for opt-in channel delivery aggregates

Generate the current defaults with config generate; see configuration. Quota is released after acknowledged physical deletion, not just removal of a database entry. Repair a failing cleanup worker instead of manually reducing its charged bytes.

Jobs and failures

Administration → Music jobs shows conversions, ZIP downloads, streams and folder work. Viewing requires view_devops; stopping work requires manage_settings. Cancellation stops the selected run, not its saved stream or folder configuration. Watched folders can scan again. File recovery cannot be cancelled halfway through a repair.

Video uploads and imports produce private drafts. Failed processing keeps the source for retry; imports that already downloaded need not fetch it again. Before raising concurrency, inspect CPU, disk bandwidth, free scratch and queue age. Protect long upload/live responses from proxy idle/body limits appropriate to your configured workload.

Mounted music libraries

Declare an existing absolute root with an ID and label, then assign a root and subfolder to a member in Music → Local folders. Indexing keeps originals in place. Default source access is read-only; enable tag writeback, rename or delete only if the member should modify those actual files.

Preserve the mount identity and ownership across restarts. Child symlinks and path traversal are rejected. If a source operation reports recovery pending, restore the expected mount/files and let recovery finish. Disconnecting a library removes its index, not its originals. Back up source roots separately: they are outside media_dir and must not be assumed present in a media archive.

Paired media roots

Configure [media_mirror] with an already mounted, initially empty second root, owned by the service account. Roots must be separate and non-nested. Preserve pairing markers on both; do not recreate or delete them to bypass a missing disk. On startup, existing durable primary objects are verified/seeded before serving. This can be slow on a large store; allow for it during maintenance.

Durable writes and deletions acknowledge both roots. Reads can fall back to the replica after normal authorization. Quota counts one logical object, but disks need approximately two durable copies plus scratch. Two directories on one disk are not separate failure domains. Replication also copies deletions: it is not a backup or automatic repair of a corrupt primary.

Active live recordings have bounded checkpoints, including closed segments and complete recording prefixes. On supported Linux paths, independent muxers can continue on the surviving disk. A busy/failing replica can lag; watch live checkpoint degraded and recovery messages. This does not guarantee zero loss of the last on-air bytes. Never restore unrelated database/media generations or treat a partial recording as a complete backup.

After an interruption, inspect broadcast and recording state. Recovery must not advertise a dead encoder as live. Reconnect using the current management credentials and verify the resulting session/recording. See backup and restore for coordinated recovery.

Private video processors

On the processing host, use the same release binary:

plamenu --config worker.toml config generate --video-worker
plamenu --config worker.toml video-worker

Protect the generated token. Configure the worker’s dedicated scratch directory, tools, budgets and TLS, then add its HTTPS origin/token to [[video_offload]] on the main server. Plain HTTP is allowed only on literal loopback. Keep worker and origin configuration private; never put tokens into public URLs.

The origin retains sources, database authority and publication. It independently validates worker outputs and can fall back to local processing. Workers need no database backup; keep enough origin capacity for fallback. Drain work before changing both sides’ token/configuration and restarting affected processes.

Federation video copies

[video_redundancy] enables bounded copying of approved public/unlisted recorded videos. Exact source and advertising domains require approval, and the creator must permit copying or the operator must supply explicit consent evidence. Download permission alone is insufficient. Live, encrypted or incomplete graphs are not usable finite copies.

Manage approvals and jobs through the operator API. Expiry, withdrawal, source changes and policy revocation stop serving before cleanup finishes. Copies never grant access to a private/deleted original. Third-party players may still require the origin and may ignore redundancy advertisements; do not promise universal playback through origin loss.

Reconcile storage

Use plamenu --config /etc/plamenu/plamenu.toml media reconcile for a dry report. Review it with a current backup before choosing deletion options. Do not delete apparently unused media keys, pairing markers or job scratch by hand: pending work and durable cleanup journals distinguish live files from orphans.

Back up and restore

A usable Plamenu recovery set contains:

  • a PostgreSQL dump;
  • the media volume from the same stopped-write window;
  • the matching Plamenu binary or immutable OCI image, its PostgreSQL major version, and the service or container configuration;
  • the federation-key encryption secret version needed by that database, obtained from its separate escrow location.

Keep the secret-bearing .env and TOML configuration in a separate protected configuration backup. Do not put the only copy of the encryption root inside the database or media archive. Without it, restored private federation keys cannot be used.

Create a consistent backup

The Debian binary example stops Plamenu while PostgreSQL and media are captured. Replace 2026-09-09 with the backup date; use a new directory each time:

# Use a new directory for each backup.
mkdir -m 700 plamenu-backup-2026-09-09

sudo systemctl stop plamenu
# The invoking operator owns the backup directory and opens the output file.
# shellcheck disable=SC2024
sudo -u plamenu pg_dump -Fc plamenu > plamenu-backup-2026-09-09/plamenu.dump
sudo tar -C /var/lib/plamenu/media -czf \
  plamenu-backup-2026-09-09/plamenu-media.tgz .
sudo cp /etc/systemd/system/plamenu.service /etc/caddy/Caddyfile plamenu-backup-2026-09-09/
/usr/local/bin/plamenu --version > plamenu-backup-2026-09-09/plamenu-version.txt
sudo chown "$USER" plamenu-backup-2026-09-09/*
sudo systemctl start plamenu

The archive directory is created with restrictive permissions. Copy it to independent storage. For an automated job, add an exit trap that restarts Plamenu when an intermediate backup command fails.

For Compose, run from the deployment checkout. Replace the backup date and, if you renamed the Compose project, the plamenu_media-data volume name:

# Run from the deployment checkout; use a new directory for each backup.
mkdir -m 700 plamenu-backup-2026-09-09

docker compose --env-file deploy/.env -f deploy/compose.yml stop plamenu
docker compose --env-file deploy/.env -f deploy/compose.yml exec -T db \
  pg_dump -Fc -U plamenu plamenu > plamenu-backup-2026-09-09/plamenu.dump
docker run --rm \
  -v plamenu_media-data:/data:ro \
  -v "$PWD/plamenu-backup-2026-09-09":/backup \
  alpine:3.22 tar -C /data -czf /backup/plamenu-media.tgz .
grep '^PLAMENU_IMAGE=' deploy/.env > plamenu-backup-2026-09-09/image-reference.txt
cp deploy/compose.yml deploy/Caddyfile plamenu-backup-2026-09-09/
sudo chown "$USER" plamenu-backup-2026-09-09/*
docker compose --env-file deploy/.env -f deploy/compose.yml start plamenu

For another OCI runtime, stop the application container, dump PostgreSQL, and snapshot or archive the persistent media volume before starting the container again. A runtime snapshot of the container root is not a database backup.

Restore a server

Use a replacement host with an empty database and media storage. Install the same Plamenu version and PostgreSQL major version as the backup; attempt any upgrade after recovery. Keep the old instance stopped when the replacement starts, so only one server uses the federation identity.

Restore the original domains and encryption secret from the protected configuration backup. Changing the domain does not migrate the actor and post URLs stored in the database. Adapt host-specific paths and database addresses if the replacement host differs.

Debian binary installation

Follow the binary installation guide through host preparation and release installation. Restore the saved systemd unit, Caddy configuration, and /etc/plamenu/plamenu.toml, keeping the TOML readable only by root and the plamenu group. Do not run the guide’s startup or account creation commands: the database must still be empty.

From the directory containing your backup, replace the example date and run:

sudo systemctl stop plamenu
# The invoking operator owns and opens the backup; pg_restore runs as plamenu.
# shellcheck disable=SC2024
sudo -u plamenu pg_restore --exit-on-error --no-owner \
  --dbname=plamenu < plamenu-backup-2026-09-09/plamenu.dump
sudo install -d -m 0750 -o plamenu -g plamenu \
  /var/lib/plamenu /var/lib/plamenu/media
sudo tar -C /var/lib/plamenu/media -xzf \
  plamenu-backup-2026-09-09/plamenu-media.tgz
sudo chown -R plamenu:plamenu /var/lib/plamenu/media
sudo -u plamenu /usr/local/bin/plamenu \
  --config /etc/plamenu/plamenu.toml federation keys audit
sudo caddy validate --config /etc/caddy/Caddyfile
sudo systemctl daemon-reload
sudo systemctl enable --now postgresql plamenu caddy
sudo systemctl reload caddy

Docker Compose

On a fresh Docker host, restore deploy/compose.yml, deploy/Caddyfile, deploy/.env, and deploy/plamenu.toml. Set PLAMENU_IMAGE to the backed-up image digest, and retain the database name, user, and password from the saved configuration. The commands below use the default database and user plamenu.

Run from the deployment directory, with the backup directory alongside deploy/. Replace the date and, if you changed the Compose project name, the plamenu_media-data volume name. These commands create fresh volumes, restore the data, audit the federation keys, and then start the services:

docker compose --env-file deploy/.env -f deploy/compose.yml up -d --wait db
docker compose --env-file deploy/.env -f deploy/compose.yml exec -T db \
  pg_restore --exit-on-error --no-owner -U plamenu -d plamenu \
  < plamenu-backup-2026-09-09/plamenu.dump
docker compose --env-file deploy/.env -f deploy/compose.yml create plamenu
docker run --rm -i --network none \
  -v plamenu_media-data:/data \
  alpine:3.22 tar -C /data -xzf - \
  < plamenu-backup-2026-09-09/plamenu-media.tgz
docker compose --env-file deploy/.env -f deploy/compose.yml run --rm --no-deps plamenu \
  federation keys audit
docker compose --env-file deploy/.env -f deploy/compose.yml up -d --wait

For another container runtime, restore the dump into an empty PostgreSQL database and extract the media archive into its persistent volume. The image runs as UID/GID 10001; retain that ownership when restoring media. Attach the saved configuration before starting the container.

Check the restored server

Check /ready through HTTPS, then sign in with an existing account and open old posts and their media. Test a new post, media upload, and delivery to a remote account. Inspect worker logs and the delivery queue if anything stalls. The restore examples run federation keys audit before starting the server; resolve any reported missing or unreadable keys before proceeding.

For a rehearsal with a real server’s backup, isolate the copy from public federation and outbound mail before starting it. Use private DNS overrides for the original domains and an isolated peer for delivery checks. A separate Compose project alone does not prevent background jobs from reaching real recipients.

Media and interrupted work

Capture the whole primary media root, including private drafts, retained video sources, live scratch and storage markers. For paired storage, preserve matching roots/markers from the same stopped-write recovery point; never mix generations. An asynchronous live checkpoint can lag and is not a backup. Mounted music source roots are outside media_dir: include them in your recovery plan and restore their expected mount identity before enabling scans or source writes.

The origin owns private processor recovery; worker scratch is disposable. After restore, inspect pending processing, live recording finalization and media cleanup. A previous encoder must not appear on air merely because its waiting publication exists. Verify a recovered recording and a new broadcast separately. See media operations for mirror and processor boundaries.

Rehearse and retain

Regularly restore a real recovery set into an isolated environment with outbound federation and mail blocked. A separate container project alone does not stop outgoing requests. Keep the live server as the only public owner of its identity. Check readiness, key decryption, accounts, old media, source mounts and queued work before accepting the recovery procedure.

Keep multiple dated recovery points, at least one off-host copy, and a tested way to recover secrets independently. Protect backups as private account data; account deletion does not rewrite older backups. Record version, PostgreSQL major, timestamp, checksums, restoration result and the retention/expiry policy.

Upgrade

Experimental releases can change the database or configuration incompatibly. Check the release notes for an upgrade path from your version. If none is documented, test on a restored copy before changing the live server.

Before changing the binary or image

  1. Record the exact Plamenu version and binary checksum or running image@sha256:…, configuration, PostgreSQL version, and free space.
  2. Read the release notes for migrations, configuration changes, removals, and post-upgrade work.
  3. Run plamenu --config /etc/plamenu/plamenu.toml federation keys audit with the current binary and your installation’s configuration path.
  4. Make a coordinated stopped-write database and media backup. Verify that the matching encryption secret is independently available.
  5. Test the restore and upgrade on a separate host or isolated project when the release changes storage, identity, or federation behavior.

Upgrade a binary installation

Download plamenu-VERSION-linux-amd64.tar.gz or plamenu-VERSION-linux-arm64.tar.gz for your host and the selected release, then extract it into a new directory. The archive contains plamenu at its root. From that directory, after the backup completes:

sudo systemctl stop plamenu
sudo install -m 0755 ./plamenu /usr/local/bin/plamenu.new
sudo mv /usr/local/bin/plamenu /usr/local/bin/plamenu.previous
sudo mv /usr/local/bin/plamenu.new /usr/local/bin/plamenu
sudo systemctl start plamenu
sudo journalctl -u plamenu -f

Keep plamenu.previous only as provenance and a recovery aid. Do not run it against a database already migrated by the new version unless the release notes explicitly allow that.

Upgrade Docker Compose

Update PLAMENU_IMAGE to the release’s immutable digest, pull it, and recreate only the Plamenu service:

docker compose --env-file deploy/.env -f deploy/compose.yml pull plamenu
docker compose --env-file deploy/.env -f deploy/compose.yml up -d plamenu
docker compose --env-file deploy/.env -f deploy/compose.yml logs -f plamenu

For Incus, Proxmox VE, or another OCI runtime, create a replacement root from the new digest and reattach the preserved configuration and media storage. Do not delete the preserved volumes. Forward migrations run before the server accepts traffic.

In another terminal, wait for the public /ready endpoint. Then test owner and ordinary sign-in, a post with media, local search, e-mail, a remote follow or mention, queue health, and the administration pages affected by the release.

Rollback

Do not point an older binary at a database after a forward migration unless the release instructions explicitly say that is safe. A rollback normally means restoring the pre-upgrade PostgreSQL and media pair, restoring the matching configuration and encryption secret, and starting the previous binary or immutable image. That discards writes accepted after the backup, so make the decision before reopening the server widely.

Retain the pre-upgrade recovery set until the new version has run through a normal workload and at least one fresh backup has passed a restore test.

Monitor the server

Monitor public HTTPS readiness, resource use, delivery queues, and backups.

Probes

  • GET /health is liveness: the process answers.
  • GET /ready checks PostgreSQL and worker-supervisor health. Use it for external uptime alerts, container health, and traffic admission.

Probe /ready through the public HTTPS origin so DNS, Caddy, TLS, the backend, and PostgreSQL are all exercised. Also retain a local probe to distinguish edge failure from application failure.

Alert on

  • sustained /ready failure or elevated HTTP 5xx responses;
  • repeated service/container restarts or worker crash messages;
  • PostgreSQL connection exhaustion, slow queries, and database storage;
  • media and temporary-transcode free space;
  • outbound delivery queue age, due work, and large per-host backlogs;
  • repeated media-cleanup failures, deferred deletions and retained storage debt;
  • repeated video delivery analytics batch dropped warnings if creators have opted in; analytics failures must not stop playback and can undercount totals;
  • mail queue failure when account recovery depends on e-mail;
  • backup age and the last successful restore rehearsal;
  • certificate expiry and DNS changes for both the social and Webxdc hosts.

Logs and queue inspection

Plamenu writes structured text to stdout and stderr. Set RUST_LOG in the deployment environment to adjust filtering; avoid debug logging indefinitely on a busy server because URLs and operational context can be sensitive.

On the binary deployment, follow logs with journalctl -u plamenu -f. Compose uses docker compose … logs -f plamenu; Incus uses incus console plamenu --show-log. Use the equivalent facility for another runtime.

Inspect outbound work without changing it:

sudo -u plamenu plamenu --config /etc/plamenu/plamenu.toml \
  federation queue inspect
sudo -u plamenu plamenu --config /etc/plamenu/plamenu.toml \
  federation reachability

The queue guide explains retry, leasing, host fairness, and the few operations with different guarantees.

Capacity signals

No general minimum hardware requirement has been established. Measure CPU, memory, database growth, and media storage under the workload you expect. Video processing and account archives also need temporary space. Keep room for a restore and alert before storage is exhausted.

Creator delivery analytics offers optional bounded UTC body-byte/response aggregates. It records no viewer identities and does not measure P2P bytes, unique views or confirmed wire transfer. Use process, network and database resource measurements for capacity planning instead of treating these best-effort counters as a billing or performance ledger.

The native video scale drill defines an explicit sustained mixed-delivery workload and budgets before measurement. Its local HTTP-body/range and process measurements are not decoded browser startup/seek/rebuffer, P2P savings, whole-machine load or a production sizing guarantee. Reproduce the relevant workload on your own failure domains.

Increase the default database pool only after observing pool waits and checking PostgreSQL memory and connection headroom. CPU saturation in password hashing or media processing is not fixed by adding database connections.

Troubleshoot

Record the symptom and where it occurs. Save timestamps, the public URL or handle, local account, remote host, HTTP status, and relevant log lines before restarting or deleting anything.

The site does not become ready

  1. Check systemctl status plamenu postgresql or the equivalent container and database status in your OCI runtime.
  2. Inspect Plamenu and PostgreSQL logs.
  3. Request /health and /ready locally, then through public HTTPS.
  4. Verify database_url, database authentication, and media/scratch free space.
  5. Check whether another Plamenu process holds the single-writer database lock.
  6. Confirm the reverse proxy can reach port 8420 and that trusted_proxies exactly matches the actual proxy path.

Do not treat liveness success with readiness failure as healthy; it commonly points to PostgreSQL or a worker supervisor.

Writer-lock errors

Plamenu permits one serving process and one CLI command per database. If startup reports a held writer lock, check for another service, container, or CLI command using that database. Let the active command finish or stop the identified duplicate process. These are session locks: they disappear when the owning database session ends and do not require deleting a lock file or database row.

The original lock connection is monitored throughout initialization and operation. A connection failure or five-second heartbeat timeout makes the process exit; it does not reconnect and continue under an unverified lock. Correlate the exit with PostgreSQL restarts, connection termination, and network failures. Before retrying an interrupted mutating CLI command, inspect whether its action already committed. See the deployment boundary for the limits of this guard.

Sign-in or e-mail fails

Check the exact username/e-mail, server time, SMTP configuration, relay logs, and whether the flow requires confirmed mail. For an existing account, an authorized operator can set new credentials with plamenu account passwd. Never ask a member to send their old password or TOTP secret.

A remote account or post cannot be found

Try the exact handle and then the canonical public URL. Use read-only diagnosis:

plamenu --config /etc/plamenu/plamenu.toml federation webfinger user@example.com
plamenu --config /etc/plamenu/plamenu.toml federation fetch https://example.com/@user
plamenu --config /etc/plamenu/plamenu.toml federation reachability

Check DNS, TLS, WebFinger links, HTTP signatures, authorized fetch, local and remote domain policy, and whether the destination resolves to a forbidden private address. Search is not a global crawl and will not reveal private or unavailable objects.

Federation delivery is delayed

Run plamenu federation queue inspect, then correlate the oldest due jobs with reachability output and logs. A growing global queue suggests local database, network, or worker trouble; one remote host with backoff more often indicates a peer-specific or policy problem. Read background queues before altering state.

Media fails

Check persistent media and /tmp free space, file permissions, FFmpeg logs, configured limits, and whether the failure affects uploads, remote cache, or only transcoding. plamenu media reconcile reports orphan candidates without deleting them. Use --delete only during low upload activity after reviewing the report and taking a backup.

After an upgrade

Compare the running version and binary checksum or image digest with the intended release, then read its migration and configuration notes again. Do not start an older binary against a migrated database unless the release explicitly permits it. Follow the rollback procedure.

Before asking for help

Include the Plamenu version and full build identity, deployment method, architecture, redacted configuration relevant to the symptom, reproduction steps, timestamps, and a short log excerpt. Remove passwords, tokens, cookies, private keys, encryption roots, private post content, and member e-mail addresses. Report security vulnerabilities through the private process in the repository’s SECURITY.md.

Manage federation signing keys

Plamenu stores local ActivityPub signing keys encrypted in PostgreSQL. The encryption_secret in the server configuration unlocks them. Keep that secret in a protected configuration backup separate from the database.

The commands below use the Debian service account and configuration path. For a container, run the same CLI commands as the application user with its configuration mounted. Use the same binary version as the running server.

Check the keys

sudo -u plamenu plamenu --config /etc/plamenu/plamenu.toml federation keys audit

The audit checks that private keys are encrypted, can be decrypted with the configured keyring, and match their public keys. If it fails, check the secret versions and restore the matching configuration before replacing any keys. Do not include private keys, ciphertext, or encryption secrets in bug reports.

Rotate the encryption secret

Current limitation: federation keys rewrap covers federation keys only. TOTP secrets use the current encryption_secret; they do not read encryption_previous_secrets. Changing the primary secret can therefore break existing TOTP sign-in even when the federation audit passes.

Do not perform this procedure on a server with stored TOTP secrets until those secrets have a supported migration/re-enrollment plan. Check for both completed and pending enrollments with a read-only query against the correct database:

SELECT count(*) AS stored_totp_secrets FROM users WHERE otp_secret IS NOT NULL;

A nonzero result requires resolving TOTP migration first. Keep the original secret available for recovery; do not manually erase enrollment data. A passing federation audit says nothing about TOTP. Test a second-factor sign-in as part of any later secret-rotation rehearsal.

For an installation with no stored TOTP secrets, the following changes federation-key encryption while keeping the published signing keys. Prevent new TOTP enrollment during the change and generate a new secret:

openssl rand -hex 32

In the server configuration, give it a new positive version and retain the old secret for decryption:

encryption_secret = "replace-with-the-new-secret"
encryption_secret_version = 2
encryption_previous_secrets = ["1:replace-with-the-old-secret"]

Restart Plamenu with that configuration, then re-encrypt existing keys:

sudo -u plamenu plamenu --config /etc/plamenu/plamenu.toml federation keys rewrap
sudo -u plamenu plamenu --config /etc/plamenu/plamenu.toml federation keys audit

Rewrapping works in batches and can resume after interruption. rewrap --limit 100 processes a limited batch. Once rewrapping and the audit pass, the old secret can be removed from the live configuration. Retain it in protected backup storage for as long as any retained database backup needs it. Never assign different secrets the same version number.

Rotate the published signing keys

Rotate an account key or the instance key, selecting RSA or Ed25519:

sudo -u plamenu plamenu --config /etc/plamenu/plamenu.toml \
  federation keys rotate-account alice --algorithm rsa
sudo -u plamenu plamenu --config /etc/plamenu/plamenu.toml \
  federation keys rotate-account alice --algorithm ed25519
sudo -u plamenu plamenu --config /etc/plamenu/plamenu.toml \
  federation keys rotate-instance --algorithm rsa
sudo -u plamenu plamenu --config /etc/plamenu/plamenu.toml \
  federation keys rotate-instance --algorithm ed25519

A new key is published immediately and starts signing after five minutes by default. An actor update signed with the old key announces the replacement. The old key remains available for a seven-day overlap. Use --overlap-hours and --activation-delay-seconds to adjust those windows; the activation delay must be positive so peers have time to learn the new key.

To end use of an old key explicitly, supply its exact URI:

sudo -u plamenu plamenu --config /etc/plamenu/plamenu.toml \
  federation keys retire 'https://social.example.com/actor#old-key'

Use revoke in place of retire for a compromised key. Revoked, retired, expired, and not-yet-active keys cannot sign or verify new traffic. Their public records remain available for audit.

Restore or recover a lost secret

Restore the database and the encryption-secret versions that can decrypt its keys. An older database backup may need a version no longer used by the live server. Test both backups together.

Without any matching secret, the encrypted keys cannot be recovered. Recover the secret from its backup first. Replacing signing keys is a separate recovery operation that can disrupt federation with peers caching the old keys.

Hidden-service transport

Plamenu can route outbound federation and media requests to .onion and .i2p destinations through an external SOCKS5 proxy. Run Tor or an I2P proxy separately; the server keeps its existing ActivityPub identity and federation policy. This configuration covers outbound connections.

Configuration

Prefer per-network routes so clearnet requests continue through Plamenu’s local DNS/IP destination checks:

[federation]
onion_proxy_url = "socks5h://127.0.0.1:9050"
i2p_proxy_url = "socks5h://127.0.0.1:4447"
no_proxy = ["example.com"]

Use socks5h://, not socks5://: the h delegates hidden-name resolution to the proxy. Plamenu rejects the local-resolution form.

A global proxy_url routes clearnet names through the proxy too. When allow_private_fetch=false, configuration is rejected unless trust_proxy_destination_filtering=true. Set that acknowledgement only when the proxy independently blocks loopback, private/link-local ranges, carrier grade NAT, cloud metadata endpoints, and DNS rebinding.

Hidden-service URLs may use plain HTTP because overlay transport supplies the secure channel. Plain HTTP remains rejected for ordinary hosts. no_proxy takes precedence over all proxy routes.

Runtime behavior

  • WebFinger, actor/object fetches, delivery, and remote media use the same destination-aware client selection.
  • Onion deliveries and fetches are serialized because concurrent Tor requests are failure-prone. Clearnet work retains normal concurrency.
  • Queue retry and backoff behave exactly as for clearnet failures. A missing or unavailable proxy fails cleanly; it does not fall back to direct DNS.
  • Reachability state is separated by transport, so an onion failure does not mark the same clearnet host unreachable.

The live local acceptance test is e2e/tests/test_tor_federation.py. It covers discovery, follow, signed delivery, remote media, and the absence of direct .onion DNS traffic. Run it through the E2E environment documented in DEVELOPMENT.md.

Deployment examples

The Debian host example binds only to loopback and uses PostgreSQL peer authentication over a local socket:

# Debian host deployment. Copy to /etc/plamenu/plamenu.toml, replace every
# example value, and keep the file readable only by root and the plamenu group.
# The hosting domain is permanent after federation begins.
domain = "social.example.com"
# Optional: use alice@example.com handles while serving Plamenu itself from
# social.example.com. This is also permanent and needs well-known redirects.
# account_domain = "example.com"
bind = "127.0.0.1:8420"

# On a single host, the plamenu operating-system user authenticates to the
# matching PostgreSQL role over the local socket. No database password is
# stored in this file and PostgreSQL is not exposed to the network.
database_url = "postgres://plamenu@%2Fvar%2Frun%2Fpostgresql/plamenu"
media_dir = "/var/lib/plamenu/media"
trusted_proxies = ["127.0.0.1/32", "::1/128"]

authorized_fetch = true
authorized_fetch_unsigned = "profile"
csp_reporting = false
encryption_secret = "replace-with-output-of-openssl-rand-hex-32"
encryption_secret_version = 1

# Optional RTMPS for remote OBS/FFmpeg encoders. HTTPS-FLV already works via
# the ordinary HTTPS origin. Reuse your host certificate; Plamenu reloads it.
# live_ingest_bind = "127.0.0.1:1935"
# [live_rtmps]
# bind = "0.0.0.0:1936"
# cert = "/etc/letsencrypt/live/social.example.com/fullchain.pem"
# key = "/etc/letsencrypt/live/social.example.com/privkey.pem"

# Optional ALTCHA sign-up proof-of-work tuning (defaults shown).
# [altcha]
# cost = 5000
# min_counter = 5000
# max_counter = 10000
# expires_seconds = 300
# encryption_previous_secrets = []

# Add SMTP before enabling registration or password reset.
# [smtp]
# server = "smtp.example.com"
# port = 587
# login = "username"
# password = "replace-me"
# from_address = "Plamenu <notifications@example.com>"
# starttls = "always"

The OCI/Compose example binds to the container network and reaches PostgreSQL by service name:

# Copy to plamenu.toml, chmod 600, and keep it out of version control.
# The hosting domain is permanent after federation begins.
domain = "social.example.com"
# Optional: use short handles such as alice@example.com while keeping every
# Plamenu URL on social.example.com. This is permanent too; before enabling,
# configure example.com's three well-known redirects as documented in
# docs/operators/configuration.md.
# account_domain = "example.com"
# Also configure DNS/TLS for webxdc.social.example.com. Webxdc packages are
# isolated there and never receive the host's login cookie.
bind = "0.0.0.0:8420"
database_url = "postgres://plamenu:replace-with-the-same-password@db/plamenu"
media_dir = "/var/lib/plamenu/media"
# The Caddy container reaches Plamenu over this Compose subnet. If you override
# PLAMENU_BACKEND_SUBNET in .env, update this value to exactly the same subnet.
# Trusting only that subnet (not all private ranges) stops unrelated hosts from
# forging client IPs.
trusted_proxies = ["172.30.0.0/24"]
authorized_fetch = true
authorized_fetch_unsigned = "profile"
# CSP violation reports can include browsed and blocked-resource URLs. Keep the
# telemetry endpoint absent on live instances unless debugging it deliberately.
csp_reporting = false
encryption_secret = "replace-with-output-of-openssl-rand-hex-32"
encryption_secret_version = 1

# Optional ALTCHA sign-up proof-of-work tuning (defaults shown).
# [altcha]
# cost = 5000
# min_counter = 5000
# max_counter = 10000
# expires_seconds = 300
# Keep old roots only while rewrapping/restoring older backups, as
# "version:secret" entries. See docs/FEDERATION_KEY_OPERATIONS.md.
# encryption_previous_secrets = []

# Add SMTP before enabling public registrations or password reset.
# [smtp]
# server = "smtp.example.com"
# port = 587
# login = "username"
# password = "replace-me"
# from_address = "Plamenu <notifications@example.com>"
# starttls = "always"

# Outbound proxy routing — only needed to federate with .onion/.i2p
# instances via a local Tor/I2P daemon. Proxy URLs must be socks5h://
# (proxy-side name resolution) or http(s)://. See `plamenu config generate`
# for the full commentary.
# [federation]
# Prefer these per-overlay routes: clearnet then keeps Plamenu's DNS/IP SSRF
# checks. A global proxy_url requires a separately enforced egress ACL and
# trust_proxy_destination_filtering = true; see docs/operators/configuration.md.
# onion_proxy_url = "socks5h://127.0.0.1:9050"
# i2p_proxy_url = "socks5h://127.0.0.1:4447"
# no_proxy = []

# Optional operator-approved mounted music roots. Keep this at the top level.
# Originals remain on the mount and are not copied into media storage.
# [[music_local_roots]]
# id = "archive"
# label = "Music archive"
# path = "/srv/music"
# allow_tag_writeback = false
# allow_rename = false
# allow_delete = false

# Optional notification UTC schedule and seen-only retention.
# [notifications]
# retention_days = 90
# purge_hour = 3
# digest_hour = 8

Copy the example matching the deployment, replace every placeholder, and protect the result from other users. Plamenu’s tests parse both exact files with the real configuration loader.

For every available setting and current default, run plamenu config generate with the release binary. See configuration for the decisions that must be made before federation begins.

Command-line reference

This page is generated from the running program’s Clap help tree. Do not edit it by hand; run ./dev docs-generate after changing a command or flag. All commands except config generate read the global --config TOML file.

plamenu

$ plamenu --help
A fast, small ActivityPub server

Usage: plamenu [OPTIONS] <COMMAND>

Commands:
  config         Create Plamenu configuration
  serve          Run the HTTP server (includes the delivery worker)
  video-worker   Optional private native video processor; no database or federation services
  account        Manage local accounts
  group          Manage local groups
  post           Post a status as a local account (enqueued for follower delivery)
  follow         Follow a remote account (`user@domain`) as a local account
  emoji          Manage this instance's custom emoji
  role           Inspect moderation roles
  rule           Manage this instance's published rules (server policies)
  announcement   Manage server announcements (shown to logged-in users)
  media          Maintenance tasks for stored media
  federation     Read-only federation diagnostics (fetch objects, resolve handles, inspect the delivery queue and the reachability breaker)
  self-destruct  Erase the server from the federation (Mastodon's `tootctl self-destruct`): broadcast account deletion notices to every known server, and serve 410 Gone while they go out. Irreversible; always asks for confirmation. Re-run to see the wind-down's progress
  discovery      Inspect and control independent discovery without starting acquisition
  help           Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help
  -V, --version          Print version

plamenu config

$ plamenu config --help
Create Plamenu configuration

Usage: plamenu config [OPTIONS] <COMMAND>

Commands:
  generate  Write a documented starter TOML file to the --config path
  help      Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu config generate

$ plamenu config generate --help
Write a documented starter TOML file to the --config path

Usage: plamenu config generate [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --force            Replace an existing file instead of preserving it
      --video-worker     Generate a private standalone native-worker file with a fresh token
  -h, --help             Print help

plamenu serve

$ plamenu serve --help
Run the HTTP server (includes the delivery worker)

Usage: plamenu serve [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu video-worker

$ plamenu video-worker --help
Optional private native video processor; no database or federation services

Usage: plamenu video-worker [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu account

$ plamenu account --help
Manage local accounts

Usage: plamenu account [OPTIONS] <COMMAND>

Commands:
  add       Create a local account, optionally with login credentials
  passwd    Set (or replace) the login credentials of an existing account
  set-role  Grant a moderation role to an account (by role name, e.g. `Owner`), or clear it with `--clear`. Use this to bootstrap the first administrator
  rename    Change the human/discovery handle of an immutable-ID account. The old profile URL remains reserved as a redirect; the AP actor ID is stable
  alias     Manage an account's aliases (`alsoKnownAs`) — declare an alias so another account is allowed to migrate its followers here
  migrate   Migrate this account to another (remote) account, re-pointing local followers and telling remote followers via `Move`. The destination must already list this account in its aliases
  help      Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu account add

$ plamenu account add --help
Create a local account, optionally with login credentials

Usage: plamenu account add [OPTIONS] <USERNAME>

Arguments:
  <USERNAME>

Options:
      --config <CONFIG>              TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --display-name <DISPLAY_NAME>  [default: ""]
      --email <EMAIL>                Optional e-mail: an alternate login identifier that also enables password reset (requires --password)
      --password <PASSWORD>          Password for signing in (via username, or --email when given)
  -h, --help                         Print help

plamenu account passwd

$ plamenu account passwd --help
Set (or replace) the login credentials of an existing account

Usage: plamenu account passwd [OPTIONS] --password <PASSWORD> <USERNAME>

Arguments:
  <USERNAME>

Options:
      --config <CONFIG>      TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --email <EMAIL>        Optional e-mail; omitting it keeps any address already stored
      --password <PASSWORD>
  -h, --help                 Print help

plamenu account set-role

$ plamenu account set-role --help
Grant a moderation role to an account (by role name, e.g. `Owner`), or clear it with `--clear`. Use this to bootstrap the first administrator

Usage: plamenu account set-role [OPTIONS] <USERNAME> [ROLE]

Arguments:
  <USERNAME>
  [ROLE]      Role name (case-insensitive); omit with `--clear`

Options:
      --clear            Remove any assigned role instead of setting one
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu account rename

$ plamenu account rename --help
Change the human/discovery handle of an immutable-ID account. The old profile URL remains reserved as a redirect; the AP actor ID is stable

Usage: plamenu account rename [OPTIONS] <USERNAME> <NEW_USERNAME>

Arguments:
  <USERNAME>
  <NEW_USERNAME>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu account alias

$ plamenu account alias --help
Manage an account's aliases (`alsoKnownAs`) — declare an alias so another account is allowed to migrate its followers here

Usage: plamenu account alias [OPTIONS] <COMMAND>

Commands:
  add     Declare an alias (a `user@domain` acct or actor URI) on an account
  list    List an account's declared aliases
  remove  Remove a declared alias (by its stored URI)
  help    Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help
plamenu account alias add
$ plamenu account alias add --help
Declare an alias (a `user@domain` acct or actor URI) on an account

Usage: plamenu account alias add [OPTIONS] <USERNAME> <ALIAS>

Arguments:
  <USERNAME>
  <ALIAS>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help
plamenu account alias list
$ plamenu account alias list --help
List an account's declared aliases

Usage: plamenu account alias list [OPTIONS] <USERNAME>

Arguments:
  <USERNAME>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help
plamenu account alias remove
$ plamenu account alias remove --help
Remove a declared alias (by its stored URI)

Usage: plamenu account alias remove [OPTIONS] <USERNAME> <ALIAS>

Arguments:
  <USERNAME>
  <ALIAS>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu account migrate

$ plamenu account migrate --help
Migrate this account to another (remote) account, re-pointing local followers and telling remote followers via `Move`. The destination must already list this account in its aliases

Usage: plamenu account migrate [OPTIONS] <USERNAME> <TARGET>

Arguments:
  <USERNAME>
  <TARGET>    Destination `user@domain` acct or actor URI

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu group

$ plamenu group --help
Manage local groups

Usage: plamenu group [OPTIONS] <COMMAND>

Commands:
  add       Create a local group owned by an existing local account
  list      List local groups
  lock      Lock a thread in a group — no new comments (moderator action)
  unlock    Reopen a locked thread
  remove    Remove a post or comment from a group (moderator removal; the status itself survives)
  ban       Ban an account from a group (outcast). `target` is a local username or a known `user@domain` handle
  unban     Lift a group ban
  rename    Rename a group (change its display name), preserving every other setting. Federates the profile Update
  transfer  Transfer ownership of a group to another local member. The previous owner is demoted to moderator
  delete    Delete a group: tombstones the actor (`410 Gone`), federates `Delete(Group)` (Lemmy) plus `Delete(Actor)` (Mastodon), and purges its content. Irreversible
  help      Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu group add

$ plamenu group add --help
Create a local group owned by an existing local account

Usage: plamenu group add [OPTIONS] --owner <OWNER> <NAME>

Arguments:
  <NAME>  The group's name — its `preferredUsername`, sharing the local account namespace (`!name@domain` / `@name@domain`)

Options:
      --config <CONFIG>              TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --owner <OWNER>                Local username of the owner
      --display-name <DISPLAY_NAME>  [default: ""]
      --approval                     Hold join requests for moderator approval instead of auto-accepting followers
  -h, --help                         Print help

plamenu group list

$ plamenu group list --help
List local groups

Usage: plamenu group list [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu group lock

$ plamenu group lock --help
Lock a thread in a group — no new comments (moderator action)

Usage: plamenu group lock [OPTIONS] <GROUP> <STATUS_ID>

Arguments:
  <GROUP>      The group's name
  <STATUS_ID>  The thread root (or any post in it) as a local status id

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu group unlock

$ plamenu group unlock --help
Reopen a locked thread

Usage: plamenu group unlock [OPTIONS] <GROUP> <STATUS_ID>

Arguments:
  <GROUP>
  <STATUS_ID>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu group remove

$ plamenu group remove --help
Remove a post or comment from a group (moderator removal; the status itself survives)

Usage: plamenu group remove [OPTIONS] <GROUP> <STATUS_ID>

Arguments:
  <GROUP>
  <STATUS_ID>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --reason <REASON>  [default: "Removed by moderator"]
  -h, --help             Print help

plamenu group ban

$ plamenu group ban --help
Ban an account from a group (outcast). `target` is a local username or a known `user@domain` handle

Usage: plamenu group ban [OPTIONS] <GROUP> <TARGET>

Arguments:
  <GROUP>
  <TARGET>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu group unban

$ plamenu group unban --help
Lift a group ban

Usage: plamenu group unban [OPTIONS] <GROUP> <TARGET>

Arguments:
  <GROUP>
  <TARGET>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu group rename

$ plamenu group rename --help
Rename a group (change its display name), preserving every other setting. Federates the profile Update

Usage: plamenu group rename [OPTIONS] --display-name <DISPLAY_NAME> <GROUP>

Arguments:
  <GROUP>  The group's name

Options:
      --config <CONFIG>              TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --display-name <DISPLAY_NAME>
  -h, --help                         Print help

plamenu group transfer

$ plamenu group transfer --help
Transfer ownership of a group to another local member. The previous owner is demoted to moderator

Usage: plamenu group transfer [OPTIONS] --to <TO> <GROUP>

Arguments:
  <GROUP>  The group's name

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --to <TO>          Local username (or `@user`) of the new owner — must be a member
  -h, --help             Print help

plamenu group delete

$ plamenu group delete --help
Delete a group: tombstones the actor (`410 Gone`), federates `Delete(Group)` (Lemmy) plus `Delete(Actor)` (Mastodon), and purges its content. Irreversible

Usage: plamenu group delete [OPTIONS] <GROUP>

Arguments:
  <GROUP>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu post

$ plamenu post --help
Post a status as a local account (enqueued for follower delivery)

Usage: plamenu post [OPTIONS] <USERNAME> <TEXT>

Arguments:
  <USERNAME>
  <TEXT>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu follow

$ plamenu follow --help
Follow a remote account (`user@domain`) as a local account

Usage: plamenu follow [OPTIONS] <USERNAME> <TARGET>

Arguments:
  <USERNAME>
  <TARGET>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu emoji

$ plamenu emoji --help
Manage this instance's custom emoji

Usage: plamenu emoji [OPTIONS] <COMMAND>

Commands:
  add     Add a local custom emoji from an image file (PNG, GIF or WebP, at most 256 KB)
  list    List local custom emoji
  remove  Remove a local custom emoji by shortcode
  help    Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu emoji add

$ plamenu emoji add --help
Add a local custom emoji from an image file (PNG, GIF or WebP, at most 256 KB)

Usage: plamenu emoji add [OPTIONS] <SHORTCODE> <FILE>

Arguments:
  <SHORTCODE>  The `:shortcode:` (without colons): 2-128 letters, digits or `_`
  <FILE>       Path to the image file

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu emoji list

$ plamenu emoji list --help
List local custom emoji

Usage: plamenu emoji list [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu emoji remove

$ plamenu emoji remove --help
Remove a local custom emoji by shortcode

Usage: plamenu emoji remove [OPTIONS] <SHORTCODE>

Arguments:
  <SHORTCODE>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu role

$ plamenu role --help
Inspect moderation roles

Usage: plamenu role [OPTIONS] <COMMAND>

Commands:
  list  List the available roles and their permission bitmasks
  help  Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu role list

$ plamenu role list --help
List the available roles and their permission bitmasks

Usage: plamenu role list [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu rule

$ plamenu rule --help
Manage this instance's published rules (server policies)

Usage: plamenu rule [OPTIONS] <COMMAND>

Commands:
  list    List the published rules in display order
  add     Add a rule. New rules are appended after the existing ones
  edit    Edit an existing rule's text and/or hint by id
  remove  Remove a rule by id (soft-deleted; reports that cite it still resolve)
  help    Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu rule list

$ plamenu rule list --help
List the published rules in display order

Usage: plamenu rule list [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu rule add

$ plamenu rule add --help
Add a rule. New rules are appended after the existing ones

Usage: plamenu rule add [OPTIONS] <TEXT>

Arguments:
  <TEXT>  The rule text shown to users (max 300 characters)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --hint <HINT>      Optional longer explanation shown beneath the rule [default: ""]
  -h, --help             Print help

plamenu rule edit

$ plamenu rule edit --help
Edit an existing rule's text and/or hint by id

Usage: plamenu rule edit [OPTIONS] <ID>

Arguments:
  <ID>

Options:
      --config <CONFIG>      TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --text <TEXT>
      --hint <HINT>
      --priority <PRIORITY>  Reposition the rule in the ordered list
  -h, --help                 Print help

plamenu rule remove

$ plamenu rule remove --help
Remove a rule by id (soft-deleted; reports that cite it still resolve)

Usage: plamenu rule remove [OPTIONS] <ID>

Arguments:
  <ID>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu announcement

$ plamenu announcement --help
Manage server announcements (shown to logged-in users)

Usage: plamenu announcement [OPTIONS] <COMMAND>

Commands:
  list       List all announcements (published and not), newest first
  add        Add an announcement. It publishes immediately unless `--scheduled-at` is set to a future RFC 3339 timestamp
  publish    Publish an announcement by id
  unpublish  Unpublish an announcement by id
  remove     Remove an announcement by id (also clears its reactions and dismissals)
  help       Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu announcement list

$ plamenu announcement list --help
List all announcements (published and not), newest first

Usage: plamenu announcement list [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu announcement add

$ plamenu announcement add --help
Add an announcement. It publishes immediately unless `--scheduled-at` is set to a future RFC 3339 timestamp

Usage: plamenu announcement add [OPTIONS] <TEXT>

Arguments:
  <TEXT>  The announcement text (linkified; supports @mentions and #hashtags)

Options:
      --config <CONFIG>              TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --scheduled-at <SCHEDULED_AT>  Hold the announcement unpublished until this time (RFC 3339)
  -h, --help                         Print help

plamenu announcement publish

$ plamenu announcement publish --help
Publish an announcement by id

Usage: plamenu announcement publish [OPTIONS] <ID>

Arguments:
  <ID>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu announcement unpublish

$ plamenu announcement unpublish --help
Unpublish an announcement by id

Usage: plamenu announcement unpublish [OPTIONS] <ID>

Arguments:
  <ID>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu announcement remove

$ plamenu announcement remove --help
Remove an announcement by id (also clears its reactions and dismissals)

Usage: plamenu announcement remove [OPTIONS] <ID>

Arguments:
  <ID>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu media

$ plamenu media --help
Maintenance tasks for stored media

Usage: plamenu media [OPTIONS] <COMMAND>

Commands:
  expire-caches   Run the configured cache-retention pass now; failed physical removals remain revoked and charged until the normal cleanup worker acknowledges
  backfill-sizes  Fill in missing stored byte sizes for media, avatars, headers and emoji (backing the admin storage metrics). Stats each file on the media store; skips any whose file is missing
  reconcile       Find stored files no database row references — orphans left by deletions that ran before the durable cleanup queue existed — and (with `--delete`) schedule them for removal. Reports counts only by default. Run during low upload activity: a brand-new upload whose row is not yet inserted would otherwise look orphaned
  help            Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu media expire-caches

$ plamenu media expire-caches --help
Run the configured cache-retention pass now; failed physical removals remain revoked and charged until the normal cleanup worker acknowledges

Usage: plamenu media expire-caches [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu media backfill-sizes

$ plamenu media backfill-sizes --help
Fill in missing stored byte sizes for media, avatars, headers and emoji (backing the admin storage metrics). Stats each file on the media store; skips any whose file is missing

Usage: plamenu media backfill-sizes [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu media reconcile

$ plamenu media reconcile --help
Find stored files no database row references — orphans left by deletions that ran before the durable cleanup queue existed — and (with `--delete`) schedule them for removal. Reports counts only by default. Run during low upload activity: a brand-new upload whose row is not yet inserted would otherwise look orphaned

Usage: plamenu media reconcile [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --delete           Actually enqueue the orphans for deletion (default: report only)
  -h, --help             Print help

plamenu federation

$ plamenu federation --help
Read-only federation diagnostics (fetch objects, resolve handles, inspect the delivery queue and the reachability breaker)

Usage: plamenu federation [OPTIONS] <COMMAND>

Commands:
  fetch         Fetch a remote `ActivityPub` object and pretty-print it. Signed GET, following a permalink to the canonical `id` (paste a status URL or an actor URL). Nothing is stored
  webfinger     Resolve a `user@domain` handle via `WebFinger` and print every `ActivityPub` actor it advertises. Nothing is stored (unlike a real follow, no remote account row is created)
  queue         Inspect the outbound delivery queue
  reachability  List the hosts the delivery breaker currently considers unreachable, with their failure streak and last error
  keys          Inspect, rotate, revoke, or rewrap normalized federation keys
  help          Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu federation fetch

$ plamenu federation fetch --help
Fetch a remote `ActivityPub` object and pretty-print it. Signed GET, following a permalink to the canonical `id` (paste a status URL or an actor URL). Nothing is stored

Usage: plamenu federation fetch [OPTIONS] <URL>

Arguments:
  <URL>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu federation webfinger

$ plamenu federation webfinger --help
Resolve a `user@domain` handle via `WebFinger` and print every `ActivityPub` actor it advertises. Nothing is stored (unlike a real follow, no remote account row is created)

Usage: plamenu federation webfinger [OPTIONS] <ACCT>

Arguments:
  <ACCT>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu federation queue

$ plamenu federation queue --help
Inspect the outbound delivery queue

Usage: plamenu federation queue [OPTIONS] <COMMAND>

Commands:
  inspect  Summarize the queue: total/due counts, when the next job fires, and the worst per-host backlogs
  help     Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help
plamenu federation queue inspect
$ plamenu federation queue inspect --help
Summarize the queue: total/due counts, when the next job fires, and the worst per-host backlogs

Usage: plamenu federation queue inspect [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu federation reachability

$ plamenu federation reachability --help
List the hosts the delivery breaker currently considers unreachable, with their failure streak and last error

Usage: plamenu federation reachability [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu federation keys

$ plamenu federation keys --help
Inspect, rotate, revoke, or rewrap normalized federation keys

Usage: plamenu federation keys [OPTIONS] <COMMAND>

Commands:
  audit            Fail unless all private rows are encrypted, decryptable, and match their public halves
  rewrap           Re-encrypt rows from configured previous secrets onto the primary encryption-secret version. Safe to resume
  contract         Permanently drop the verified-empty legacy plaintext columns after all processes have been upgraded and the rollback window has ended
  rotate-account   Rotate one local account signing algorithm with a bounded overlap
  rotate-instance  Rotate an instance-actor signing algorithm with a bounded overlap
  revoke           Immediately revoke a key URI; it can no longer sign or verify
  retire           Retire a key URI after its overlap/grace use is complete
  help             Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help
plamenu federation keys audit
$ plamenu federation keys audit --help
Fail unless all private rows are encrypted, decryptable, and match their public halves

Usage: plamenu federation keys audit [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help
plamenu federation keys rewrap
$ plamenu federation keys rewrap --help
Re-encrypt rows from configured previous secrets onto the primary encryption-secret version. Safe to resume

Usage: plamenu federation keys rewrap [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --limit <LIMIT>    Process at most this many stale rows, for controlled rolling rehearsals. Omit to drain every bounded batch
  -h, --help             Print help
plamenu federation keys contract
$ plamenu federation keys contract --help
Permanently drop the verified-empty legacy plaintext columns after all processes have been upgraded and the rollback window has ended

Usage: plamenu federation keys contract [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help
plamenu federation keys rotate-account
$ plamenu federation keys rotate-account --help
Rotate one local account signing algorithm with a bounded overlap

Usage: plamenu federation keys rotate-account [OPTIONS] --algorithm <ALGORITHM> <USERNAME>

Arguments:
  <USERNAME>

Options:
      --algorithm <ALGORITHM>
          [possible values: rsa, ed25519]
      --config <CONFIG>
          TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --overlap-hours <OVERLAP_HOURS>
          [default: 168]
      --activation-delay-seconds <ACTIVATION_DELAY_SECONDS>
          Publish the replacement before using it to sign, giving peers time to process the old-key-signed Actor Update [default: 300]
  -h, --help
          Print help
plamenu federation keys rotate-instance
$ plamenu federation keys rotate-instance --help
Rotate an instance-actor signing algorithm with a bounded overlap

Usage: plamenu federation keys rotate-instance [OPTIONS] --algorithm <ALGORITHM>

Options:
      --algorithm <ALGORITHM>
          [possible values: rsa, ed25519]
      --config <CONFIG>
          TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --overlap-hours <OVERLAP_HOURS>
          [default: 168]
      --activation-delay-seconds <ACTIVATION_DELAY_SECONDS>
          [default: 300]
  -h, --help
          Print help
plamenu federation keys revoke
$ plamenu federation keys revoke --help
Immediately revoke a key URI; it can no longer sign or verify

Usage: plamenu federation keys revoke [OPTIONS] <KEY_URI>

Arguments:
  <KEY_URI>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help
plamenu federation keys retire
$ plamenu federation keys retire --help
Retire a key URI after its overlap/grace use is complete

Usage: plamenu federation keys retire [OPTIONS] <KEY_URI>

Arguments:
  <KEY_URI>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu self-destruct

$ plamenu self-destruct --help
Erase the server from the federation (Mastodon's `tootctl self-destruct`): broadcast account deletion notices to every known server, and serve 410 Gone while they go out. Irreversible; always asks for confirmation. Re-run to see the wind-down's progress

Usage: plamenu self-destruct [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu discovery

$ plamenu discovery --help
Inspect and control independent discovery without starting acquisition

Usage: plamenu discovery [OPTIONS] <COMMAND>

Commands:
  sources     Bootstrap, import or export untrusted source hints
  add-source  Admit a public profile/community directory or video catalogue; enable discovery first
  run-once    Run one bounded worker batch now, respecting pause, policy and budgets
  profiles    Show currently eligible profile text; does not contact peers
  recheck     Refetch a known canonical profile, community, post or video, including an operator-selected withdrawal
  status      Settings, queue and rolling budgets, plus at most 200 source records
  pause       Stop acquisition and invalidate current leases
  resume      Resume acquisition if the master switch is enabled
  configure   Change only the supplied controls. Missing consent defaults to allow
  help        Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu discovery sources

$ plamenu discovery sources --help
Bootstrap, import or export untrusted source hints

Usage: plamenu discovery sources [OPTIONS] <COMMAND>

Commands:
  bootstrap  Admit the reviewed bundled starters; discovery must be enabled first
  import     Import a version-1 JSON source list (at most 64 KiB / 100 addresses)
  export     Write addresses and observed public facts to stdout (first 100 sources)
  help       Print this message or the help of the given subcommand(s)

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help
plamenu discovery sources bootstrap
$ plamenu discovery sources bootstrap --help
Admit the reviewed bundled starters; discovery must be enabled first

Usage: plamenu discovery sources bootstrap [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help
plamenu discovery sources import
$ plamenu discovery sources import --help
Import a version-1 JSON source list (at most 64 KiB / 100 addresses)

Usage: plamenu discovery sources import [OPTIONS] <PATH>

Arguments:
  <PATH>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --replace-bundled  Disable bundled sources absent from this list
  -h, --help             Print help
plamenu discovery sources export
$ plamenu discovery sources export --help
Write addresses and observed public facts to stdout (first 100 sources)

Usage: plamenu discovery sources export [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu discovery add-source

$ plamenu discovery add-source --help
Admit a public profile/community directory or video catalogue; enable discovery first

Usage: plamenu discovery add-source [OPTIONS] <URL>

Arguments:
  <URL>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu discovery run-once

$ plamenu discovery run-once --help
Run one bounded worker batch now, respecting pause, policy and budgets

Usage: plamenu discovery run-once [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu discovery profiles

$ plamenu discovery profiles --help
Show currently eligible profile text; does not contact peers

Usage: plamenu discovery profiles [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu discovery recheck

$ plamenu discovery recheck --help
Refetch a known canonical profile, community, post or video, including an operator-selected withdrawal

Usage: plamenu discovery recheck [OPTIONS] <URI>

Arguments:
  <URI>

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu discovery status

$ plamenu discovery status --help
Settings, queue and rolling budgets, plus at most 200 source records

Usage: plamenu discovery status [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu discovery pause

$ plamenu discovery pause --help
Stop acquisition and invalidate current leases

Usage: plamenu discovery pause [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu discovery resume

$ plamenu discovery resume --help
Resume acquisition if the master switch is enabled

Usage: plamenu discovery resume [OPTIONS]

Options:
      --config <CONFIG>  TOML configuration file used by every command except `config generate` [default: plamenu.toml]
  -h, --help             Print help

plamenu discovery configure

$ plamenu discovery configure --help
Change only the supplied controls. Missing consent defaults to allow

Usage: plamenu discovery configure [OPTIONS]

Options:
      --config <CONFIG>
          TOML configuration file used by every command except `config generate` [default: plamenu.toml]
      --enabled <ENABLED>
          [possible values: true, false]
      --allow-missing-discoverable <ALLOW_MISSING_DISCOVERABLE>
          [possible values: true, false]
      --allow-missing-indexable <ALLOW_MISSING_INDEXABLE>
          [possible values: true, false]
      --disabled-mechanisms <DISABLED_MECHANISMS>
          Comma-separated mechanism names; an empty string enables all mechanisms
      --requests-per-day <REQUESTS_PER_DAY>

      --max-entries <MAX_ENTRIES>

      --entries-per-origin <ENTRIES_PER_ORIGIN>

      --requests-per-origin <REQUESTS_PER_ORIGIN>

      --bytes-per-day <BYTES_PER_DAY>

  -h, --help
          Print help

Getting help

For operator questions, check the operator guide and troubleshooting notes, then ask in the project repository.

Report a problem or propose a change

  • Bug: include the Plamenu version, installation method, reproduction steps, expected and actual behavior, and relevant logs. Redact credentials, tokens, and private content.
  • Federation problem: use the interoperability issue template. Identify both server versions, which server sent the activity, which received it, and what happened on each side.
  • Feature proposal: explain the user problem and how the proposed behavior would help. Mention effects on other clients or servers where relevant.
  • Security vulnerability: follow the security policy and report privately. Do not open a public issue.

What to expect

Community help is best-effort. Experimental releases do not guarantee production availability, data recovery, upgrade or downgrade paths, exact Mastodon behavior, or private operational support.

If you use a modified image or a database outside the documented setup, include those differences in your report. You may be asked to reproduce the problem with the release binary or image and the documented PostgreSQL version.

Changing an established ActivityPub domain can break remote references to accounts and posts. Missing HTTPS or incorrect reverse-proxy settings can cause login and federation failures. Check these against the configuration guide when diagnosing a deployment.

Security policy

Supported versions

Only the latest published experimental release receives security fixes. These releases may require a fresh installation.

Reporting a vulnerability

Do not open a public issue. Email security@burning.homes with:

  • affected version and deployment shape;
  • impact and required attacker access;
  • reproduction steps or proof of concept;
  • suggested mitigation, if known;
  • your disclosure preferences and a safe way to contact you.

Please avoid accessing data you do not own, disrupting federated services, or publishing details before a fix and advisory are available. Good-faith research that follows these constraints will not be pursued by the project.

Release handling

Confirmed vulnerabilities receive a private fix, regression test, new signed release, and public advisory containing impact, affected versions, mitigation, and credit where requested. Secrets must never be sent through public CI logs or issues.

Clients and APIs

Plamenu provides a Mastodon-compatible REST API, OAuth 2, WebSocket streaming, Web Push, and an experimental Lemmy /api/v3 adapter.

Sign in from an app

Enter your server’s HTTPS hosting domain in a Mastodon-compatible client. The app opens Plamenu’s authorization page, where you sign in and approve access. On a split-domain installation, use the hosting domain (for example, social.example.com), even if your handle ends in @example.com.

Build a client

Test authentication, timelines, posting, uploads, and notifications against the exact Plamenu version you intend to support. Plamenu-specific APIs may change incompatibly during the experimental release series.

Video playlists (experimental)

These are native Plamenu endpoints; see the playlist guide. Reads use read:statuses when authenticated; mutations require write:statuses.

  • GET /api/v1/video_playlists: public catalogue, optionally mine=true for accessible native collections and max_id for older results.
  • POST /api/v1/video_playlists: channel_id, name, optional description and visibility (private default, public, unlisted).
  • GET /api/v1/video_playlists/{id}: metadata, revision and ordered entries. Each entry has a string id, position, nullable status/title/Video URI, available/unresolved, start seconds and optional stop seconds. Inaccessible Videos do not leak titles, status IDs or media. can_edit is channel-scoped.
  • POST /api/v1/video_playlists/{id}: required current revision and operation: profile (name/description/visibility), add (status_id or video_url and clip bounds), move (entry_id, one-based position), clip (entry_id and bounds), remove (entry_id), or delete (confirm equal to the exact playlist title). Clip bounds are integer start_seconds and optional stop_seconds; omission of the stop clears it. Duplicate Videos are distinct stable entries.
  • POST /api/v1/video_playlists/import: url, guarded canonical metadata import or refresh; remote ownership is retained and editing is not granted.

IDs are strings; revision is an integer. JSON and URL-encoded bodies work. Unauthorized/private/deleted reads return 404, missing OAuth scope 403, invalid limits/bounds/confirmation 422, and stale revisions 409. Native playlist and outbox mutations are one transaction. Account/channel lifecycle and accepted collaboration determine authority. Public/unlisted AP roots, pages and elements are independently readable for PeerTube’s auxiliary fetches; private ones are never exposed. This does not weaken authorized fetch on general status routes.

Native video (experimental)

These are Plamenu APIs, not a PeerTube REST API implementation. ActivityPub video interoperability follows the federation contract.

Mastodon-compatible Status entities add video_channels: an array of Account entities identifying verified publication channels visible to the requesting viewer. Ordinary posts carry []. This describes where the video was published; it does not enumerate the author’s channel memberships or collaborator grants.

  • GET /api/v1/video_channels (read:accounts): list channels you own or have accepted access to, with owner_id and role (owner, publisher, editor).
  • POST /api/v1/video_channels (write:accounts): create a channel with username and display_name. Responses include string id, username, display_name, actor uri, and owner_id.
  • GET /api/v1/video_channel_invitations (read:accounts): pending collaboration or ownership invitations, with channel_id, display_name, invited role and ownership_transfer. Invitations confer no authority until accepted.
  • GET /api/v1/video_channels/{id} (read:accounts): accessible channel profile and your role. Only the owner receives its collaborator grant list.
  • POST /api/v1/video_channels/{id} (write:accounts): channel lifecycle action. Send operation: profile (display_name, description, at most 1000 characters); invite (username, role); revoke (username); accept or refuse (your invitation/accepted collaboration); transfer (username); cancel_transfer; accept_transfer or refuse_transfer (recipient only); delete. Ownership acceptance and deletion require confirm equal to the immutable channel username. Success is {ok:true}. Unauthorized targets return 404; validation returns 422; an unsafe active handoff returns 409. Role changes require fresh consent. Transfers revoke all former collaborator grants and invitations and confer no implicit privilege on the former owner. Finish/cancel unpublished uploads, scheduled videos and live broadcasts before accepting ownership. Existing Video authors, URLs and social identities remain unchanged. Channel deletion removes its videos, including collaborators’ publications, but not their accounts. See the channel guide.
  • Upload video through the shared media endpoint, then POST /api/v1/videos (write:statuses) with channel_id, media_id, title, optional description, language, and visibility (public or unlisted). Optional category (1–18) and licence (1–9) use PeerTube’s numeric IDs; integer strings work in form bodies. Zero clears either field. Neither is inferred: unspecified does not grant reuse permission. Local licence choices mean CC BY/BY-SA/BY-ND/BY-NC/BY-NC-SA/BY-NC-ND 4.0 (1–6), CC0 1.0 (7), Public Domain Mark 1.0 (8), or All rights reserved (9). spoiler_text is a content warning of at most 500 characters; sensitive marks the media sensitive, and a nonempty warning also does so. Write #hashtags in the description to use the existing tag system. The authenticated creator must own or have accepted access to the channel; the unattached processed media must belong to that creator. Publication retains the actual creator as the Video author, not the channel owner. Publication returns the ordinary Status entity with a playable video attachment. Titles have 3–120 characters; descriptions have a separate 10,000-character budget, also bounded after HTML serialization. Supply an RFC 3339 scheduled_at at least five minutes ahead to reserve the processed video instead and receive a scheduled-status entity. List, reschedule, or cancel it through /api/v1/scheduled_statuses. The video stays private until its due publication, which uses the same channel and metadata. The first-party /videos review form also accepts a wall-clock publication time in the author’s configured time zone without JavaScript.
  • PUT /api/v1/videos/{media_id}/metadata (write:statuses): sparsely edit category and/or licence on your published native Video. This ID is the primary media attachment ID, not the Status ID. Omitted fields stay unchanged; zero clears. Invalid IDs return 422 and unauthorized publications return 404. Owners/editors can manage all channel videos; publishers can manage only their own. The same authority applies to the normal Status edit/delete API, caption and chapter managers. Revocation takes effect even for the original author. The response is {category, licence}, each null or {id, name}; licence also has url (null when no versioned link is established). Changes enqueue the normal signed Video Update atomically; an exact no-op does not edit the timestamp. Edit title, description, language and warnings through the existing Status editor. /videos/{media_id}/metadata is the equivalent owner-only HTML editor, linked from /videos and the Video’s ordinary edit form.

JSON PUT /api/v1/statuses/{id} additionally accepts media_accessibility entries {id, transcript, decorative, audio_described, visuals_conveyed_in_audio} for kept attachments. Omit the array to retain alternatives; each supplied entry fully replaces that attachment’s structured alternatives. Null/empty transcript clears it, a 50,000-character limit applies, and the two soundtrack claims cannot both be true. The update shares the status edit/outbox transaction and channel authority. The Status media entity includes equivalent keys and language-specific caption/transcript links. See Video accessibility and the federated alternative vocabulary.

Video attachments include a Plamenu video_metadata extension when metadata has been stored. This uses the same category/licence shape as the edit response, in draft previews, scheduled statuses and published/imported Status entities. Remote labels and links are not trusted. A recognized PeerTube licence ID alone does not establish a version: it gets a generic name (for example, CC BY-SA) and null URL, unless the AP object supplies the exact supported canonical URL. Explicit clears federate as zero-ID Unspecified objects: PeerTube accepts these markers, whereas omitted/null category/licence fields leave its old values untouched on Update. Native Video Hashtag names are sent without a leading #, matching PeerTube’s tag vocabulary; ordinary Note tags are unchanged.

Account entities include the Plamenu extension video_channel: true for native video channels and false otherwise. A channel still has group: true and federates as an ActivityPub Group; it is not a community submission target. Remote channel classification is not yet represented by this extension. Clients must not infer channel ownership or authorization from this flag.

Planned live starts (iCalendar)

For a locally authored native live attachment, the Status media entity’s Plamenu live extension includes calendar_url and channel_calendar_url. These are HTTPS iCalendar subscription URLs, not PeerTube REST endpoints:

  • GET /videos/live/{status_id}/calendar.ics lists future starts of one public or unlisted broadcast. An unlisted feed is accessible to anyone with its URL; do not put it in a public directory. Private/deleted broadcasts return 404.
  • GET /videos/channels/{channel_id}/calendar.ics lists future starts from public broadcasts only. Unlisted broadcasts never appear there.
  • Append ?reminder=15 to either URL to include a 15-minute display alarm, or ?reminder=0 for no alarm. Other values return 400. The subscriber’s calendar app, not Plamenu, delivers the reminder.

Both feeds are readable without an API token so ordinary calendar clients can subscribe. They support ETag/If-None-Match and have a five-minute cache lifetime. The feed describes planned starts, not guaranteed on-air times or durations. Importing an .ics file once may not receive later reschedules; subscribe to its URL for updates. Calendar-client-specific refresh behavior varies.

Public status embeds

GET /api/oembed?url={local-status-URL} returns an iframe snippet for a public or unlisted local post, including native videos and live broadcasts. Its frame URL is GET /web/statuses/{id}/embed; this is read-only and always renders as an anonymous viewer, even if the browser holds a Plamenu session. Private, direct, local-only and deleted posts cannot be framed. The ordinary first-party HLS player, captions, descriptions and PeerTube-compatible P2P choice are present inside the frame. Peer sharing defaults on where supported; the choice appears before Play, explains network-address disclosure, and can be turned off to use the server only. With JavaScript disabled, the native/progressive video remains available without P2P. The frame is a Plamenu contract, not a claim of PeerTube’s full embed API compatibility.

Identity statements

FEP-c390 uses signed statements to link an actor to a user-owned key. These Plamenu endpoints are separate from the retired Mastodon Keybase API:

  • GET /api/v1/accounts/:id/identity_statements: original verified JSON statements.
  • POST /api/v1/accounts/identity_statements: publish a signed statement as the JSON body.
  • DELETE /api/v1/accounts/identity_statements: remove one with {"subject":"did:key:…"}.

Writes require OAuth write:accounts and return the remaining statements. Publishing replaces a statement with the same subject; up to ten are allowed, with a 16 KiB limit per document. Invalid statements return 422. Both writes send an actor Update to connected peers.

Supported proofs use Ed25519 did:key subjects, DataIntegrityProof, assertionMethod, and eddsa-jcs-2022 (also its legacy name jcs-eddsa-2022). The verification method must be the subject DID or its canonical #z6Mk… fragment. The statement must name the exact actor ID in alsoKnownAs. Expired proofs are excluded from responses. Ethereum and legacy prehashed Minisign proofs are not supported.

Emoji reaction notifications

pleroma:emoji_reaction notifications carry emoji: Unicode text or a colon-wrapped custom emoji shortcode. Custom reactions also carry emoji_url, using the instance’s media URL or proxy. These fields are present on both v1 notification entities and v2 notification groups. V2 includes the reacted status_id and the post in statuses, including on the single-group endpoint. Streaming uses the v1 entity shape.

Use the notification’s emoji_url to display a custom reaction. Libraries that convert response keys to camel case expose this as emojiUrl.

Notification responses also include reaction images in the reacted post’s emojis dictionary for clients that use that fallback. The post’s text emoji are preserved. If a reaction shortcode names a different image, emoji uses a separate display alias from that dictionary. These aliases are not picker entries or identifiers for reaction actions; those use emoji_reactions.name. Ordinary status endpoints and stored/federated content are unaffected. Scoped channel/group reaction fallbacks include the emoji in their HTML title.

Managed actor notifications

GET /api/v1/notifications and /api/v2/notifications include Plamenu’s plamenu:actor.* extension types: follow, follow_request, favourite, reblog, emoji_reaction, comment, mention, quote, status, invitation, and transfer. The recipient is a real local user; the notification’s account remains the person who performed the action. Never interpret a channel request as a personal /api/v1/follow_requests/{person}/authorize operation.

An actor_contexts array identifies each relevant hosted actor. Each entry has actor (public Account), kind (channel or group), event (the suffix above), and an absolute action_url. Native review destinations authenticate the current viewer and check their current role and CSRF token. Notification possession does not grant permission. Post-bearing types embed status in v1 and use the ordinary status_id/top-level statuses relationship in v2. A personal mention or quote and a channel reason for the same post share one canonical notification ID; channel reasons take presentation priority.

These extension types carry Mastodon’s fallback object (title, summary, details) with escaped HTML and ordinary links. It is also included when supported_types[] is absent, so streaming and push-triggered single-notification fetches remain readable. Phanpy already supports this fallback contract; its source does not need modification. Clients with their own extension UI can use actor_contexts instead. Group-scoped admin.report events also supply a safe fallback and a public group context. Notification reports use Mastodon’s public Report/Account shape, including for staff; administrative email/IP information stays on the separately authorized administration endpoints.

Scoped kinds are individually selectable in notification delivery preferences. For Web Push, an explicit scoped alert switch wins; otherwise its existing Mastodon switch applies (comment maps to mention, invitations/transfers to follow_request). Other channel events map to their corresponding standard switch. Withdrawals remove all recipients’ copies of that exact source event, without removing unrelated personal notifications. Notifications stranded on hosted actors before this feature are reassigned to their current owner while preserving IDs/timestamps and avoiding fresh push deliveries; historical editor eligibility is not inferred.

OAuth for client developers

Use the authorization-code flow to connect a member’s account. The member signs in and approves access on Plamenu; your client receives a bearer token for API requests.

Use the server’s HTTPS hosting domain for every endpoint below. On a split-domain installation this may differ from the domain in account handles. Replace the example domains and uppercase placeholders with your own values.

Register your application

Registration does not require authentication. Register separately on each server:

curl --request POST https://social.example.com/api/v1/apps \
  --data-urlencode 'client_name=Example client' \
  --data-urlencode 'redirect_uris=https://client.example/callback' \
  --data-urlencode 'scopes=profile read:statuses write:statuses'

Save client_id and client_secret from the JSON response. The secret is returned only at creation. Plamenu requires both values in the POST body when exchanging a code or revoking a token, including when using PKCE. HTTP Basic client authentication and exchanges without a client secret are not supported.

redirect_uris accepts newline-separated URIs in a form request or an array in a JSON request. Use an HTTPS callback for a web client; native clients can register a custom URI scheme. Redirect URIs must match exactly at authorization and token exchange, including any path, port, and query string. Fragments are not allowed.

For a manual command-line flow, register urn:ietf:wg:oauth:2.0:oob as the redirect URI. Plamenu then displays the code in the browser for the member to copy.

Request authorization

Generate a fresh PKCE verifier and state for each attempt. Keep both in the client’s pending login session. PKCE is optional for compatibility with older clients; when used, its only supported method is S256.

This Python example generates the values and authorization URL:

import base64
import hashlib
import secrets
from urllib.parse import urlencode

verifier = secrets.token_urlsafe(32)
challenge = base64.urlsafe_b64encode(
    hashlib.sha256(verifier.encode("ascii")).digest()
).rstrip(b"=").decode("ascii")
state = secrets.token_urlsafe(32)

parameters = {
    "response_type": "code",
    "client_id": "CLIENT_ID",
    "redirect_uri": "https://client.example/callback",
    "scope": "profile read:statuses write:statuses",
    "state": state,
    "code_challenge": challenge,
    "code_challenge_method": "S256",
}
authorization_url = "https://social.example.com/oauth/authorize?" + urlencode(parameters)
print("PKCE verifier:", verifier)
print("State:", state)
print("Authorization URL:", authorization_url)

Open that URL in the member’s browser. After approval, Plamenu redirects to your callback with code and the original state. Reject a callback with missing or mismatched state. If the member declines, the callback contains error=access_denied and state.

Scopes are space-separated. Request only what the client needs, within the scopes registered for the application. This example uses profile to identify the signed-in account, read:statuses to read timelines, and write:statuses to publish posts. Add write:media to both requests if the client uploads files. A broad read or write grant covers its granular scopes; a granular grant covers only that resource. Omitting scope at authorization requests read, which must be covered by the registration; it does not select all registered scopes.

Exchange the code

Codes expire after ten minutes and can be used only once. Send the verifier from the same authorization attempt, and the same redirect URI:

curl --request POST https://social.example.com/oauth/token \
  --data-urlencode 'grant_type=authorization_code' \
  --data-urlencode 'client_id=CLIENT_ID' \
  --data-urlencode 'client_secret=CLIENT_SECRET' \
  --data-urlencode 'redirect_uri=https://client.example/callback' \
  --data-urlencode 'code=AUTHORIZATION_CODE' \
  --data-urlencode 'code_verifier=PKCE_VERIFIER'

The response contains access_token, token_type (Bearer), scope (the granted space-separated scopes), and created_at (Unix seconds). There is no refresh_token or expires_in: API tokens have no fixed expiry. They can still be revoked, and account or server restrictions can prevent their use.

Use and revoke the token

Set ACCESS_TOKEN in your environment and send it in the Authorization header:

curl https://social.example.com/api/v1/accounts/verify_credentials \
  --header "Authorization: Bearer $ACCESS_TOKEN"

This returns the member’s account, including its id and username. Store tokens in the client’s credential storage and keep them out of URLs and logs.

Revoke the token when disconnecting the account:

curl --request POST https://social.example.com/oauth/revoke \
  --data-urlencode 'client_id=CLIENT_ID' \
  --data-urlencode 'client_secret=CLIENT_SECRET' \
  --data-urlencode 'token=ACCESS_TOKEN'

A successful request returns HTTP 200 with {}, including when the token is already revoked or unknown. Members can also revoke access in their account settings.

Other grants and errors

/oauth/token also accepts grant_type=client_credentials with client_id, client_secret, and an optional scope. It creates an application token with no member attached, so it cannot read a member’s home timeline or post on their behalf. An omitted scope uses the application’s registered scopes. Password and refresh-token grants are not supported.

ErrorWhat to check
invalid_clientSend the client ID and secret from this server in the POST body.
invalid_scopeRequested scopes must be recognized and covered by the application’s registration.
invalid_grantCheck code age, exact redirect URI, application, and PKCE verifier. Start a new authorization attempt; a failed exchange may have consumed the code.
unsupported_grant_typeUse authorization_code or client_credentials.

For API requests, a 401 can mean the token is no longer valid; let the member authorize again. A 403 can mean insufficient scopes, account restrictions, or server policy. Check the response’s error field before retrying.

Music API

Music endpoints are native Plamenu extensions. Use OAuth bearer authentication and the scope required by each operation. IDs are strings. Many updates require the current revision; on conflict, refetch and ask the user to review their edit instead of silently applying it to a newer revision. Responses resolve current access; saved references, cached metadata and queue entries never grant access by themselves.

AreaEndpoint familyScope / behavior
Stored tracks/api/v1/music/assetsread:statuses for catalogue reads; write:media for owned metadata/media changes
Artists and albums/api/v1/music/artists, /albumsReadable resources and /tracks; creation/edit/deletion uses write:media
Track notes and album assignment/api/v1/music/assets/{id}/details, /albumRevisioned PUT, write:media; null album detaches
Libraries/playlists/api/v1/music/collectionsread:statuses / write:statuses; ordered references, repeat policy depends on kind
Contents sharing/api/v1/music/collections/{id}/contents-sharingRevisioned PUT with share_tracks; grants apply only to owned tracks
Music subscriptions/api/v1/music/followsread:statuses / write:statuses; POST operation: follow/unfollow and url
Saved resources/api/v1/music/mine, /savedread:statuses; POST {kind,id} or delete a saved row with write:statuses
Music favourites/api/v1/music/favouritesread:statuses; POST/DELETE one asset_id or status_id with write:statuses
Queues/api/v1/music/queues, /{device}read:statuses; revisioned commands require write:statuses
Listening/api/v1/music/listening/preferences, /sessionsReads read:statuses, changes/reports write:statuses
History/statistics/api/v1/music/history, /statsread:statuses; history erasure write:statuses
Radio settings/api/v1/music/radiosread:statuses / write:statuses; not a running audio output
Podcasts/api/v1/music/podcastsread:statuses; subscribe/refresh/played-state/OPML import write:statuses
Server audio outputs/api/v1/music/outputsread:statuses / write:statuses; owned stream commands and listener-token rotation
Download jobs/api/v1/music/downloadsread:statuses / write:statuses; background archives, per-item results, cancellation and expiry
Share links/api/v1/music/share-links, /sharesCreate/revoke write:media; overview read:statuses; tokens shown once
Renditions/api/v1/music/assets/{id}/renditionsRequest/status read:statuses; owned cancellation write:media

This is an entry-point map, not a complete versioned schema. Consult the matching release’s route definitions in crates/server/src/routes/music*.rs for all request fields, streams, exports and folder operations; verify the actual error and permission behavior when integrating.

Audio posts and access

The status API accepts post_kind: "audio", a title, one media_ids entry, and optional music metadata (artist, album, genre, release_year, track_number, disc_number, musicbrainz_id). The Status has object_type: "Audio". Omitted music metadata on edit is preserved. A required audio attachment cannot be removed; scheduling is unavailable.

Post visibility private means followers-only. It is different from creator- private stored tracks. Stored assets enforce access on playback/downloads; ordinary attachment URLs retain ordinary bearer-URL behavior. Collection contents sharing and share tokens do not authorize foreign restricted sources.

Playback state and listening reports

A missing queue device reads as revision "0"; its first write creates "1". Commands include adding sources, selection, ordering, removal, settings, seek and loading a collection. Queue entry IDs distinguish repeated sources. Use asset_id or status_id for a source; use entry IDs for queue changes.

Start listening only when playback begins, with a unique request_key and a source or owned queue selection. Reusing the same key/source is idempotent. Progress reports contain finite monotonic played_seconds and optional finish; exclude paused time and seeks. Credit is bounded by wall time and 15 seconds per report. Fetching bytes or a HEAD request is not a listen. History and stats are private, respect user preferences and recheck current resource access.

Feeds, embeds and external music clients

Resource pages advertise the current RSS/Atom and embed URLs. Conditional feed responses still require current access. Embed endpoints are anonymous: cookies and private share tokens cannot upgrade public-widget permissions. Capability- bearing private feeds must not enter shared caches or logs.

Subsonic/OpenSubsonic uses /rest/{method}.view, XML by default and JSON with f=json, including form POST. Create separate credentials through Music clients; do not collect the member’s account password. Supported credentials include direct password, apiKey and salted Subsonic authentication. Management permission, listening preferences and explicit now-playing consent still apply.

Video API details

These are Plamenu extensions, not the PeerTube REST API. See the client overview for upload, channels, live and playlist endpoints. IDs and authorization remain resource-specific.

Viewer preferences and history

These are Plamenu contracts, not claims of PeerTube REST compatibility. Bearer authentication is required; no endpoint accepts a target account ID.

EndpointScopeContract
GET /api/v1/video_viewer_preferencesread:accountshistory_enabled, p2p_enabled, p2p_configured, history_max_entries, history_retention_days
PUT /api/v1/video_viewer_preferenceswrite:accountsAt least one JSON boolean history_enabled or p2p_enabled; omitted choices are preserved; history false also deletes history
GET /api/v1/video_historyread:statuses{data, next}; pass both next.before and next.before_media as query parameters
PUT /api/v1/video_history/{media_id}write:statusesWhole position_seconds, optional boolean completed, native attachment’s content_revision (omitted means 0); returns {saved} (false when disabled or stale)
DELETE /api/v1/video_history/{media_id}write:statusesForget this account’s entry only; idempotent
DELETE /api/v1/video_historywrite:statusesClear this account’s history, without changing its preference

Positions must be within the known duration and at most seven days. A completed position must be within the final ten seconds when duration is known. History entries include current Video/media IDs, title, position, completion, timestamp, permalink and native resume URL. Metadata-only PeerTube updates retain attachment identity and positions; signed Delete removes the entry from subsequent reads. Ordinary status/media entities and federation never include private history.

p2p_configured distinguishes an explicit account choice from the default. It becomes true when p2p_enabled is deliberately saved, not when history changes. Clients should preserve a legacy local opt-out until an explicit account choice.

Content replacement, reprocessing and trimming

POST /api/v1/videos/{media_id}/edits requires both write:media and write:statuses, and current publication-management authority. Preparation returns HTTP 202 with the private candidate ID, status URL and HTML review URL. Use either body:

{"operation":"reprocess","revision":0}
{"operation":"trim","revision":0,"start_ms":1250,"end_ms":8000}

Cuts use integer milliseconds and must fit the currently published film. GET /api/v1/video_edits/{candidate_id} requires read:media and candidate ownership. It reports target ID/revision, operation and phase, without source keys or raw URLs. POST .../{candidate_id}/retry requires both write scopes, a failed private job and current source authority/revision. DELETE .../{candidate_id} requires write:media and ownership; cancellation remains possible after source authority is lost. Storage is refunded only on cleanup acknowledgement. All these responses are private and non-cacheable.

After processing and reviewing the candidate, apply it with the same confirmed content endpoint used for replacement below. Do not publish it as a new Video.

GET /api/v1/videos/{media_id}/content requires read:media and current publication-management authority. Its private, non-cacheable response contains the stable media/status IDs, numeric revision and up to 100 eligible private candidate IDs/titles. Storage keys and raw sources are not returned.

PUT /api/v1/videos/{media_id}/content requires both write:media and write:statuses, plus current publication-management authority. Example body:

{"candidate_media_id":"12345","revision":0,"confirm":true}

Use the revision from the reviewed publication, not a newly fetched value that silently replaces the user’s decision. A successful response contains the unchanged media ID and incremented revision; stale/cancelled/otherwise changed candidates return a conflict. The HTML route also requires CSRF and both write scopes, including when an OAuth token is supplied as a session cookie.

Native published attachment entities expose additive content_revision. Send that value when saving watch history; omitted revision means the initial revision zero and cannot write positions for an edited film.

Delivery analytics

Use an ordinary OAuth bearer token, not an ambient browser cookie:

  • GET /api/v1/video_channels/{channel_id}/analytics: read:media, current owner/editor; returns policy, operator availability, measurement label, at most 1,000 daily rows and possibly_truncated.
  • PUT on the same endpoint: write:media, current owner; JSON {"enabled":true,"retention_days":30}.
  • DELETE on the same endpoint: write:media, current owner; erase totals without changing collection or retention.

IDs and ISO dates are strings. Responses and refusals are private, no-store. The HTML mutation additionally requires the existing session-derived CSRF token, and HTML pages vary on Cookie. No analytics are exposed in ActivityPub.

Accessible media fields

Client attachments expose description, transcript, audio_described, visuals_conveyed_in_audio, captions (including same-origin transcript_url) and chapters. A JSON PUT /api/v1/statuses/{id} accepts additive media_accessibility: [{id, transcript, decorative, audio_described, visuals_conveyed_in_audio}]. Each entry fully replaces the structured alternatives for that kept attachment; omission of the entire array keeps them. null/empty transcript clears it. A maximum of 50,000 Unicode characters and no NUL applies, and the two soundtrack claims cannot both be true. Ordinary media_attributes continues to edit alt text/focus. IDs outside the validated kept attachment set are ignored, never used to modify another post.

Canonical native Video Create/dereference/history/Update includes schema.org transcript and explicitly namespaced visualDescription, audioDescribed and visualsConveyedInAudio extensions. These do not change PeerTube’s supported description, caption or chapter vocabulary. PeerTube 8.3 accepts and ignores unsupported alternatives; it does not preserve these extensions on a PeerTube re-export, and we do not claim that it does. Compatible Video peers can retain them across updates. Incoming alternatives apply only to the canonical primary media, with plain-text rendering and bounded values; no remote transcript URL is automatically fetched.

Deleted/restricted media does not gain public caption/transcript access. Captions/chapters continue to use guarded same-origin proxy routes and author authority; replacing captions versions their public links, and removing a track revokes its old caption/transcript routes.

Media operator API

For deployment and recovery, see media operations.

Federation video copies

The operator API requires MANAGE_FEDERATION and the matching broad admin:read/admin:write token scope. Use authenticated requests with these JSON bodies; never place tokens in URLs or command arguments:

Method/pathRequest or response
PUT /api/v1/admin/video_mirror_approvals/{domain}{"allow_source":true,"allow_mirror":false} approves an exact source; reverse the flags to approve an advertising server
POST /api/v1/admin/video_mirrors{"status_id":123,"consent_attestation":""} requests an already resolved canonical Video
GET /api/v1/admin/video_mirrorsUp to 100 latest jobs, current charged bytes and private no-store response
GET /api/v1/admin/video_mirrors/{id}State, generation, expiry, charge and failure status
DELETE /api/v1/admin/video_mirrors/{id}Withdraws serving and atomically queues the signed Undo

Creators grant or revoke copying using the first-party HTML media sharing form’s mirror-permission checkbox, or the mirror_allowed flag in the existing distribution API. It defaults to false; merely making a video public or enabling download does not grant permission. The API replaces all distribution flags: include the desired download/embed flags when updating permission. The signed Video carries Plamenu’s full-IRI permission extension; a live announcement never advertises finite-copy permission. For foreign creators without that vocabulary, an operator must provide private explicit creator-consent evidence in consent_attestation (20–2,000 bytes). This is an operator attestation, not automatically verified consent or an inference from PeerTube’s download flag.

No public CacheFile is advertised before every graph asset has a durable store acknowledgement and current source authority still matches. Signed Create/Undo and their state transitions use the same database transaction. Source updates, withdrawal, expiry, suspension or domain-policy changes deny warm reads. Accepted remote offers remain actor-bound and require explicit mirror-domain approval; a replayed Create cannot undo an authenticated withdrawal. A copy never grants access to a private/deleted original. Only the specialized mirror route may serve its permanently private storage-key namespace. Incoming offer bookkeeping currently admits at most 256 distinct known URIs per advertising actor, including retained withdrawal tombstones. Reaching that bound refuses new offers rather than forgetting withdrawals or growing without limit; it is not a claim of unlimited foreign redundancy capacity.

Music jobs

GET /api/v1/admin/music/jobs requires admin:read and view_devops. POST /api/v1/admin/music/jobs/cancel requires admin:write and manage_settings. Send {kind,id} or {jobs:[{kind,id},...]} with at most 100 unique tasks. Cancellation stops current work; it preserves saved folder and output configuration. File recovery cannot be stopped halfway through.

Connect a Lemmy client

Plamenu provides a Lemmy-compatible API at /api/v3, targeting the lemmy-js-client 0.19.11 contract. NodeInfo identifies the server as plamenu. A client that chooses its API from that value must recognize Plamenu or offer manual backend selection. Photon needs this recognition change.

Supported operations

AreaOperations
AccountsLogin, registration, password and profile changes, account deletion
DiscoverySite information, people, search, and object resolution
CommunitiesList, create, edit, follow, block, and moderate
Posts and commentsList, create, edit, delete, vote, and save
InboxReplies, mentions, private messages, unread counts, and read state
ReportsPost/comment reports, moderator listing, and resolution
MediaPictrs upload, retrieval, and deletion; account and admin media lists
Custom emojiCreate, edit, and delete
AdministrationSite settings, registration approval, suspension, administrator roles, and purges

These operations use Plamenu’s permissions, visibility, and federation rules. Errors use Lemmy’s { "error": "..." } format. Requests for settings with no Plamenu equivalent are rejected.

Differences that affect clients

  • Entity IDs are stable signed 32-bit aliases. Native Plamenu IDs and ActivityPub URLs remain unchanged; clients must use the IDs returned by /api/v3.
  • Account deletion requires delete_content=true. Restore requests for deleted or removed content are unsupported.
  • Editing a post cannot change its external URL or custom thumbnail.
  • Community-specific listings support Hot, Active, Old and Top variants. Active uses latest reply time, not Lemmy’s complete scored decay. Aggregate All/Local/Subscribed listings remain chronological; ranking parity is incomplete.
  • Private messages are Plamenu direct conversations. Changing one message’s read state changes the state reported for its conversation.
  • The modlog API, private-message reports, and some notification, language, flair, poll, metadata, and vote-list APIs are not implemented.

Testing a client

Router tests are in crates/server/tests/lemmy_api.rs. They cover account, content, media, moderation, and ID round trips, including persistence across a router restart. Run them with:

./dev test -p plamenu --test lemmy_api

For client testing, check backend selection first, then login, list/detail navigation, posting and editing, inbox state, and any moderation actions the client offers. Confirm the resulting state in Plamenu as well as the client’s response to API errors.

ActivityPub protocol and extensions

Plamenu uses WebFinger and NodeInfo for discovery, ActivityPub actor and object endpoints, signed inbox delivery, and signed or authorized fetch.

Identity and transport

Local actor and object URLs use the configured domain, which must stay fixed after federation begins. An optional account_domain provides shorter handles; its WebFinger, host-meta, and NodeInfo discovery paths must forward to Plamenu. Remote handle changes are accepted when WebFinger resolves to the same actor URI.

Transport supports draft-cavage and RFC 9421 HTTP signatures, FEP-8b32 integrity proofs, delivery retries, and URL/IP checks on remote fetches. Remote RSA, Ed25519, and ML-DSA-44 verification keys are stored per actor. Local RSA and Ed25519 private keys are encrypted at rest.

See signing-key operations for rotation and recovery, queues for retry behavior, and Tor/I2P transport for optional proxy routing.

Remote profile presentation

After accepting an authenticated self actor Update, Plamenu applies the validated inline actor and asynchronously checks that actor’s current origin for its name and biography. This is a cache policy for stale queued presentation, including peers that publish an older name alongside a newer biography. ActivityPub does not require this additional fetch. The origin response supplies presentation text only; it does not replace handles, actor IDs, keys, inboxes, avatars or account policy.

The signed fetch stays on the persisted actor’s exact origin, with the usual SSRF and domain-policy checks repeated at redirects. Actor and declared key controller claims must match that identity. The fetched response is trusted through its origin transport; it is not an independently signed actor proof. Only sanitized name and biography are eligible for the conditional write. Any intervening account write, suspension, deletion, block, invalid response or fetch failure leaves the validated inline presentation in place.

Background work coalesces later Updates per actor, permits at most 256 active actors, spaces origin reads by at least one second, and limits each pass to 30 seconds. It does not delay the inbox response. Continuous account changes or admission saturation can suppress an optional correction; convergence is not guaranteed under sustained concurrent writes.

Identity proofs

FEP-c390 statements are published in actor attachments and verified on remote actor fetches and Updates. Plamenu supports Ed25519 did:key with eddsa-jcs-2022 and its legacy suite name. It retains valid original statements and discards invalid or removed ones. Expired proofs are excluded when profiles or actors are read. This remains an experimental FEP; Ethereum and prehashed Minisign proofs are not implemented.

See member controls and client endpoints. Identity keys are user-owned and separate from the server’s federation signing keys.

Content

Local publishing includes Notes, polls, Articles, Events, group threads, Audio publications and channel Videos, including live announcements and recordings. Titled ordinary group posts use Page. Replies, quotes, favourites, boosts, emoji reactions, group moderation, and event participation have federation handlers. Groups use experimental FEP-1b12/Lemmy-oriented behavior.

Group actors publish postingPolicy in the https://codefloe.com/plamenu/plamenu/ns# namespace: anyone, members, or mods. Lemmy’s postingRestrictedToMods is also emitted and is true for mods.

Outgoing Articles put the title in name and a heading in the body, supporting readers that display only the body. summary carries the content warning. Plamenu removes a matching leading title when rendering incoming articles.

Inbound object handling includes Note, Question, Article, Page, Event, Document, and Video, with remote media handling for audio/video and PeerTube streams. These are receiving and rendering capabilities; they do not imply that Plamenu provides a publishing tool for each remote object or media type. The posting guide describes local web controls.

Remote software controls its own presentation. Some clients display an article or event as a title and link. Fixture and live-peer coverage is described in interoperability testing.

Webxdc

The experimental FEP-752d implementation supports Note invitations, Group/WebxdcSession actors, membership, sequenced updates, fan-out, replay, participant removal, session closure, and deletion.

Bundles are publicly retrievable. Plamenu accepts application/webxdc+zip and legacy application/x-webxdc, checks the SHA-256 Multihash in digestMultibase, and validates archive limits before caching or execution. Serve bundles from the separate Webxdc origin described in the deployment configuration.

window.webxdc.joinRealtimeChannel() uses the draft’s ephemeral ActivityPub baseline: binary packets travel as Create/WebxdcEphemeral and coordinator Announce activities. Connected clients receive them over a host WebSocket. Packets have no durable serial, database storage, retry job, or replay, and expire within five seconds. This does not provide a low-latency guarantee.

Plamenu uses bounded in-memory fan-out, duplicate suppression, and delivery concurrency. Routing/authorization metadata is cached for two seconds and signing keys for thirty seconds; local Webxdc membership and lifecycle changes invalidate authorization immediately. Signed inbox requests still read known actor keys and instance policy. Packet processing skips durable inbox bookkeeping and unknown key refetch. Packet payloads never pass through the database notification bus. Run one serving process per instance for this experimental channel; replicas would need a shared, non-persistent fan-out transport. Reverse proxies should also exclude ephemeral inbox bodies from request logging.

Video media alternatives

Plamenu adds optional, plain-text alternatives to canonical ActivityPub Video objects. The object retains PeerTube’s standard captions (subtitleLanguage), chapters (hasParts), post description (content) and ordinary file attachment. There is no requirement that a peer support the extensions to accept the Video.

transcript maps to http://schema.org/transcript in the scoped Video context. It is text, not HTML or a fetched URL, and may describe important visuals as well as dialogue and sounds. Native input accepts up to 50,000 Unicode characters; untrusted over-limit/NUL-containing values are discarded. Null/absence on a canonical update removes the previously stored transcript.

The following terms use this document’s canonical namespace, https://docs.plamenu.codefloe.page/federation/media#:

visualDescription

A short plain-text description of the visual media, distinct from the post description or captions. Maximum 1,500 Unicode characters. An explicit null clears it. Omission does not replace an ordinary attachment’s own alternative.

audioDescribed

A boolean author statement that the actual soundtrack includes integrated audio description. It is not proof of conformance and does not cause an audio track to be synthesized. Omission/null is false.

visualsConveyedInAudio

A separate boolean author statement that the ordinary soundtrack already conveys every important visual. Local authors cannot select both claims. For a conflicting remote object, audioDescribed: true takes precedence. Omission/null is false. Text-only captions never imply either claim.

Authority, identity and display

Only an already authorized canonical Video update can modify these fields. Root alternatives apply to its canonical primary media, not unrelated files in a mixed-attachment post. Readable text is escaped when rendered; no network fetch is performed for any alternative. Single-primary deferred Video updates retain the attachment identity and existing same-origin player/transcript links.

Create, dereference, channel history and signed Update share the same serializer. Local edited alternatives, edit timestamp and outbox jobs commit atomically, including authorized collaborative edits under original uploader attribution. Client attachments expose equivalent snake-case keys. The first-party player shows written alternatives and explicit author soundtrack statements in native HTML disclosures, independently of timed captions.

PeerTube 8.3 ignores these extensions. Its supported description/caption/chapter updates are tested separately in both directions; lossless alternative re-export through PeerTube is not part of the compatibility claim.

Webxdc app libraries and catalogs

Plamenu separates reusable apps from running Webxdc sessions. A library app is a mutable identity with one current version; each version points to an immutable SHA-256 multihash package in the same storage used by FEP-752d sessions. Starting a session pins that exact digest. Updating or removing a library entry never changes a running session.

Libraries and moderation

  • A member with the create_webxdc role permission may keep a personal library, upload new versions, remove entries, and choose a personal or instance app when creating a session. Direct one-off .xdc uploads remain available.
  • A moderator with manage_webxdc may upload instance apps, promote a personal app, add a reviewed version, hide an app, make it available only to local members, publish it in the public catalog, or remove it.
  • Promotion adds an instance-library reference rather than moving the member’s entry. A later personal version is shown to moderators as awaiting review and is not promoted automatically.
  • hidden entries remain available to moderators but cannot start new member sessions. instance entries are available to signed-in local members. public entries are also exported from /webxdc/catalog.json.

The default personal limit is 50 app identities per member. Operators can set it from the Webxdc settings panel; zero disables personal saving without disabling one-off session uploads. Package bytes count against the existing per-account and whole-instance Webxdc storage quotas. Identical package digests count once. Durable session updates continue to count only toward their session and creator.

Removing an app deletes its versions, not its sessions. Package ZIP and expanded files are garbage-collected only after the last session and library version have both released the digest.

Package metadata

Every upload and import goes through the same ZIP path and resource limits. The root manifest.toml supplies name and optional source_code_url; without a name, Plamenu uses the .xdc filename. Root icon.png and icon.jpg are recognized in that order, with the normal Plamenu app icon as a fallback. The de-facto tag_name manifest field used by current app catalogs is retained as a version label, but is not treated as a Webxdc protocol requirement.

Malformed or excessively large manifests are rejected. Source links must be HTTP(S), metadata is length-bounded, and icons remain package assets rather than being copied into the social-site media store. See the upstream Webxdc package format.

External catalogs

Plamenu installs the Webxdc Apps source at https://apps.testrun.org/xdcget-lock.json by default. A moderator may remove it or add other sources. Plamenu currently provides an xdcget-v1 adapter for the JSON shape consumed by webxdc.org. Refresh is manual and bounded to 2,000 entries. It caches advisory metadata only; browsing a feed does not download or execute packages.

Signed-in members may browse sources that a moderator has configured and refreshed, then validate and save an entry to their personal library. Moderators can instead import an entry into the instance review queue. Import is a separate action. The package request uses the federation client’s HTTPS/hidden-service policy, DNS-rebinding-resistant SSRF checks, per-hop redirect validation, timeouts, failure budgets, global admission limit, and the operator’s package-size ceiling. Accepted response types are the two Webxdc types, ZIP, and generic binary downloads. The downloaded bytes are then hashed, expanded, and validated locally. Canonical manifest metadata and the resulting digest replace conflicting feed claims. Imported apps begin hidden for review. Source and bundle URLs remain attached as provenance. Instance imports begin hidden, while personal imports remain private; moderator mutations are written to the audit log.

Refresh and import stay manual by design: catalogs are executable-software discovery, not a background update channel. A changed catalog bundle can be revalidated from the moderation page. No package is silently installed and no running session is upgraded.

Public catalog and federation

GET /webxdc/catalog.json emits the current version of explicitly public instance apps in the widely deployed xdcget array shape, with additive digest_multibase and provenance fields. Version-scoped bundle and icon URLs are immutable and long-cacheable. Hiding or unpublishing an app removes it from the catalog and prevents new library sessions; already pinned sessions continue to work.

An ActivityPub representation was considered alongside the existing FEP-752d session model. Sessions are actors because they own membership, an inbox, an outbox, and ordered updates. App identities do none of those things, so representing them as session actors would conflate executable artifacts with live collaboration state. ActivityStreams Collection, Document, attributedTo, url, icon, and updated can describe much of a catalog, while digestMultibase and the Webxdc media types can be reused. However, there is not yet an interoperable activity vocabulary for app version lineage, moderation state, or update announcements. Plamenu therefore publishes the adapter JSON and stable integrity-bearing resources now, without inventing federation activities peers would not understand. A future FEP can map the same app/version records without a storage or identity migration.

Webxdc session protocol draft


slug: “752d” authors: “lnkr lnkr@burning.homes” status: DRAFT dateReceived: 2026-08-15

FEP-752d: Federated Webxdc application sessions

Summary

This FEP maps [Webxdc] application sessions to ActivityPub. Each session has a Group actor that coordinates membership and redistributes participant activities using Announce. Durable updates form a serial log; ephemeral packets reach connected clients without storage or replay. Invitations are ordinary Note objects with HTTPS links, usable on non-supporting software.

The keywords MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY are interpreted as specified by [RFC-2119] and [RFC-8174].

Session actor and bundle

A session is one shared application instance, identified by an HTTPS actor id. Its coordinator hosts that actor, admits participants, sequences durable updates, and redistributes traffic. A host runs the application and provides the Webxdc API for its user. Two sessions using identical bundle bytes still have independent membership, state, storage, and channels.

The session actor MUST:

  • include both Group and WebxdcSession in type;
  • expose inbox, outbox, and followers endpoints;
  • set attributedTo to its creator or controlling actor;
  • set webxdcProtocol to https://w3id.org/fep/752d;
  • identify exactly one immutable bundle as described below;
  • advertise sendUpdateInterval and sendUpdateMaxSize; and
  • authenticate its activities using the implementation’s ActivityPub authentication mechanism.

followers MUST contain exactly the actors with active, accepted, protocol-marked membership. Generic followers MUST NOT receive Webxdc traffic. The actor SHOULD serve an HTML landing page through content negotiation; it need not have a WebFinger address.

{
  "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/752d"],
  "id": "https://social.example/webxdc/chess",
  "type": ["Group", "WebxdcSession"],
  "name": "Chess with Alice",
  "attributedTo": "https://social.example/users/alice",
  "inbox": "https://social.example/webxdc/chess/inbox",
  "outbox": "https://social.example/webxdc/chess/outbox",
  "followers": "https://social.example/webxdc/chess/followers",
  "webxdcProtocol": "https://w3id.org/fep/752d",
  "attachment": {
    "id": "https://social.example/webxdc/chess/bundle.xdc",
    "type": "Document",
    "mediaType": "application/webxdc+zip",
    "url": "https://social.example/webxdc/chess/bundle.xdc",
    "digestMultibase": "uEiA-nuhrWADMWAE3jnLwXnYB7ytEgnGqTS9dzxeyQeO04A"
  },
  "sendUpdateInterval": 10000,
  "sendUpdateMaxSize": 128000,
  "published": "2026-08-15T12:00:00Z"
}

The bundle attachment MUST be a Document with HTTPS id and url and a digestMultibase: a Multibase-encoded SHA-256 Multihash of the exact .xdc archive bytes [Data-Integrity]. Publishers SHOULD use application/webxdc+zip; consumers MUST also accept the deployed application/x-webxdc type. A filename suffix or arbitrary ZIP attachment alone does not identify an executable session. Hosts MUST verify the digest before extraction or execution.

The bundle identity, media type, digest, and bytes MUST remain unchanged for the session’s lifetime. Its retrieval URL MAY change if those properties remain the same. A new application version requires a new session actor.

Public bundle retrieval is the interoperable baseline. A private bundle MUST require authenticated membership, rather than possession of its URL. Its retrieval requires a mutually supported actor-authenticated HTTPS mechanism, which this FEP does not define. A coordinator MUST reject membership if it cannot supply the bundle to that host. Accepted hosts MUST be able to obtain the bundle for joining and resuming while the session remains open.

Invitations and discovery

An invitation MUST be an ordinary Create of a Note containing a human-readable HTTPS anchor to the session landing page. It SHOULD also set audience to the session actor and attach a Link with that URL, mediaType: "text/html", and rel: "https://w3id.org/fep/752d/open". The explicit anchor is required because generic clients may ignore attachments or extension fields.

{
  "type": "Note",
  "content": "<p>Play <a href=\"https://social.example/webxdc/chess\">chess with Alice</a>.</p>",
  "audience": "https://social.example/webxdc/chess",
  "attachment": {
    "type": "Link",
    "href": "https://social.example/webxdc/chess",
    "mediaType": "text/html",
    "rel": "https://w3id.org/fep/752d/open"
  }
}

Supporting hosts resolve and validate the actor before offering a trusted launch control. Discovery, previewing, or reading an invitation MUST NOT execute the bundle. Invitation visibility neither grants membership nor encrypts session content. Invitations are independent posts: copying, editing, or deleting one does not copy, alter, or end the session.

The landing page SHOULD show the application, coordinator, session state, and how to join. It MAY offer a coordinator-operated guest runtime or a remote interaction flow. Visiting the link does not authenticate a remote account; guest identities MUST be described as guests, and scoped to the session. Guest management and cross-server browser authentication are outside this FEP.

Membership and session lifetime

Session lifetime is independent of an application’s process or browser window. An open session persists when nobody is running the app. Closing a window, disconnecting, or leaving the ephemeral channel does not end membership or the session. Application-local storage is disposable cache; the durable log is the shared state used to join or resume.

Join and resume

A host joins by sending an authenticated Follow to the session actor, with object, context, audience, and to identifying that actor and webxdcProtocol: "https://w3id.org/fep/752d". Generic follows MUST be rejected. The coordinator checks session state, actor/domain blocks, admission policy, and resource limits, then responds with Accept or Reject referencing that Follow or its identifier. HTTP success alone is not membership acceptance.

{
  "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/752d"],
  "id": "https://remote.example/users/bob/follows/chess-1",
  "type": "Follow",
  "actor": "https://remote.example/users/bob",
  "object": "https://social.example/webxdc/chess",
  "to": "https://social.example/webxdc/chess",
  "context": "https://social.example/webxdc/chess",
  "audience": "https://social.example/webxdc/chess",
  "webxdcProtocol": "https://w3id.org/fep/752d"
}

An Accept MUST be authenticated as the session actor, addressed to the participant, and include audience, webxdcProtocol, and webxdcMaxSerial. The latter is the greatest durable serial assigned when acceptance commits, or zero for an empty log. The host MUST match it to its pending Follow.

{
  "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/752d"],
  "id": "https://social.example/webxdc/chess/activities/accept-bob",
  "type": "Accept",
  "actor": "https://social.example/webxdc/chess",
  "object": "https://remote.example/users/bob/follows/chess-1",
  "to": "https://remote.example/users/bob",
  "audience": "https://social.example/webxdc/chess",
  "webxdcProtocol": "https://w3id.org/fep/752d",
  "webxdcMaxSerial": 6
}

Acceptance and the replay boundary MUST be atomic: for boundary B, serials 1..B are replayed and every subsequent update includes the participant in live fan-out. The coordinator MUST retain the complete durable log while allowing new joins; inability to supply it requires rejecting new membership.

Hosts MUST NOT submit updates or packets before acceptance. Replay and live announcements may arrive before or after Accept, in any order. Hosts MUST NOT present the app as synchronized until all serials 1..B are available. Ephemeral packets arriving before acceptance or channel connection MUST be discarded, never held for later launch.

Reopening the app under an active membership resumes the same session, pseudonymous identity, and durable history. It does not require a fresh Follow. If cached history was discarded or synchronization cannot complete, the host MAY leave and join with a new Follow to obtain a new replay boundary. An access-controlled OrderedCollection of durable announcements MAY optimize retrieval, but does not replace required inbox replay without a separate agreement.

Leave and removal

A participant leaves with an authenticated Undo of its accepted Follow. The coordinator MAY remove a participant with an authenticated Remove, whose object is the participant, target is the session’s followers collection, and audience is the session. Removal MUST stop authorization for new traffic, future delivery, private retrieval, and connected ephemeral channels. A host MUST disable local participation as soon as it leaves or learns of removal. A new accepted Follow is required to rejoin; stale responses to an earlier membership MUST NOT reactivate it.

Leaving does not retract the participant’s accepted durable updates, which remain necessary to reconstruct shared state. Previously delivered data cannot be recalled. A host MAY discard its cached session when no local membership needs it. A coordinator MAY require the controlling user to close or delete the session instead of leaving it unmanaged; ownership transfer is not defined.

Close

An open session has no implicit expiry. A coordinator MAY close it under its published retention or administration policy, including inactivity limits. Closure MUST be represented by setting endTime on the session actor and sending an authenticated Update to current participants. Following [ActivityPub], object MUST contain the complete updated actor, including its immutable bundle metadata, endTime, and updated; it is not a partial patch.

Closure is terminal for that actor. The coordinator MUST reject new joins, durable submissions, and ephemeral packets. Hosts MUST stop sending and close ephemeral connections when they learn of closure. Delayed durable announcements already accepted before closure MAY still complete retained history. Read-only access to the landing page, bundle, or history MAY continue under local policy. Restarting play requires a new session actor; clearing endTime MUST NOT reopen an existing session.

Delete

A coordinator MAY delete an open or closed session with an authenticated Delete whose object identifies the session actor, optionally as a Tombstone with formerType: ["Group", "WebxdcSession"] and deleted. It MUST deliver this activity to the participant snapshot taken before purge.

Deletion terminates participation and removes the bundle, extracted files, durable log, memberships, and guest credentials held for that session. Receiving hosts MUST stop its runtimes and channels and purge their cached session data. A minimal tombstone MUST prevent delayed activities from recreating the deleted session; an HTTP representation SHOULD return 410 Gone. The tombstone need retain only the session identifier and deletion time. The coordinator MAY retain signing material and delivery metadata needed to finish sending Delete.

Deleting a session does not delete its invitation posts, other sessions using the same bundle, or copies exported by users. Servers cannot guarantee erasure from uncooperative recipients or disconnected devices.

Durable updates

Submission and validation

A host maps sendUpdate(update, descr) to Create of a WebxdcUpdate, addressed to the session actor. The deprecated description argument is not federated. The activity and object MUST have distinct, globally unique identifiers, the participant as actor/attributedTo, and the session as context and audience. webxdcUpdate contains the complete Webxdc update as a JSON literal (@type: @json), including payload and any optional or unknown API members. The payload may itself be any JSON value, including null [Webxdc-sendUpdate].

{
  "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/752d"],
  "id": "https://remote.example/users/bob/activities/move-1",
  "type": "Create",
  "actor": "https://remote.example/users/bob",
  "to": "https://social.example/webxdc/chess",
  "context": "https://social.example/webxdc/chess",
  "audience": "https://social.example/webxdc/chess",
  "object": {
    "id": "https://remote.example/users/bob/updates/move-1",
    "type": "WebxdcUpdate",
    "attributedTo": "https://remote.example/users/bob",
    "context": "https://social.example/webxdc/chess",
    "audience": "https://social.example/webxdc/chess",
    "webxdcUpdate": {"payload": {"move": "e2e4"}, "summary": "Black to move"}
  }
}

sendUpdateInterval is a non-negative integer in milliseconds; sendUpdateMaxSize is a positive byte count. Hosts MUST expose these values to the app and enforce them before federation. Hosts SHOULD queue early calls in order. The size limit measures the UTF-8 compact JSON serialization of the complete update, excluding the ActivityPub envelope. Coordinators MUST allow sufficient envelope overhead and serialization margin to honor their advertised limit; member ordering and insignificant whitespace must not invalidate an otherwise conforming update. Separate abuse and storage quotas are permitted.

The coordinator MUST authenticate the submitting actor, check active membership and session state, validate both envelopes and the Webxdc update, and enforce size, rate, and moderation limits. href MUST be an in-app relative reference. Human-readable fields MUST be treated as untrusted text. Invalid submissions MUST NOT be sequenced or redistributed; the coordinator MAY send Reject referencing the Create.

Sequencing, delivery, and replay

For each accepted update the coordinator atomically assigns the next contiguous positive webxdcSerial, starting at 1, and stores the unchanged Create. Serials MUST NOT exceed JavaScript’s maximum safe integer, 9007199254740991. It wraps the Create in an Announce with the session actor as actor, the session as audience, its followers collection as to, and the assigned serial.

The coordinator MUST resolve recipients and deliver the announcement to every active participant, including the sender, using ordinary durable ActivityPub delivery. Merely addressing a collection is insufficient. The sender’s echoed announcement, rather than HTTP acceptance of its submission, establishes the coordinator’s acceptance.

Hosts MUST apply durable updates only inside authenticated announcements from the expected coordinator. Direct participant-to-participant updates are not authoritative. The coordinator’s wrapper vouches for the embedded activity; it does not prove end-to-end participant authorship.

The coordinator MUST map both accepted input identifiers to their serial and announcement. Identical redelivery MUST NOT allocate another serial; identifier reuse with different content or a different counterpart identifier MUST be rejected. Hosts MUST deduplicate (session, serial) and treat conflicting contents at one serial as an integrity failure. Accepted updates are append-only: Update, Delete, or Undo MUST NOT mutate individual entries. A coordinator unable to retain the required history SHOULD close the session.

setUpdateListener(callback, serial) delivers locally known updates after serial in increasing serial order, then resolves its promise and continues with new updates [Webxdc-setUpdateListener]. The callback receives the preserved update with serial from the coordinator and max_serial equal to the highest locally known serial. Hosts MUST tolerate reordered and delayed federation, maintain the acceptance-boundary completeness check, and SHOULD deliver a contiguous prefix when possible. Applications must still handle concurrent changes; the coordinator’s order is not distributed consensus.

Ephemeral channel

Transport and semantics

This FEP treats Webxdc’s “realtime” API as an ephemeral channel: an ActivityPub-compatible baseline, without a low-latency guarantee. It is expected to underperform in latency-sensitive applications such as competitive reaction games. Lower-latency approaches, including direct client connections to the coordinator or overlay networks, require negotiation of other transport profiles; they do not use ActivityPub as packet transport and are outside this FEP.

Coordinators implementing this FEP MUST support the ephemeral packet envelope. Hosts MAY omit the experimental joinRealtimeChannel() API; when exposed over this baseline, it MUST follow [Webxdc-Realtime]. Membership authorizes the channel; opening or leaving it is local connection state and requires no new federated membership activity.

A packet follows the same participant → coordinator → participant-host path as a durable update, using Create and Announce, but MUST NOT receive a serial. Implementations MUST NOT persist packet payloads or envelopes to databases, activity archives, inbox/outbox collections, retry jobs, or application logs. They MUST NOT replay packets or retry failed delivery. Bounded, short-lived memory buffers and duplicate-ID caches are permitted. Implementations SHOULD cache routing and authorization metadata to avoid per-packet database work; membership, signing, and moderation checks still apply.

Only clients with a currently joined channel may receive packets. A receiving host MUST discard packets if there is no eligible connected client. It MUST NOT retain them for a later connection, listener registration, acceptance, or app launch. Slow consumers and overloaded hosts MAY drop packets. Packet delivery has no acknowledgment, ordering, completeness, or fairness guarantee. The originating participant MUST NOT receive its own packet as an echo.

Envelope

A participant sends a Create with a WebxdcEphemeral object. The activity MUST have a globally unique id, the authenticated participant as actor, the session as to, context, and audience, and the protocol marker. Its object MUST have a globally unique id, the same participant as attributedTo, the session as context, and webxdcData containing standard, padded RFC 4648 Base64 of the binary packet (not a data URL). The decoded size MUST NOT exceed 128000 bytes; an empty packet is valid.

published and endTime on the activity are required RFC 3339 timestamps. endTime MUST be later than published and no more than five seconds after it. Each hop MUST discard expired packets and bound any in-memory wait or network attempt by the remaining lifetime. Receivers MUST reject publication times more than one second in the future; this small clock tolerance is not a latency promise. Implementations need reasonably synchronized clocks.

{
  "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/fep/752d"],
  "id": "https://remote.example/users/bob/ephemeral/1",
  "type": "Create",
  "actor": "https://remote.example/users/bob",
  "to": "https://social.example/webxdc/chess",
  "context": "https://social.example/webxdc/chess",
  "audience": "https://social.example/webxdc/chess",
  "webxdcProtocol": "https://w3id.org/fep/752d",
  "published": "2026-08-15T12:05:00Z",
  "endTime": "2026-08-15T12:05:05Z",
  "object": {
    "id": "https://remote.example/users/bob/ephemeral/1#packet",
    "type": "WebxdcEphemeral",
    "attributedTo": "https://remote.example/users/bob",
    "context": "https://social.example/webxdc/chess",
    "webxdcData": "AAEC/w=="
  }
}

After validating current membership, session state, limits, and envelope, the coordinator wraps the unchanged Create in an Announce. The wrapper MUST have its own unique id, the session actor as actor, the protocol marker, the session as audience, and to equal to its followers collection. It MUST copy published and endTime unchanged and MUST NOT include webxdcSerial. It attempts direct authenticated inbox delivery to participant hosts; hosts without connected clients discard it. Multiple recipients sharing one inbox SHOULD receive a single delivery. No federated presence protocol is required.

A remote host MUST authenticate the outer activity as its expected coordinator and validate the embedded packet and unchanged deadline. It MUST NOT apply a direct participant packet or dereference a missing packet body. HTTP delivery MUST be signed by the activity’s actor; general relay/refetch fallback does not apply to these non-retrievable activities. Unknown keys require ordinary actor refresh outside the packet path; losing such packets is allowed.

Duplicate suppression SHOULD use a bounded in-memory (session, Create.id) cache lasting at least until expiry. Suppression may be lost on restart; there is no exactly-once guarantee. Neither duplicate detection nor rejection should produce durable per-packet records. Oversized frames, malformed Base64, cross-session addressing, unauthorized senders, and expired packets MUST be dropped or rejected before redistribution.

Host API

joinRealtimeChannel() synchronously returns a channel with setListener, send, and leave. A second join before leaving MUST throw. setListener replaces the callback, which receives a Uint8Array; send accepts a Uint8Array up to 128000 bytes. Sending while disconnected may silently lose the packet. Hosts MUST NOT buffer those sends for reconnection. leave invalidates that channel object; rejoining creates a fresh connection without old packets. Closing the runtime releases the channel without undoing session membership.

A host MUST enforce the same limits at the trusted bridge and transport boundary, independently of checks in app-visible JavaScript. It MUST stop traffic and invalidate connections on leave, removal, closure, or deletion. Hosts SHOULD apply bounded connection, packet-rate, byte-rate, and concurrent federation limits. Ephemeral overload MUST NOT enqueue work on the durable update path. Apps should put recoverable shared state in durable updates.

Runtime, privacy, and security

Hosts MUST implement the relevant [Webxdc] container and host API requirements. selfAddr MUST be a stable session-scoped pseudonym for the participant across devices and restarts, and SHOULD be unlinkable across sessions. Actor IDs, email addresses, signing keys, and credentials MUST NOT be exposed as selfAddr. A persisted random mapping or stable keyed derivation is suitable. selfName is a display name visible to the app; hosts should disclose this.

Bundles are untrusted executable content. Hosts MUST require explicit launch, isolate storage and execution by session, deny app-initiated Internet access, and keep account credentials outside the runtime. Browser hosts SHOULD use a dedicated uncredentialed origin per session and an authenticated MessageChannel to the trusted parent. CSP is defense in depth, not a complete network sandbox. A runtime that cannot prevent app-initiated network access does not meet Webxdc’s isolation requirement and MUST disclose that limitation.

Server-side fetches MUST enforce HTTPS, SSRF and redirect policy, digest verification, and time/size limits. Archive extraction MUST bound compressed and expanded sizes, compression ratio, file count, nesting, and path lengths, and reject traversal, absolute paths, symlinks, special files, and duplicate or ambiguously normalized paths. Bundle integrity establishes byte identity, not application safety or provenance.

Hosts MUST validate bridge origin/channel, session, method, type, and limits. App-supplied text MUST be rendered as text; href must stay inside the package. Notification text and rates require validation. sendToChat, exports, and external URL opening MUST pass through explicit trusted user review before posting or leaving the sandbox. No automatic ActivityPub mapping for sendToChat or file import is defined here.

The coordinator controls membership, order, availability, and retention. It can read or censor traffic and knows participants’ actor identities. HTTPS and restricted addressing do not provide end-to-end encryption. A private participant collection SHOULD require authorization. Guests, invite tokens, and bundle access MUST NOT treat a copied invitation URL as account identity.

Implementations MUST apply their actor/domain moderation policies to both channels and invalidate cached authorization when membership or session state changes. Packet bodies SHOULD be excluded from reverse-proxy and diagnostic logging as well as application storage. Multi-process hosts need an ephemeral fan-out mechanism or routing that reaches their connected clients; a persistent broker is not a conforming packet store.

Implementations SHOULD ship the protected JSON-LD context and MUST NOT allow remote contexts to redefine these terms. Plain-JSON implementations MUST recognize the exact compact names and preserve application JSON literally. Unknown properties do not authorize another transport.

Vocabulary and context

The namespace is https://w3id.org/fep/752d/ [FEP-888d]. The context below is also supplied as context.jsonld for publication at https://w3id.org/fep/752d.

TermMeaning
WebxdcSessionAdditional type of the session Group actor
WebxdcUpdateDurable Webxdc update object
WebxdcEphemeralNon-persistent binary packet object
webxdcProtocolProtocol IRI on session and control activities
webxdcUpdateComplete Webxdc update as a JSON literal
webxdcDataStandard Base64 packet data
webxdcSerialPositive coordinator-assigned durable serial
webxdcMaxSerialNon-negative acceptance replay boundary
sendUpdateIntervalMinimum durable update interval, milliseconds
sendUpdateMaxSizeMaximum serialized durable update bytes
{
  "@context": {
    "@version": 1.1,
    "@protected": true,
    "WebxdcSession": "https://w3id.org/fep/752d/WebxdcSession",
    "WebxdcUpdate": "https://w3id.org/fep/752d/WebxdcUpdate",
    "WebxdcEphemeral": "https://w3id.org/fep/752d/WebxdcEphemeral",
    "webxdcProtocol": {"@id": "https://w3id.org/fep/752d/webxdcProtocol", "@type": "@id"},
    "webxdcUpdate": {"@id": "https://w3id.org/fep/752d/webxdcUpdate", "@type": "@json"},
    "webxdcData": "https://w3id.org/fep/752d/webxdcData",
    "webxdcSerial": {"@id": "https://w3id.org/fep/752d/webxdcSerial", "@type": "http://www.w3.org/2001/XMLSchema#positiveInteger"},
    "webxdcMaxSerial": {"@id": "https://w3id.org/fep/752d/webxdcMaxSerial", "@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"},
    "sendUpdateInterval": {"@id": "https://w3id.org/fep/752d/sendUpdateInterval", "@type": "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"},
    "sendUpdateMaxSize": {"@id": "https://w3id.org/fep/752d/sendUpdateMaxSize", "@type": "http://www.w3.org/2001/XMLSchema#positiveInteger"},
    "digestMultibase": "https://w3id.org/security#digestMultibase"
  }
}

Scope and implementations

An invitation-only publisher need implement only the ordinary linked Note. A session coordinator implements membership, lifecycle, durable replay, and ephemeral redistribution. A host implements membership, durable consumption, and isolated execution; its experimental ephemeral API remains optional. Client REST APIs, guest identity formats, user-interface design, alternative transport profiles, end-to-end encryption, snapshots/compaction, application signatures, and coordinator migration are outside this FEP.

Plamenu implements this draft experimentally. Its browser compatibility runtime isolates account credentials and session origins but does not claim complete Webxdc network isolation. Independent interoperability has not been established.

References

CC0 1.0 Universal (CC0 1.0) Public Domain Dedication

To the extent possible under law, the authors of this Fediverse Enhancement Proposal have waived all copyright and related or neighboring rights to this work.

Manage remote profile history

Remote history fetches older public and unlisted posts when a signed-in member opens a remote Person or Service profile. It is enabled by default, including resolution of bare item IRIs.

Enable or disable

With Manage federation permission, open Administration → History and use Enable remote history hydration and Resolve bare item IRIs to control fetching. Both are on by default. Bare-IRI resolution adds individual object fetches for servers whose outbox pages contain links instead of embedded posts.

Open a known remote profile while signed in. Its history state should progress from queued or fetching to partial or complete. Check the History page for failures, queue growth, and storage by origin. Media is fetched when viewed; loading history should not create notifications or outgoing activities.

To stop new work, clear Enable remote history hydration. An active request may finish within its 30-second limit. Queued jobs remain and resume when the feature is enabled again; cached posts remain readable.

Limits

WorkLimit
Items examined per page20
Pages per member action1
Collection documents fetched initially2
Concurrent jobs per origin1
Queued jobs per origin2
JSON response2 MiB
Job duration30 seconds
Individual object fetches with bare-IRI resolution5 per page

These limits are fixed. Operators can change retention from 1 to 3650 days; its default is 90 days.

Read the history state

StateMeaning or next step
idleNo active fetch
queued / fetchingWork is pending or running
partialMore may be available; the member can choose Load older posts
completeThe observed collection had no unfetched next page
unsupportedThe collection, attribution, authorization, or federation policy prevented this attempt
backoffA transport error, timeout, or rate limit delayed retry; check retry_at

The profile panel and API expose attempts, retry time, and item counts. Use the admin failure and origin tables to narrow down a problem, then inspect worker logs. Repeated requests coalesce. Restarting the server does not clear stored backoff; expired job leases are reclaimed.

If images fail, check the media proxy and origin availability. History images are cached on demand and videos when played. A member’s Allow direct remote media preference permits a direct-origin fallback after proxy failure.

Retention and pruning

An hourly sweep removes up to 200 stale history posts. Viewing an actor’s profile refreshes its retention clock. Posts received through live delivery or referenced by local bookmarks, favourites, pins, reactions, votes, replies, boosts, quotes, or reports are preserved.

Review Cold statuses, Stored text bytes, and Cold storage by origin before shortening retention. Prune one batch now applies the retention rule to at most 200 rows and queues media cleanup. Avoid deleting status rows manually, which bypasses those checks. Pruned posts can be fetched again only while the remote server still provides them.

Client API

The endpoints use the OAuth read scope:

  • GET /api/v1/accounts/:id/remote_history reads local history state.
  • POST /api/v1/accounts/:id/remote_history/fetch requests more history.
  • An authenticated first-page GET /api/v1/accounts/:id/statuses can also queue the initial fetch. Anonymous, paginated, and pinned-only requests do not.

Unexpected activity

Disable history fetching if cached history appears in home/public/list/tag feeds, streaming, or full-text search, or if importing it creates notifications or outgoing federation work. Retain the affected actor and post IDs, timestamps, and logs for investigation. Cached history should remain confined to profile history until it is received through normal delivery.

Contributing

Use the Codefloe repository for bug reports and pull requests. Report vulnerabilities through the security policy.

Discuss large features, schema or federation changes, and new dependencies first. A patch should explain the problem, resulting behavior, checks run, and any effects on stored data, configuration, security, or interoperability. Sign commits and include the DCO sign-off (git commit -S -s) and update Unreleased for user-visible changes.

See development for setup and checks.

Documentation

Documentation source is in docs/. Use ./dev docs-build to build a local preview.

Write for the task and audience: member actions in members/, deployment and recovery in operators/, wire contracts in API/federation references. Verify UI labels, commands, defaults and permission claims against the matching source. Explain prerequisites, steps, expected result and recovery where relevant. Link to one canonical explanation instead of duplicating it.

Do not add agent session logs, dated progress diaries, acceptance transcripts or feature-completion checklists to the handbook. Store run artifacts under ignored target/; use issues for plans and the changelog for user-visible changes. Keep future work explicitly separate from shipped behavior. Never turn a subset, a skip or an old run into a current full-pass or accessibility claim.

Check links and syntax for prose and example edits. ./dev docs-check also builds the application and checks runtime documentation. If CLI help changes, regenerate it with ./dev docs-generate. Shell examples in docs/examples/ must pass syntax checking and ShellCheck; deployment TOML examples must pass configuration tests.

Development

Install the pinned Rust toolchain, Docker Compose, PostgreSQL client tools, FFmpeg/ffprobe, and cargo-nextest. E2E work also needs Python 3 and uv. The development stack runs PostgreSQL 18 and Mailpit on loopback ports.

cp .env.example .env
./dev doctor
./dev up

./dev up generates an ignored configuration, creates a disposable local account, and starts Plamenu in the background. Use ./dev run for foreground operation, and ./dev logs, ./dev status, and ./dev down to manage it. Set PLAMENU_CONFIG to use your own configuration.

Keep credentials, generated configuration, database dumps, media, and .dev/ out of version control. Media defaults to .dev/media; preserve that directory when reusing a development database in another checkout.

Choose a check

Run from the checkout; development commands load .env and export DATABASE_URL. ./dev release instead uses isolated configuration and disposable services; see Releasing.

CommandPurpose
./dev testRust tests through cargo-nextest
./dev checkInventory and federation-manifest checks, formatting, Clippy, offline Cargo checks, and the portable standalone gate
./dev test-harnessPython harness/budget tests, standalone E2E helpers and fault-proxy tests, and JavaScript unit tests
./dev test-harness --profile fullThe same standalone suites plus the owned FUSE fault test; requires every case to run without skips
./dev gate-inventoryRecollect and compare the complete browser and live E2E inventories without executing tests
./dev sqlxRegenerate .sqlx query metadata after SQL or migration changes
./dev sqlx-checkCheck query metadata without updating it
./dev docs-checkBuild the application, check CLI help and documentation examples, and build/check the book
./dev a11yRun the full Chromium, Firefox, WebKit, mobile, and no-JavaScript accessibility regression matrix
./dev a11y-matrixValidate complete WCAG 2.2 A/AA criterion-to-evidence coverage
./dev ciLocal check, docs-check, test, and dependency policy when cargo-deny is installed

Prepare the standalone test dependencies once:

python3 -m venv .dev/gate-tools
.dev/gate-tools/bin/pip install -r scripts/requirements-tests.txt
npm --prefix accessibility ci --ignore-scripts

The standalone runner uses that interpreter when present; PLAMENU_TEST_PYTHON can select another prepared interpreter. It attempts both Python and JavaScript suites even after failures, ignores ambient test-selection options, and saves logs, JUnit results and a scoped report under target/gates/<run-id>/. The portable profile explicitly excludes the owned FUSE mount test and permits the three scanner integration tests to skip when Gitleaks is absent. It never reports a full standalone pass. The full profile also requires Gitleaks (on PATH or through GITLEAKS), the FUSE 3 development library, fusermount3, and permission to use /dev/fuse. A standalone full pass is not a full Rust, browser, federation, performance, or release qualification.

Browser and E2E qualification use checked-in accessibility/inventory.json and e2e/inventory.json. They bind the expected cases to their source files. After changing those sources, prepare the locked E2E environment (cd e2e && uv sync --locked), run ./dev gate-inventory --write from the repository root, and review the case additions, removals and capability changes. The command supplies no selectors. A passing subset, an interrupted run, or an obsolete inventory cannot qualify as a full pass. Automatic contribution jobs check inventory source hashes and the federation pairing manifest without executing tests; test execution remains manual.

./dev test prepares PostgreSQL’s template1 so SQLx tests can create isolated schema copies. Use the disposable development database. Select a test suite or filter when working on a specific feature:

./dev test -p plamenu --test web -E 'test(composer_)'

Commit generated .sqlx changes after running ./dev sqlx; do not hand-edit the metadata. For prose-only edits, check links and example syntax. See documentation guidance.

Performance

For changes affecting database query counts or runtime cost, run the calibrated benchmark and grade its results:

./dev bench
./dev bench-check --strict

Include the results with the change and commit the passing record in bench/results/. Explain query-count changes, including decreases caused by changed data. Known query fan-outs tracks remaining per-item database work.

The benchmark uses the versioned plamenu_bench database and machine-specific budgets. ./dev bench-concurrency measures concurrent posting and delivery fan-out. Calibration and coverage are described in bench/README.md.

Regression and federation tests

Test the affected production entry point. Transport tests should exercise the guarded HTTP client, including redirects. Mutations that enqueue federation work need rollback coverage for both the data and the outgoing jobs. Deletion tests should check the captured recipients. See architecture.

For web changes, check the rendered controls and interactions in a browser; server-response assertions cannot detect controls hidden by CSS or broken by JavaScript. Run ./dev a11y-install once for the pinned browser container, then ./dev a11y. The gate uses a digest-pinned browser container and an isolated disposable database rather than the standing development data. The manual and release protocol is documented in Accessibility release verification.

Music renditions encode at normal speed in ordinary browser journeys. Cold playback cases explicitly select coldRendition: true and require A11Y_COLD_RENDITION_FIXTURE=1. Their owned fixture feeds real WAV audio through a local FIFO, holds the final two seconds until the browser has proved playback while encoding is unfinished, then releases the tail. The file-only FFmpeg protocol restriction, codec checks, and all browser projects remain intact. Missing release, encoder failure, or incomplete cleanup cannot qualify a pass.

Browser reset receipts include separate timings for database cloning, media copying, process readiness and executable identity checks. The candidate is hashed once and bound to its device, inode, size, nanosecond modification/change times and mode. Every command and running process must still match that binding; even equal-size writes with restored modification times are refused. Each test continues to receive a fresh database, media tree and server process.

Rust integration fixtures live in the development-only plamenu-test-support crate so their implementation compiles once rather than in every test binary. Its actor helpers issue distinct RSA-2048 pairs from an immutable 64-pair fixture reserve, then generate fresh pairs when the reserve is exhausted. The shared allocator never recycles a pair within a process, even across local and remote actors or repeated handles. Each caller owns its PEM strings; Ed25519 generation, encrypted key provisioning, signing and verification remain real. Tests that explicitly exercise key generation and rotation still call the production generators. The reserve is public test material generated by plamenu_ap::keys::generate_keypair, and is never linked into the shipping server. The music jobs, album-access and native-subscription fixtures similarly issue independently salted PHC hashes for their known fixture-password, with fresh production hashes after the reserve is exhausted. Real Argon2 verification remains in use. The exhaustion regression compares every reserved hash’s parameters with a freshly generated production hash, so a change in the production defaults requires updating the reserve. Ordinary server tests reference plamenu_db::MIGRATOR, and database unit tests reference crate::MIGRATOR, rather than embedding the same migrations in each case. The migration source and checksum checks are unchanged. Local, release and manual CI test databases seed template1 once. Upgrade tests retain migrations = false, explicitly clear their isolated schema, and replay the required old migrations before upgrading. The release and manual CI test runners execute serially without fail-fast.

The related account_collections, account_feed, applications_settings and local_identity sources share the default account_api test binary to reduce repeated compilation and linking. Likewise, notification_delivery, notification_filtering, notification_inbox, notification_retention and notifications_v2 share notifications_api. The admin_accounts, admin_instance_policy, admin_metrics and admin_reports sources share admin_api. Registration, invitations, password reset, key storage, multi-account sessions, OAuth scopes and token admission share auth_api. Their original files and assertions stay in place. Blocking and muting, follows and follow settings, lists, filters, markers, pins and bookmarks, and polls share social_api with the same original-source and explicit-target compatibility. The router API, client compatibility, content negotiation, CORS, forwarded activities, instance metadata, rate limits, security headers and wire-fixture sources share http_api under the same rules. Search, account directory, tags and trends share search_api under the same original-source and explicit-target rules. Guarded discovery acquisition, communities, diversity, peer expansion, posts, videos and wider search share discovery_api under those same rules. Their original target names and every case remain selectable; the separate discovery directory and web targets retain their existing wiring. Grouped sources import the shared fixture crate directly, avoiding repeated loading of the common/mod.rs shim; test bodies and assertions are unchanged. cargo nextest run -p plamenu --test NAME selects one of these groups; explicit --test applications_settings, --test notification_inbox and the other original target names still work. New test files remain automatically discoverable. A shared guard in account_api checks that every target excluded from default execution appears in exactly one default harness, under its original module name. Nextest continues to run each case in its own process, with the configured serial execution. These groups reduce test binary compilation and linking. The pinned Cargo toolchain also honors test = false for compatibility targets under --all-targets, so Clippy and online SQLx preparation check those sources through their groups once. Explicit --test NAME still selects an original target without extra features.

For federation changes, check serialization and the relevant peer exchange. The Python E2E suite is currently specific to one developer’s machine and is included for transparency and examples; it is not expected to work elsewhere as provided. See interoperability testing and e2e/README.md for its setup limitations and existing workflow.

Interoperability testing

Rust integration tests in crates/server/tests/ exercise the router, database, delivery queue, signatures, and serialization using pinned ActivityPub fixtures. The Python suite in e2e/ tests HTTPS exchanges with running peer servers.

The Python E2E suite is currently tied to one developer’s machine and an ad hoc local setup. It is not portable or expected to be usable elsewhere as provided; it is included for transparency and as examples. For release builds, the suite is omitted by default (./dev release --skip-e2e makes that explicit); the portable application tests and packaged-image restore drill still run.

Developer’s live-suite workflow

The existing machine-specific workflow runs from the source checkout:

./dev provision-peers
./dev up
./dev e2e-full

Provisioning uses the Compose fixtures and upstream revisions in e2e/peers/. It prepares local TLS and starts the required peer fleet. Generated checkouts, credentials, certificates, and persistent state are ignored. To use an existing fleet, configure the peer paths and URLs in .env.example.

Keep the generated matrix with release evidence. It records outcomes, skips, expected failures, checkout differences, and running image IDs. A passing test establishes the exchange it asserts for that peer configuration. Skipped cases remain unverified. The source checkout’s e2e/README.md lists the release policy and report format.

Identity proofs with Mitra

./dev e2e tests/test_identity_proofs_mitra.py -v checks FEP-c390 Ed25519 proofs through both servers’ client APIs. It covers initial discovery at Mitra, verified actor Updates and removal in both directions, and preservation of Mitra’s original signed statement. Update checks read cached accounts.

Exchanges between Plamenu servers

e2e/tests/test_plamenu2_*.py uses a second instance at https://plamenu2.local. The test session creates it from the working tree with its own database, media directory, and port, then tears it down. e2e/plamenu_e2e/ephemeral.py manages this instance and the self-destruct peer.

These tests cover receiving Plamenu’s own quotes, reactions, group moderation, events, articles, collections, and follower migration. They check that the two ends agree; foreign-peer tests are still needed to check interoperability.

Unicode account handles

Remote usernames retain their Unicode spelling. Domains use IDNA ASCII for account identity, API acct fields, federation and profile paths; the native client shows Unicode domains in labels, reply drafts, autocomplete and account management forms.

Discovery follows RFC 7565: an acct: URI percent-encodes the UTF-8 username, and WebFinger separately encodes that URI as its resource query parameter. Incoming subjects decode the username once before validation. Malformed UTF-8, encoded separators and double-encoded usernames are rejected. The actor URI must still match the WebFinger result.

The federation transport test exercises an actual HTTP/JRD response containing an encoded Chinese username. Server-router tests cover Application actors, video channels on IDNs, mentions in all post formats, search, profile links, and no-script reply/preview and account-management forms.

A successful WebFinger lookup is insufficient if the advertised actor URL returns HTML instead of an ActivityPub document. Check its Content-Type and canonical identity separately from IDN parsing; a normal website or REST channel response does not authenticate an actor.

BookWyrm

The local fixture pins unmodified BookWyrm 0.9.3 and its official prebuilt image. e2e/tests/test_bookwyrm_federation.py covers WebFinger discovery, Follow/Accept/Undo in both directions, published book reviews, Plamenu Notes mentioning a BookWyrm user, replies in both directions, and resolving reviews, ratings, comments and quotations. Social actions use only fixture accounts. The lifecycle cases also check edits and deletion in both directions.

BookWyrm signs profile discovery with an instance actor whose key ID is <actor>/#main-key, while its canonical actor ID has no final slash. Plamenu resolves the key’s base URL through canonical-object discovery, independently fetches that canonical actor, and verifies ownership of the advertised key and the signature. It caches the canonical identity rather than a slash alias. This also permits BookWyrm to verify Plamenu’s incoming Follow before accepting it. Secure mode and signature checks remain enabled in the live test. An upgrade migration clears only the old trailing-slash identity-mismatch failure records, including exhausted budgets, so existing installations can retry without resetting unrelated federation failures.

BookWyrm intentionally ignores unrelated microblog Notes. Mentions of local users and replies to known posts are accepted; an ordinary public Note from a followed Plamenu user is not guaranteed to appear there. Its non-BookWyrm wire format uses standard Article/Note objects: reviews retain text plus a title containing the book and rating, while comments, quotations and ratings include readable book context. Covers and generated preview images can accompany that text; Plamenu does not need to identify itself as BookWyrm to receive it.

BookWyrm sends edits as native Review/Comment/Quotation objects even when the original Create used the standard format. For an existing post owned by the authenticated sender, Plamenu fetches its canonical standard representation and applies the ordinary author, edit-order and storage checks. Unknown posts, foreign owners and invalid fallback documents cannot use this path to create or replace content. This keeps book context and revised ratings readable. If the first fetch predates BookWyrm’s publication-transaction commit, bounded retries require the fetched revision to reach the announced updated stamp. A persistently stale snapshot is rejected rather than acknowledged as applied.

Its native vocabulary additionally has Review, Rating, Comment, Quotation and GeneratedNote, plus Work, Edition, Author, shelves and reading lists. Plamenu does not advertise BookWyrm-native support or treat catalogue objects as posts. A native adapter would need to preserve book identity, rating, quotation and reading progress explicitly; merely adding these type names to the ingest allowlist would lose that meaning. The tested standard format supports basic discussion without adding a reading application.

BookWyrm also speaks standard Like, Announce and Undo, plus relationship Block, Reject and Move activities. Those map to existing Plamenu handlers; the new live fixture does not establish their BookWyrm-specific behavior. Catalogue and shelf/list activities need their own semantics and are not converted into feed posts or used to advertise full BookWyrm compatibility.

BookWyrm 0.9.3 serves its outbox as plain application/json, unlike its actor and individual status endpoints, which use application/activity+json. Plamenu’s ActivityPub fetcher requires an ActivityPub media type, so automatic outbox history import is limited by that upstream response. New inbox deliveries and individual status resolution are separate paths covered by the live tests.

Check content presentation

For articles, events, media, and other structured posts, inspect both the received ActivityPub object and the remote client’s presentation. Successful delivery does not establish that the title, body, attachments, or controls are usable. Protocol details describes the wire format.

Report a federation problem

Include both software versions, the affected actor/object URLs where safe, delivery direction, redacted request/response headers and ActivityPub JSON, and whether authorized fetch is enabled. State whether the object arrived through an inbox or was fetched by URL. Remove tokens, cookies, private content, and signing keys before sharing evidence.

Accessibility requirements for contributors

Plamenu-owned navigation, forms, authoring, moderation and media workflows target WCAG 2.2 A/AA. This is a development requirement, not a declaration of conformance. See the member guide for available controls and release verification for evidence requirements.

Preserve semantic HTML, meaningful labels, keyboard operation, visible focus, error association/announcement and focus recovery after failed submissions. Test reflow, zoom, text spacing, contrast, reduced motion and forced colours. Dynamic updates must not steal focus or make the current task disappear. Critical actions need clear consequences and usable confirmation/recovery.

Keep ordinary links and forms where an interaction does not require JavaScript. Test both enhanced and no-script workflows. Media must retain its alternatives: image descriptions, transcripts, captions, chapter navigation and explicit soundtrack declarations. Do not turn an author’s declaration into an automatic accessibility claim or infer alternatives that a peer did not supply.

Automated browser/axe checks are necessary but insufficient. Release evidence must cover applicable criteria and real assistive technology, including desktop and mobile screen readers, keyboard flows, native media controls and physical safe-area/reflow behavior. A score or passing subset cannot substitute for an unmet criterion. Document non-applicability with a reason.

Webxdc app internals and remote content may lack accessible alternatives, but Plamenu’s launcher, consent, navigation and exit controls remain its responsibility. Any eventual conformance statement must identify scope and third-party content precisely. Until complete current evidence exists, do not claim WCAG 2.2 AA.

Accessibility release verification

WCAG conformance is established per success criterion, not by an automated score. Plamenu therefore keeps two complementary records for each release candidate: a repeatable browser report and reviewed manual evidence. The normative target is WCAG 2.2 Level AA; the sampling and evidence approach follows WCAG-EM.

Automated browser gate

Install the pinned packages and matching browser container once, then run the full matrix against an isolated disposable Plamenu and PostgreSQL fixture:

./dev a11y-install
./dev a11y

The default runner uses the digest-pinned official Playwright image so all three engines have the same reviewed runtime on different developer hosts. The test image additionally contains the distro encoder and PulseAudio. Its private null sink lets headless Firefox run real Web Audio/MediaRecorder without a physical sound card; it discards output and does not contact a host sound server. The sink is enabled only in the test container and ends with that run. It is not a Plamenu installation or production-service dependency. The browsers share a disposable TLS proxy’s network namespace: canonical https://localhost URLs, including absolute media and caption URLs, resolve to that fixture without request rewriting. The native server binds only to Docker’s bridge gateway, and host readiness ports bind only to loopback. The runner exports the proxy’s ephemeral CA certificate, generates a fresh fixture-local NSS database with the browser image’s own library, and trusts that CA only inside the disposable browser container. Firefox imports it by an explicit container-only automation policy; WebKit uses the container’s certificate store. Browser and API contexts verify certificates normally. No host certificate store or browser profile changes. Local-browser mode is rejected because it cannot provide this isolated trust contract. The service-worker qualification uses actual HTTPS login cookies, channel image uploads and reload freshness in all three engines; the other accessibility cases block workers for deterministic page sampling. A release report still requires every project. The suite exercises representative signed-out and signed-in pages at desktop and 320 CSS-pixel mobile viewports. Firefox uses a narrow desktop viewport with touch enabled, not Android emulation: Playwright documents isMobile as unsupported in Firefox. The lightbox regression uses real mouse pointers to drag and real touch taps to dismiss in touch-enabled projects; this is not physical-device swipe/pinch coverage. It runs axe rules tagged for WCAG 2.0, 2.1, and 2.2 Level A/AA, plus document structure, duplicate-ID, skip-link, keyboard-focus, reflow, Russian, dark-theme, reduced-motion, forced-colours, and no-JavaScript contracts. The result is target/accessibility/runs/<run-id>/automated.json, alongside that run’s server identity, server log and browser artifacts. An explicit A11Y_REPORT_PATH must also name a new file; existing reports are never overwritten. A passing axe scan is only evidence for the rules it can evaluate; it is never treated as a conformance determination.

Every test attempt restores a database and media copy from the offline seeded baseline and starts its own application process. Sessions are reused only within that journey; passwords, MFA, rate limits, notifications, drafts and background jobs cannot carry over to the next test or retry. The mailbox and offline proxy are reset at the same boundary. Existing seed accounts and UI assertions are unchanged. The server and encoder process group are stopped before teardown completes, with a two-second graceful stop budget before forced termination. This disposable teardown does not qualify graceful-shutdown behavior. fixtures.json records ownership transitions, reset duration and each attempt’s server log/identity paths.

Execution remains serial: multiple workers are rejected. Use ./dev a11y, including for filtered runs; direct Playwright execution against a standing instance is rejected. Test success remains pending-cleanup, with full_pass: false, until the runner has closed its services and removed its containers. Interrupted setup or cleanup cannot qualify a report. The reset cost is recorded so later optimizations can be measured without sharing state.

Use Playwright arguments to narrow a diagnostic run, for example:

./dev a11y --project chromium-desktop -g 'signed-out'

A release report must match every case in the source-bound browser inventory. Schema-2 reports retain the selected IDs and every attempt; qualification checks the individual results rather than trusting aggregate counters. Narrowed, interrupted, retried, failed, stale-inventory, or dirty-source reports are rejected. Schema-1 reports require a new run. Collection-only output is never execution evidence.

accessibility/coverage-policy.json lists exact case/project/reason combinations for intentional catalogue duplication and limitations of the pinned browser runtime (CDP authentication, MediaRecorder and DOM fullscreen). These remain visible as exclusions, not passing tests. A missing fixture, an unexpected skip, or a fixme for a known defect still prevents full qualification. Changing the exclusion policy requires reviewing and refreshing the inventory. Manual evidence continues to cover physical hardware and assistive technology outside the runtime.

Diagnose recording and fullscreen support

The pinned Playwright 1.63.0 Linux image’s WebKit 26.6 does not expose MediaRecorder in either headless WPE or headed GTK. Both runtimes omit the recorder feature; attempting --features=+MediaRecorder in WPE reports that the feature is unavailable. Installing a microphone or switching to Xvfb does not supply this API. The image already includes GStreamer base/good/bad/libav plugins, FFmpeg and a private PulseAudio sink. A different WebKit build must demonstrate actual recording before removing the nine publisher exclusions in each WebKit project.

Playwright also explicitly disables DOM fullscreen when WebKit’s isMobile option is true. This accounts for the two mobile fullscreen exclusions. Desktop WebKit fullscreen works. Changing isMobile to false tests desktop behavior at a narrow viewport; it does not verify Safari on an iPhone.

The standalone diagnostic below needs no Plamenu server or accounts. It checks capabilities, records synthetic moving video and audio with the real browser encoder, decodes both streams with FFmpeg, and enters/exits real DOM fullscreen where exposed. It runs serially and always writes full_pass: false; a completed diagnostic can contain unsupported capabilities. It never qualifies a gate. Use a new output directory for every run; existing evidence is not overwritten.

# After ./dev a11y-install, from the repository root:
probe_image="plamenu-accessibility-encoder:$(sha256sum accessibility/Dockerfile | cut -c1-16)"
probe_output="target/media-runtime-$(date -u +%Y%m%dT%H%M%SZ)"
mkdir "$probe_output"
docker run --rm --init --network none --shm-size 1g \
  --user "$(id -u):$(id -g)" -e A11Y_NULL_AUDIO=1 \
  -e "A11Y_BROWSER_IMAGE=$(docker image inspect --format '{{.Id}}' "$probe_image")" \
  -v "$PWD:/work:ro" -v "$PWD/$probe_output:/evidence" -w /work \
  "$probe_image" node accessibility/probe-media-runtime.mjs /evidence/headless

Add xvfb-run -a before node and --headed after the output directory to also compare GTK. Use --case=chromium-headless-control, --case=webkit-headless-desktop, --case=webkit-headless-mobile, or --headed --case=webkit-headed-desktop to investigate one case. On a Mac with the matching Playwright browsers and FFmpeg installed, the same Node command can write to a local directory without Docker or A11Y_NULL_AUDIO. That is a WebKit diagnostic, not verification of Apple’s shipping Safari.

Safari and iOS device verification

Use a disposable Plamenu account on a trusted HTTPS test deployment, and record the application revision, hardware, OS and Safari versions with the evidence. On macOS Safari and an actual iPhone/iPad, check:

  1. Camera/microphone permission denial and retry; private preview and cancel; start/stop a broadcast; audio and video received by a second viewer; replay after stopping; and release of the capture indicators after cancel/stop. On platforms offering screen capture, also check camera/screen switching and continuing audio. Record unavailable APIs explicitly.
  2. VOD playback in portrait and landscape; enter/exit fullscreen through the offered controls; verify the whole picture, seek/pause controls, touch reveal, rotation, and return to inline playback. Distinguish DOM fullscreen from the platform’s native video fullscreen; a native player does not validate Plamenu’s custom DOM fullscreen controls.
  3. The same controls with VoiceOver, including names, focus, errors and recovery.

Attach recordings/screenshots and observations to manual-media, manual-adaptation, manual-input and manual-cross-platform as applicable. If the device is unavailable, keep those checks unverified. Desktop viewport emulation and capability probes cannot substitute for these results.

Criterion and manual evidence gate

accessibility/criteria.json inventories every WCAG 2.2 Level A and AA criterion. It deliberately includes obsolete criterion 4.1.1 with the W3C status and rationale so an absent row cannot be mistaken for an audit gap. The same catalog tracks the programme’s preferred AAA targets without turning them into a site-wide AAA claim. accessibility/manual-checks.json groups the required human procedures while preserving criterion-level traceability. Validate both with:

./dev a11y-matrix

After the automated matrix passes on a clean release-candidate commit, create the manual record:

./dev a11y-evidence target/accessibility/runs/RUN_ID/automated.json /secure/release-evidence.json

Complete every generated check with:

  • status: "pass" only after its full procedure passes;
  • the tester’s name and an ISO 8601 checked_at timestamp;
  • exact browser, operating-system, device, and assistive-technology versions in environments;
  • durable screenshot, video, accessibility-tree, measurement, or test-note paths in artifacts; and
  • concise observations in notes, including sampled content and processes.

The cross-platform procedure requires Chromium, Firefox, and WebKit at desktop and mobile sizes; NVDA with Firefox and Chrome; VoiceOver with Safari on macOS and iOS; and TalkBack with Chrome on Android. Other procedures cover keyboard, zoom/reflow, text spacing, target size, contrast, error recovery, authentication, media alternatives, authored/federated content, and no-JavaScript operation. Do not mark a whole grouped check as passed when any listed criterion or required environment is untested.

Validate a work-in-progress record structurally, or enforce release completion:

python3 scripts/accessibility-evidence.py validate /secure/release-evidence.json
python3 scripts/accessibility-evidence.py validate --release /secure/release-evidence.json

The release validator checks the exact Git revision, automated-report digest, complete browser projects, zero failures or skips, a clean tested source, and complete manual evidence. It does not accept averages, waivers, or a generic “not applicable” result at the grouped-check level. Criterion-specific conditional applicability must be explained in the check notes and any public conformance or partial-conformance statement.

Release command

The reviewed experimental 0.7 exception is a separate release acceptance path. It preserves full_pass: false and does not satisfy this conformance protocol. The validator below remains strict, including when 0.7 exceptions are accepted.

Supply the completed record explicitly:

./dev release --accessibility-evidence /secure/release-evidence.json

Release preparation stops before building when the evidence is absent, incomplete, modified, or belongs to another commit. The validated manual and automated records are copied into the release stage, hashed with its other outputs, and represented as a required accessibility check in release.json. The evidence files may include tester identity or private test notes, so keep the working copies outside Git and review them before wider distribution.

This gate proves that the recorded representative scope and processes passed; it does not by itself authorize a broader WCAG claim. Any claim must still state the conformance date, WCAG version and level, exact scope, relied-upon technologies, and precisely bounded third-party content.

Native delivery scale verification

These are reproducible local workload acceptance budgets, not advertised production capacity, WAN latency, or a comparison against other products. Keep browser decoded-start/seek/rebuffer, P2P/browser concurrency, higher resolution and multi-node tests separate. Do not turn HTTP-body arrival into a claim that a browser decoded a frame.

Sustained mixed origin workload

Before running the workload, the native baseline acceptance bounds are:

  • One 640×360/25 fps H.264/AAC native publisher and 32 concurrent progressive live responses, plus 16 concurrent finite-range clients, for at least 300 seconds after all live clients have joined.
  • Every initial live response succeeds, receives ftyp, and joins within the existing 20-second initialization bound. No test-side wait for HLS or retry of failed startup. Every client emits further bytes; no gap between chunks exceeds 15 seconds, excluding intentional termination.
  • VOD bytes offered by actual PeerTube remain exact under concurrent seeks; at least 4,000 64-KiB ranges, zero failed/incorrect requests, local p95 response time ≤1 second. This measures range-response latency, not decoded seek time.
  • Exactly one live remux child irrespective of viewer count. Native ingest is counted separately. Service-process plus owned-media-child peak RSS ≤512 MiB, server growth from the prepared baseline ≤256 MiB, and last-quarter server RSS exceeds first-quarter mean by ≤32 MiB.
  • Mean service-process/owned-child CPU ≤2 cores (200% of one CPU). Report origin response body bytes, not P2P savings or confirmed wire bytes.
  • Total owned media-tree growth ≤2 GiB; sustained DVR remains bounded by the chosen five-minute rolling window. The continuous replay recording is separately accounted for and is not described as bounded DVR scratch.
  • Creator opt-in anonymous delivery accounting remains enabled throughout; its bounded batches continue without breaking delivery. After owner suspension, all attached progressive consumers reach EOF within 10 seconds, while new VOD/live requests are refused.

Run this explicitly against the disposable-instance/real-PeerTube E2E harness:

AP09_SCALE_VERIFY=1 e2e/.venv/bin/pytest -q -s e2e/tests/test_video_delivery_scale.py

The drill owns its unique database, media directory, encoder and loopback listener. It never restarts or changes the standing development instance. Clients discard streamed bytes after validation; no full stream capture or large trace is created. The aggregate resource log and executable/workload identities remain in protected target/e2e/video-delivery-scale/ evidence. The sample publisher’s CPU is reported separately from service CPU; generating a test pattern is not origin delivery. System/reverse-proxy/PostgreSQL totals must not be silently included or excluded when interpreting these numbers.

Decoded browser budgets

accessibility/tests/video-playback-budget.spec.mjs defines a separate local decoder contract before measurement, using a real 24-second 640×480/10 fps H.264/AAC moving-pattern film published through ordinary creator forms:

  • Presented moving frame within 10 seconds of requesting playback. A preload/poster frame at time zero does not count. Enhanced measurements use the real browser’s requestVideoFrameCallback, not a response or simulated counter. No-JS uses external samples of native decoder/frame/timeline state.
  • At least 30 presented frames over eight seconds of steady playback, at most two seconds of total waiting and longest individual waiting.
  • A seek to 16 seconds presents a frame from that position within five seconds; neither currentTime assignment nor seeked alone is proof. This short-film seek may be buffered; it is not a cold long-film seek test.
  • No decoder error and no horizontal page overflow at 320 CSS pixels.
  • Repeat in Chromium/Firefox/WebKit desktop/narrow viewports and Chromium with application JavaScript disabled. Where the peer engine is active, watch playback must attempt a tracker WebSocket; Playwright routing intercepts and closes that attempt. This is controlled client fault injection, not a wire-outage benchmark. Routing is registered before any navigation. Origin media fragments have a 1.5-second injected delay (initialization is immediate) so a small fast film cannot bypass the fault through instantaneous delivery. Native-only engines remain server-delivered; do not call them a peer fault. Server-only embeds remove that delay, use the real p2p=0 endpoint and must never open a new tracker socket.

Page callbacks are disabled in a genuine no-JS browser. The no-JS case reads native frame quality (total minus dropped), advancing timeline, readiness and seek state externally at a nominal 50-ms interval, with a 250-ms maximum sample gap. Its startup/seek values are sampled upper bounds; waiting is sampled readiness, not callback-exact event accounting. Three newly presented frames plus an advancing target timeline fence no-JS seeking. The test does not enable application scripts or replace playback data. It measures decoding, not native-control keyboard accessibility. Playback is muted to isolate decoding from autoplay/audio permission; hardware audio, assistive technology, live glass-to-glass and WAN performance remain separate. Retained JSON attachments include startup/seek timings, presented and dropped frames, waiting intervals, source, dimensions and actual steady duration.

python3 scripts/run-accessibility-tests.py video-playback-budget.spec.mjs

Native tracker limits and fault recovery

Cold ten-minute film and constrained TCP delivery

AP09_COLD_VERIFY=1 e2e/.venv/bin/pytest -v e2e/tests/test_video_cold_delivery.py publishes an actual 600-second 640×360/15 fps H.264/AAC moving film with 2.5-Mbit/s padded video, accepted by real PeerTube. Four fresh Chromium contexts test enhanced and genuinely scripts-disabled server-only embeds, first local, then through the owned canonical HTTPS backend’s real TCP fixture:

  • Shared downstream wire pacing: 1,048,576 bytes/s (8 Mibit/s). Each request and response header adds 40 ms, an 80-ms minimum header round trip, not a simulation of arbitrary Internet packet loss/congestion.
  • Moving presented startup ≤10 s, seek to 570 s ≤10 s. The actual browser’s pre-seek buffered ranges must not contain the target. The seek must make a new real media request and present three newly decoded frames at the advancing target; assigning currentTime alone never passes.
  • 12 s steady playback, ≥120 presented frames, sampled total/longest waiting ≤2 s, maximum external sampling gap ≤250 ms, no media/page error or 320px overflow. Native frame/ready/seek snapshots work without page callbacks; application scripts remain disabled in that lane.
  • Explicit p2p=0 embeds must not contact any tracker. These measurements are origin delivery, not a claim of P2P savings or all-browser/WAN certification.

The bridge separately counts successful /media/ response body payload: request/response headers, HTTP chunk framing and WebSocket signaling are not body bytes. Split-chunk parser, shared pacing and real tracker-loss/reconnect guard tests retain coverage. The measured bytes are emitted origin payload, not independently verified network receipt; three moving frames establish decoding separately. Owned source/decoder snapshots/ranges/screenshots and frozen executable identity remain private under target/e2e/video-cold/.

Concurrent decoded live / actual tracker transport loss

AP09_CONCURRENCY_VERIFY=1 e2e/.venv/bin/pytest -v e2e/tests/test_video_live_concurrency.py owns two 320×180/15 fps H.264/AAC RTMP publishers and eight simultaneously playing Chromium decoders: four native and four actual PeerTube, split across the broadcasts. All eight must advance at least ten presented frames/second and half a media second/second over 120 seconds of steady playback, 15 seconds of actual tracker TCP loss, and 30 seconds after restoration, without decoder or integrity errors. Both broadcasts must receive validated native peer bytes and native uploads must be positive. Controlled 1.5/4-second HTTP delays establish peer delivery during warm-up only; delays are removed for the measured phases.

The owned TCP bridge actually aborts at least eight attached native tracker connections and refuses new tracker connections until restoration. Canonical TLS, native tracker code, HTTP media and WebRTC are unchanged. Ordinary backend HTTP uses Connection: close to keep pooled requests from hiding upgrades; this bridge overhead is not described as production network performance. Actual reconnects and uninterrupted decoder progression are required.

Source pixels contain a 32-bit decisecond wall clock. Externally reading that clock from real decoded native frames measures synthetic local RTMP glass-to-glass latency with 100-ms quantization: p95 must be ≤10 seconds, with at least two valid samples/second across the four native decoders. This is not hardware camera/audio, browser-capture, WAN or real-device proof. Resources are sampled once/second: server plus direct owned media children peak RSS ≤768 MiB, average CPU ≤3 cores, and at most four FFmpeg children (two ingest and at most one shared remux per broadcast). Test publishers, browser driver and bridge are recorded separately, excluded from these figures. The entire browser drill has a finite 420-second deadline. All bounds are declared before the initial run; failures are retained, not silently retried.

Peer signaling is in-process and bounded: 2,048 admitted sockets, four eligible swarms per socket, 128 peers per swarm, 16 offers per announce, 64-KiB messages, 16-KiB serialized signals, and eight queued outbound messages. Full queues drop peer signals, not allocate more memory or block other peers. Ninety announces per minute limit repeated work. The advertised 120-second interval fits the 180-second successful-announce deadline. A connection must first announce within 15 seconds; ping/pong traffic cannot retain an unannounced/idle slot indefinitely. Ordinary relay, failure and ping writes each have five seconds, and combined VOD/live canonical authority checks have two seconds. A database error/timeout refuses signaling; there is no stale-public-allowlist fallback.

Every signal, including unused offers, is validated before database lookup, peer registration, acknowledgment or any relay. Binary-string IDs remain PeerTube-compatible (20 codepoints in the byte range). Duplicate identities on other sockets and cross-swarm answer targets cannot impersonate peers. Stopped/disconnected peers release registry entries and admission guards. Unsupported binary messages and oversized frames close the connection.

e2e/tests/test_video_tracker_limits.py publishes actual native ladders into a uniquely owned disposable database. It checks whole-message rejection with two attached recipients, valid binary-ID relay, cross-swarm isolation, identity conflicts, four-swarm/offer/frame/rate limits, 128 simultaneous peers and reclamation, first-announce expiry, an exclusive lock of only that fixture’s rendition table, canonical suspension, and decoded byte exchange between the unmodified PeerTube player and native player after the faults. The full 2,048 ceiling and guard reclamation are unit-tested against the exact production admission algorithm; this is not a 2,048-connection network flood or concurrent WebRTC capacity benchmark.

Already exchanged public peer bytes cannot be recalled. Reannouncement always rechecks canonical authority; idle peers expire rather than polling SQL per socket. Do not interpret this as instantaneous recall of ICE signaling or proactive zero-delay teardown of every idle WebRTC connection after moderation.

Interpretation

Keep each run’s source/binary identity, environment, parameters, results and failure evidence together under ignored target/. Report each delivery lane separately: bridge-forwarded bytes are not dedicated origin-body accounting or proof of P2P savings. Record failures and incomplete phases as such.

A focused decoder slice does not qualify the full browser/E2E gates, a release, or arbitrary fleet capacity. Cold/WAN/device startup, seek/rebuffer, live latency, peer concurrency and storage/offload faults require their own current measurements. Never shorten a calibrated interval or omit a case to claim a pass.

Architecture

Plamenu is a Rust workspace with four internal crates:

  • plamenu-ap: ActivityStreams types, discovery, canonical URLs, signatures, integrity proofs, and text normalization.
  • plamenu-db: PostgreSQL persistence, forward migrations, durable queues, and Snowflake-style identifiers.
  • plamenu-federation: guarded outbound HTTP, content negotiation, and HTTP signature verification.
  • plamenu: axum server, APIs, workers, CLI, and server-rendered interface.

PostgreSQL stores application data. The configured media store holds file bytes; small in-process caches accelerate settings, authentication, translation, and rendering but are disposable and invalidated by mutation or short TTLs. Migrations run before the server accepts traffic.

Writes and background work

Local post, interaction, relationship, profile, group, collection, RSVP, report, relay, migration, and key-rotation actions use transactions to commit their mutations and outgoing delivery jobs together. Remote resolution precedes the transaction; optional notifications, streams, and webhooks follow commit. Connection-scoped helpers keep audience and object rendering on that transaction. Failure-injection coverage lives in atomic_outbox.rs and atomic_mutations.rs under crates/server/tests. This is not a blanket atomicity guarantee for every inbound handler or background job; those have their own retry boundaries.

Workers use PostgreSQL-backed queues. Most jobs are leased and therefore at-least-once: a crash leaves the row to be reclaimed, so handlers must be idempotent. Scheduled publication removes its claimed entry in the transaction that creates the post and delivery jobs; claim generations reject stale attempts. Poll-expiry side effects remain at-most-once. The complete classification is in QUEUES.md.

Each worker is supervised and restarted after an unexpected exit. Release builds use panic = "unwind" so the supervisor can contain task panics; the container restart policy handles process-wide failures.

Deployment boundary

Run one plamenu serve process per database. The server enforces this with a PostgreSQL advisory lock because identifier generation is process-local. The lock session is monitored during startup, serving, and shutdown. A failed heartbeat or a five-second heartbeat timeout terminates the process; it never reconnects and continues without the lock. Detection is not instantaneous. One CLI command can run alongside the server: it holds a separate monitored lock and allocates odd IDs, while the server allocates even IDs. Concurrent CLI commands are refused before initialization. Use matching CLI and server binaries; mixed-version online administration is not supported. Each lane remains process-local, so this is not database fencing or a guarantee across clock rollback followed by process restart. Horizontal multi-server serving is not supported.

All local ActivityPub identifiers are minted through crates/ap/src/urls.rs. The public domain is therefore permanent after federation begins. Remote input crosses URL/SSRF, signature, ownership, size, and HTML-sanitization boundaries before it is persisted or rendered.

See protocol and extensions for federation behavior.

Background queues

Plamenu uses PostgreSQL-backed queues. Workers claim due rows with FOR UPDATE SKIP LOCKED.

Delivery guarantees

Most queues are at-least-once. Claiming a job moves its due time forward but does not delete it. Completion deletes the row; a crash lets the lease expire and the job becomes eligible again. Retryable failures reschedule with backoff, and per-queue attempt limits prevent poison jobs from looping forever. Handlers on leased queues must therefore be idempotent or safely repeatable.

Account archives and bulk imports use scheduled/in_progress state plus a claimed_at lease. Startup and periodic sweeps return stale claims to scheduled.

QueueSemanticsRecovery
deliveries, mail, webhooks, Web Pushat-least-oncelease expiry and bounded retry
media processing/account mediaat-least-oncelease expiry; remote work backs off
quote verificationat-least-oncebounded retry, then remains pending
reply fetch, link verification/crawlleased single-attempt worklease expiry bounds crash loops
media cleanupat-least-once, acknowledged deletionlease expiry; repeated failures retain revocation and back off for one day
account archives, bulk importsat-least-once state leasestale-claim sweep
scheduled statusesleased retry; atomic publicationfive-minute lease; queue removal commits with the post and delivery jobs
poll-expiry side effectsat-most-oncedurable close stamp, no notification replay

Scheduled posts remain listed while claimed or waiting for retry. A failed attempt becomes eligible again five minutes after its claim; the chosen publication time is preserved. Claim generations prevent an old worker from publishing after a retry, cancellation, or reschedule. Queue removal, the post, media attachment, and outgoing delivery jobs commit together, so retrying cannot create a second post. Streaming and optional post-commit notifications remain best-effort.

If a scheduled post stays overdue, inspect the scheduled status publish failed log entry. Fix the reported cause or cancel the entry. Rescheduling clears the retry delay. Failed entries are retained until publication or cancellation.

Poll-expiry notifications remain at-most-once: a crash after the close stamp can lose those side effects, and replay is not attempted.

Admission and fairness

Web Push claims rotate across recipient accounts and deliver with bounded concurrency, so one user or slow endpoint cannot monopolize the queue. Revoking a token deletes its push subscription and queued jobs.

CSV import upload is limited per account and IP before its body is buffered; unfinished imports and total pending rows also have server-wide caps. Workers skip suspended accounts and re-check suspension between write windows.

Account purge behavior

An account purge keeps its tombstone row, so queue cleanup is explicit:

  • retain delivery jobs for the final Delete(Actor) or blanked actor update;
  • cancel imports, archive builds, account-media work, link verification, and scheduled statuses;
  • delete Web Push work with the revoked subscriptions;
  • enqueue media cleanup for files and stored archive ZIPs.

Media cleanup is inserted transactionally with row deletion. This ensures a crash cannot leave a database-deleted attachment permanently retrievable from storage. An enqueued key is refused at the origin before physical removal. After ten failed claims, the next claim defers another retry burst for one day; it never discards the revocation key or refunds native storage charges. Repair the reported permissions/mount problem; the same job completes after the store acknowledges deletion. Alert on repeated failures and overdue cleanup debt. plamenu media reconcile finds older orphaned files.

Native public playback additionally checks the canonical status, immutable author/uploader, channel and current channel owner on every origin request. Deleted/private statuses and suspended/deleted actors refuse MP4, HLS, captions, storyboard and tracker metadata even after a channel transfer. Reversible suspension keeps files for later unsuspension. Refusals are private, no-store. Previously fetched bytes and independent browser/CDN/peer copies cannot be recalled by an origin check; do not treat immutable-byte caching or distribution controls as DRM.

Adding a queue

Use a lease whenever accepted work must survive process failure, and make the operation safe to repeat. If replay is more harmful than rare loss, document the at-most-once decision at the claim site and add it to the table above.

Native Video progressive MP4

A completed native Video may have one optional H.264/AAC MP4 for direct playback, alongside its original delivery file and existing HLS ladder. The original URL and download endpoint retain their original bytes. Videos already processed before this feature keep their existing original fallback; there is no request-time transcode or historical artifact repair.

Selection and encoding

The shared policy selects the highest existing rendition at or below 720p within the pipeline’s 4,000 kbps video target. Heights retain the existing portrait semantics. It adds no ladder rung and never upscales. If no candidate qualifies, a lowest compatible rendition can qualify only with a measured size smaller than the original; unknown size is insufficient. If the copied original qualifies, it remains the progressive source without a duplicate artifact.

A selected lower rendition is encoded once into a faststart MP4. The HLS muxer then copies its compressed packets into the existing single-file fMP4 layout. The MP4 retains encoder delay, AAC skip information, edit lists and composition timestamps. Reconstructing an ordinary MP4 from the completed HLS file is unsafe: the HLS mux has already discarded AAC priming information. In particular, removing edit lists can add one audible AAC frame of delay despite making container startup look correct.

The artifact belongs to its existing HLS rendition and native draft generation. It uses the same reservation, output journal, cancellation fence, cleanup and ready transaction. There is one optional metadata field, rather than another queue or publication state. The worker checks codecs, dimensions, duration, file size and SHA-256 before completing that transaction. Offload transfer also checks the artifact hash and probes the received file independently.

Delivery and interoperability

The local API prefers this file when current, validated ready metadata exists, and exposes the original URL and actual progressive quality under progressive. The original metadata is retained as meta.source; meta.original describes the preferred URL’s actual dimensions, duration and bitrate; size is in progressive. Invalid, failed, stale or missing metadata retains the original preference. An unexpectedly missing stored body returns 404; HTML source candidates and the bounded player fallback retain an original candidate rather than attempting a repair.

Retired or stale journal entries remove the API preference and ActivityPub Link and deny fresh public serving, even while a JSON metadata field lingers. Only the active output journal protects a file from orphan reconciliation.

The immutable artifact URL supports byte ranges and a SHA-256 ETag. Matching If-None-Match returns 304; a matching strong If-Range permits 206, while a mismatching validator returns the full 200 representation. Private drafts, suspended owners and stale generations are excluded by existing publication checks. Original serving and download behavior remains independent.

The HTML player keeps native controls, a quality-labelled MP4 link and ordered progressive/original <source> candidates for script-blocked browsers. The adaptive player falls back to the selected MP4 and, on a file error, retries the original once. It does not loop between failed representations.

The canonical ActivityPub Video.url array adds a named Playable MP4 Link with the artifact’s real quality. Its original and HLS links remain. The attachment Document.url, object identity and Video UUID retain their original values: consumers that read only that Document still receive the original. This change does not migrate peer attachment identity.

Private processor protocol

The consumer performs one authenticated, bounded /v1/health request before job admission. Version 1 keeps its exact artifact count and omits the optional field. Version 2 can append one progressive artifact with matching metadata. Unknown versions fail before upload; a generic 400 or 422 does not trigger a second legacy job. Count, size, path, geometry and hash validation remain strict for both versions. Release and deployment remain explicit operations.

Qualification

Targeted tests cover rendition selection boundaries, original identity, publication authority, cache/range semantics, stale metadata, journal and quota ownership, strict offload versions and rejection behavior. Production packaging tests compare compressed video packet hashes, AAC priming and decoded sample alignment, including silent and nonzero timestamp inputs. Browser qualification must use the actual production MP4, ordinary playback speed, range/resume, seeking and EOF in Chromium, Firefox and a supported WebKit environment. A single successful download is insufficient evidence of compatibility.

The separately observed HTTP/3 transport slowdown remains an open investigation; a smaller MP4 changes transfer cost, not the underlying transport behavior.

Known per-item query fan-outs

This is the current list of confirmed database round-trip loops. It is not an audit journal: resolved entries and rejected findings belong in version history. A benchmark query budget is a tripwire against regression, while this file records debt that the benchmark dataset may not expose.

When fixing an entry, delete it in the same change and record the measured before/after statement count. A lower benchmark budget needs an explanation too; dataset changes can lower counts without improving code.

EntrySeverityBoundWhy it remains
migration-process-move-per-local-blockerhighunbounded local blockersEach carried relationship has distinct federation and moderation effects.
migration-process-move-per-local-followerhighunbounded local followersEach relationship produces distinct follow/unfollow work.
ingest-store-remote-attachmentsmedium100 per NoteInbound attachment rows are inserted individually.
inbox-flag-report-per-targetlow50 targetsEach local target receives a distinct report; instance reports may also enqueue webhooks.
ingest-thread-ancestor-backfilllow5 ancestorsEach missing ancestor requires guarded network fetch and full ingest.

Details

Move replay

process_move in crates/server/src/migration.rs loops over local followers and local accounts blocking the source. Both loops are unbounded and run from the inbound Move request path. Each item performs relationship checks, mutations, notifications, and/or distinct ActivityPub delivery. No benchmark currently exercises this path with a SQL query budget.

Remote attachments

store_remote_attachments in crates/server/src/ingest.rs calls media::create_remote per attachment. Input is capped at MAX_REMOTE_ATTACHMENTS = 100, so this is bounded but a hostile Note can still cause 100 serial inserts. The inline-image fallback is deduplicated separately.

Flag targets

The instance and group handle_flag paths in crates/server/src/routes/inbox.rs file one report per deduplicated local target. MAX_FLAG_OBJECTS caps the set at 50. Instance-level reports also run the configured report webhook path; group-scoped reports do not.

Thread ancestor backfill

resolve_thread_parent in crates/server/src/ingest.rs walks and then ingests up to MAX_THREAD_ANCESTORS = 5. Each step includes a guarded remote fetch and a complete remote-note ingest. This is fixed-bound rather than a traditional unbounded N+1, but its body is expensive enough to track here.

Single SQL statements containing correlated subqueries are query-plan costs, not extra round trips, and do not belong in this inventory. Investigate those with EXPLAIN and performance benchmarks instead.

Translate the interface

The web interface and mail use Fluent catalogs embedded in the binary:

  • crates/server/src/web/locales/en-US/main.ftl: English source and fallback.
  • crates/server/src/web/locales/ru/main.ftl: Russian translation.

The staff administration console is currently English-only. The interface uses the member’s language setting, then the browser’s Accept-Language, then English. Mail uses the recipient’s saved setting, falling back to English.

Edit a translation

Find the message in the English catalog and edit the matching identifier in the translation. Preserve variable names such as $count, and use Fluent selectors for the language’s plural forms. Translate each message as a whole; keep links and interpolated values where the sentence needs them.

When adding a message, add the same identifier to both catalogs. Use a name that describes its purpose and group it with the related feature. Add a comment when translators need context about a variable or where text appears.

Check syntax and matching message identifiers with:

cargo test -p plamenu --lib web::i18n

Rebuild and restart the server to see catalog edits. Select the language in account settings and check the affected page, including plural forms and any layout affected by longer text.

Add a language

Create crates/server/src/web/locales/<tag>/main.ftl using the English catalog as the message inventory. Then register it in crates/server/src/web/i18n.rs:

  1. Include the catalog and add a Language variant and Fluent bundle.
  2. Add its code to Locale::AVAILABLE and handle it in language_from_tag, bundle, tag, and direction. The picker uses names from crates/server/src/languages.rs; its inventory must contain the code.
  3. Extend the catalog tests to check its syntax, message identifiers, negotiation, and plural forms.

Regional browser tags currently select the base language: ru-RU selects Russian. A separate regional translation would also need negotiation changes.

Use messages in code

Use Locale::text or text_with inside Maud templates; Maud escapes the returned string. Locale::plain and plain_with remove Fluent’s directional isolation characters for mail and text passed to JavaScript through data-* attributes.

For a sentence containing links or styled text, pass rendered Maud Markup to Locale::markup. markup_with also accepts Fluent variables, such as a numeric plural selector. These helpers return trusted HTML: render user text through Maud before including it, and never pass it as a raw string variable.

Use the shared web::view helpers for dates. Pass numeric counts to Fluent so it can select plural forms. Resolve mail language with Locale::for_user; web routes should map typed errors or stable redirect codes to catalog messages.

Future work

This is a contributor discussion list, not shipped functionality or a release commitment. Check current routes and user guides before proposing work: native Audio, discovery, music libraries and video editing already exist. Detailed historical comparisons are retained in Git; implementation planning belongs in scoped issues with current evidence and acceptance criteria.

Candidate areas include broader reply/like/boost consent, quiet historical post archive import, durable writing drafts, saved searches, richer event calendars and guest registration, restricted native video, assisted media alternatives, external identity providers and optional object storage.

Client work should close specific gaps in the Lemmy adapter and Mastodon-compatible surface, without equating API compatibility with ActivityPub interoperability. Preserve source identity, permissions and moderation across any new workflow.

A proposal should state the user problem, current behavior, proposed task flow, data/security/migration effects, explicit exclusions and how completion will be verified. New supported behavior must be documented in the relevant member, operator or API guide when it ships.

Release procedure

Prepare and test a release locally, then publish those same bytes:

./dev release --accessibility-evidence /secure/release-evidence.json
./dev release --accessibility-evidence /secure/release-evidence.json --publish

The second command reuses verified completed stages. It can also be used alone to prepare and publish in one invocation. No CI run IDs, artifact downloads, handwritten approval files, or separate promotion step are needed. Set PLAMENU_A11Y_EVIDENCE=/secure/release-evidence.json if you prefer not to repeat the accessibility option in the later examples on this page.

Experimental 0.7 validation exceptions

For 0.7.0, maintainers accepted the reviewed browser/federation coverage gaps and unperformed human accessibility checks. The completed historical audit and focused repairs do not constitute a clean full pass on the shipping revision. Use the explicit alternative below, with ARM64 built and tested natively by Codefloe workers:

./dev release --accept-0.7-exceptions "$PWD/target" --arm64-on codefloe
# After reviewing the prepared artifacts:
./dev release --accept-0.7-exceptions "$PWD/target" --arm64-on codefloe --publish

The evidence root must contain the exact records named and hashed in release/0.7-validation-exceptions.json; an archived copy of that directory layout also works. Missing or modified records stop preparation. Application, dependency, fixture and test inputs must match the reviewed source, including the explicitly recorded dependency-validation supplement; only the bounded release-plumbing changes, documentation prose and standalone media diagnostic are permitted. Changed product inputs require new validation, not an automatic extension of this exception.

The recorded supplement updates the yanked crypto-bigint 0.7.6 to 0.7.10 and ctutils 0.4.5 to 0.4.6. It binds the updated lockfile and source revision to 302 passing focused tests and a passing deny check. The historical audit remains unchanged; neither full gates nor timing measurements were repeated for that dependency update.

This option applies only to 0.7.0 and cannot be combined with --accessibility-evidence or PLAMENU_A11Y_EVIDENCE. Static and application checks, both architecture builds and artifact/restore validation still run. Any newly requested E2E or performance run retains its normal strict checks. Codefloe needs a pushed branch or tag containing the exact source commit; see optional workers.

The release record and publication text disclose the exception. Accessibility is recorded as accepted-exception, with full_pass=false and no WCAG conformance claim. Original failed/partial reports are retained unchanged in the local validation stage, and their hashes and accepted gaps are included in the signed release metadata. A passed validation-exceptions stage means the acceptance receipt was verified, not that the waived tests passed. The normal conformance-evidence path below remains strict.

Before the first run

Every release includes Linux AMD64 and ARM64 installation archives and a container image for both architectures. Run preparation on Linux AMD64 or ARM64. It needs:

  • Python 3.11 or newer, Git, OpenSSH client tools, the pinned Rust toolchain (including rustfmt and Clippy), a native C build toolchain, pkg-config, and Perl;
  • Docker with Compose and Buildx, usable without sudo;
  • FFmpeg/ffprobe and binutils (readelf);
  • cargo-nextest, cargo-sqlx matching the workspace’s SQLx version, cargo-deny, mdbook, ShellCheck, Ruff, and the Python pytest and PyYAML packages.
  • a completed WCAG 2.2 AA evidence record for the exact release commit, or the explicit 0.7 exception above; create conformance evidence through the accessibility release protocol.

The pinned binary installer can install cargo-nextest, cargo-deny, mdbook, and Cosign: python3 scripts/ci/install-tools.py. Add ~/.local/share/plamenu-ci/bin to PATH. Cosign is needed only for publication; Git SSH signing must also be configured for that step.

./dev release --plan

This lists the selected stages, missing command/package prerequisites, and missing publication or worker settings when those operations are requested. Actual runs also check Docker access, Compose, Buildx, and execution of each locally built architecture. Allow sufficient disk space for a separate checkout, Cargo output, Docker caches, and release files. Native source checks reuse a dedicated Cargo cache across release revisions. The default build uses two compilation jobs, Thin LTO and 16 codegen units; it can need several GiB of RAM. --jobs N changes compilation concurrency. No CPU model, fixed database port, standing development services, or Codefloe account is required for local preparation. Internet access is needed for dependencies and container images that are not already cached.

For the 0.7 Fat-LTO-to-Thin-LTO repair, --reuse-application-from RELEASE_DIRECTORY can accompany --accept-0.7-exceptions. It verifies the previous application stage and all its hashes, requires unchanged application/dependency/test inputs, and permits only the reviewed deploy-profile adjustment. The release report identifies the original test revision and retains exclusions and full_pass=false. Both architecture artifacts are rebuilt and tested; earlier benchmark measurements do not qualify the new shipping profile. This option cannot reuse failed or incomplete application runs.

For both architectures on one machine, Docker needs emulation for the other architecture. Docker Desktop normally includes it; on Linux Docker Engine, install the missing emulator once. For example, on AMD64:

docker run --privileged --rm \
  tonistiigi/binfmt@sha256:400a4873b838d1b89194d982c45e5fb3cda4593fbfd7e08a02e76b03b21166f0 \
  --install arm64

Use --install amd64 on ARM64. The command registers QEMU with the Docker host’s kernel; it needs a host that permits that operation. Emulated compilation is slower than native compilation. The release command tests execution before starting lengthy checks and fails clearly if a local target is unavailable. See Docker’s multi-platform build documentation. An architecture sent to a native worker does not require local emulation.

Set workspace.package.version, update the workspace entries in Cargo.lock, and move the changelog’s Unreleased entry into a dated version section. Commit the release source. Preparation requires a clean checkout and captures that exact commit in a separate worktree; later work in the original checkout does not change the running release.

What preparation checks

The command runs formatting, Clippy, script and budget tests, dependency policy, static checks, documentation checks, Rust application tests, SQLx metadata validation, and the required accessibility-evidence gate. Database checks use a disposable PostgreSQL 18 container bound to a random loopback port, with an empty template database for migration tests. SQLx validation compares fresh query metadata while respecting explicit !/? nullability annotations, so query-plan differences on an empty database do not produce false failures. It does not rewrite the committed .sqlx cache. The normal release path does not load .env.

For each architecture, it builds one static musl executable, packages the installation files, and assembles a runtime image containing that executable. The image’s binary hash and ELF architecture must match the installation archive. Each image then passes the installation, backup/restore, and federation drill on its build machine, using emulation when necessary. When changing host installation or backup procedures, also exercise both architecture archives on fresh Debian hosts, including a real reboot and restore into empty storage. After publication, check anonymous downloads and image pulls; a deployed server also needs public DNS, TLS, and readiness checks for its actual domain.

On the conformance-evidence path, accessibility evidence is validated against the exact source revision and its automated-report digest, then copied into the hashed accessibility/ stage. Missing, pending, failed, skipped, dirty-source, or wrong-revision evidence stops preparation before any build. Outputs and logs live under release-artifacts/vVERSION/INPUT-ID/. The assets/ directory contains:

FileContents
plamenu-VERSION-linux-amd64.tar.gzOne Linux AMD64 executable, systemd unit, Plamenu and Caddy examples, license
plamenu-VERSION-linux-arm64.tar.gzThe equivalent installation files for Linux ARM64
plamenu-VERSION-source.tar.gzSource from the exact release commit
release.jsonSource/build settings, check outcomes, and report hashes
SHA256SUMSChecksums for the prepared downloads

There is no second executable or diagnostic archive. Tested container images remain in build-amd64/image.tar.gz and build-arm64/image.tar.gz; load one locally with docker load --input PATH. These local transport files are not release downloads. Publishing uploads the same images and combines their immutable digests under one multi-architecture registry tag. It does not recompile either executable or rebuild either runtime image.

The release page automatically lists the installation downloads, describes what is inside them, and includes a direct container-package link, pull command, immutable image reference, and verification links. Publication also links the container package to the source repository and enables its Packages tab when both use the same forge owner.

Rerunning the same command verifies saved file hashes and resumes after a failure. Static checks are refreshed after 24 hours to catch changed dependency advisories until publication starts; publication retries retain the same check results and signed files. Use --rerun to repeat all stages, or --check-only to run source checks without packaging. Changed source or compilation options select a separate output directory. Changing an architecture’s build location reruns that architecture only; other completed stages remain reusable. Do not run simultaneous publishers for the same version. An existing published version is immutable: new build bytes or check results require a new version rather than replacement uploads.

Optional developer checks

./dev release --skip-e2e

--skip-e2e explicitly omits the Python federation suite; omission is also the default. Skipping it is appropriate for someone building on another machine: the suite relies on one developer’s ad hoc peer fleet, credentials, URLs, and running services. It is not portable or expected to work elsewhere as provided; it is included for transparency and examples. Requiring that setup would test someone else’s environment rather than provide a usable build prerequisite. The normal application and packaged-image restore checks still run, including the drill’s Plamenu-to-Plamenu federation checks. Skipping the fleet does not establish interoperability with the third-party software it covers.

Maintainers with the existing fleet can opt in with --with-e2e. This uses their original checkout’s .env and peer workspace, and captures the suite report. It tests the configured live fleet; the separate restore drill tests the newly built release image. See Interoperability testing.

Timing benchmarks are the other machine-specific check. Use --with-performance only on the calibration machine in bench/release-policy.toml. The command runs and strictly grades fresh hot-path and contention reports automatically; there is no requirement to commit or supply those reports. Different CPUs cannot meaningfully pass the same timing thresholds without recalibration. Benchmark-budget unit tests remain part of the portable baseline. Both optional checks appear as not-run, with a reason, when omitted; omission is never reported as a pass.

Publishing setup

Create ~/.config/plamenu/release.toml once (or select another file with --config). For example:

repository = "https://codefloe.com/plamenu/plamenu"
registry = "codefloe.com/plamenu/plamenu"
git_remote = "codefloe"
username = "YOUR_ACCOUNT"
token_file = "~/.config/plamenu/release-token"
signing_key = "~/.config/plamenu/cosign.key"
# Optional overrides; defaults are the reviewed keys in the release source:
# public_key = "/path/to/cosign.pub"
# allowed_signers = "/path/to/allowed-signers"

[github]
repository = "https://github.com/Burning-Homes/plamenu"
token_file = "~/.config/plamenu/github-release-token"

Keep the token and encrypted signing key outside Git, with owner-only file permissions. The token needs repository release access and package read/write access; optional workers also need Actions access. Git uses the configured remote’s normal authentication. Supply the encrypted key password through COSIGN_PASSWORD in the publishing environment. Credentials are not passed to the compiler or the optional workers.

The optional GitHub token should be a fine-grained token restricted to the mirror repository with Contents: read and write permission. Keep its file owner-only. When [github] is configured, publication copies the exact release assets to a GitHub draft, reads each one back, and publishes that draft only after every checksum matches. Source refs continue to arrive through the Codefloe push mirror; GitHub Actions are not used.

Publication checks repository and package-owner privacy by default; private images must use that forge owner’s registry namespace. After an explicit decision to publish publicly, set allow_public = true in this local configuration. Configure the registry namespace’s visibility deliberately; repository and package visibility are separate. The registry host receives the configured token, so use a token intended for that host.

--publish verifies the signing keys and source tag, pushes both tested images, checks each pull by immutable digest, and publishes one index containing exactly linux/amd64 and linux/arm64. It signs that index and the checksum manifest, and creates/verifies/pushes the normal SSH-signed vVERSION tag. It uploads release assets into a draft, reads every asset back, verifies them, and finalizes the draft last. It adds image.txt, cosign.pub, and SHA256SUMS.bundle to the published assets. It does not move latest or stable.

Platform images also have vVERSION-amd64 and vVERSION-arm64 tags; normal users pull vVERSION and their runtime selects the correct architecture.

Failed publication can leave an image, tag, or draft. Rerun the same command to finish matching uploads; conflicting tags, images, or assets are refused. The final URL and immutable image reference are saved in publication/ beside the prepared stages. Signing and publication remain local even when a worker builds the release.

To backfill a release that is already published on Codefloe, run:

./dev mirror-release v0.6.0

This uses only Codefloe’s public release API and downloads, makes no Codefloe changes, and uploads the same verified bytes to GitHub. It is idempotent: a matching draft is resumed and a matching published mirror is only verified; conflicting or incomplete published releases are refused.

Obtain release/cosign.pub and release/allowed-signers through reviewed signed Git history. Cosign uses explicit keys without public transparency-log submissions. Verify downloaded assets with the independently trusted key:

cosign verify --key release/cosign.pub --insecure-ignore-tlog \
  codefloe.com/plamenu/plamenu@sha256:REPLACE_WITH_RELEASE_DIGEST
cosign verify-blob --key release/cosign.pub --insecure-ignore-tlog \
  --bundle SHA256SUMS.bundle SHA256SUMS
sha256sum -c SHA256SUMS

Private images require registry login with package-read access. Keep protected backups of signing keys outside Git. Rotate keys through reviewed signed changes and retain old public keys for verifying older releases.

Optional workers

./dev release --arm64-on codefloe
./dev release --arm64-on codefloe --publish
# Optionally offload AMD64 or static checks too:
./dev release --amd64-on codefloe --arm64-on codefloe --checks-on codefloe --publish

The default builds both architectures locally. --arm64-on codefloe sends the ARM64 build and image drill to a native ARM64 worker; AMD64 stays local. These options require the configured repository and token, plus a pushed branch or tag at the selected commit containing release-worker.yml. The command dispatches the selected stage, waits, retrieves its result, checks its source and file hashes, and continues locally. There are no manual workflow inputs or artifact-retention chores. A retry reconnects to an unfinished request. Once retrieved, results are ordinary durable local files; forge artifact expiry no longer matters. If a result expired before download, retry to dispatch again or omit the worker option to run locally.

--checks-on offloads static checks only. Application/database checks, optional developer checks, signing, and publication stay local. Each image’s restore checks run where that image is built, using the same implementation. Workers are a convenience, and local preparation needs no release config. See CI/CD for workflow details and validation limits.

Documentation and build identity

Build a local preview with ./dev docs-build VERSION; the checked site is in target/docs/site/VERSION/. Every page shows its Plamenu version, release or development status, build number, and source revision. Development means that source is not tagged as that release; local changes marks a dirty preview. build.json contains the full identity and generated-file hashes.

Codefloe Pages

The documentation site is hosted on Codefloe Pages from the separate plamenu/docs repository. For a new or recreated docs repository, enable Pages once in Settings → Pages, selecting main. That repository holds only generated HTML, styles, and search files; docs-deploy maintains it automatically. Edit documentation in the application source repository. The site is public even while the source repository remains private. Codefloe serves the generated files through statichost.eu; no hosted compiler or Actions workflow is needed. See Codefloe’s Pages configuration.

Add this to the same local release configuration used for publication:

[docs]
enabled = true
repository = "https://codefloe.com/plamenu/docs"
url = "https://docs.plamenu.codefloe.page/"
branch = "main"

docs.repository selects the generated-site repository on the same forge; its SSH push URL is derived automatically, with no extra source remote needed. Docs deployment reuses token_file, allow_public, and Git signing settings. Without docs.repository, the existing repository and git_remote are used; in that case use a separate deployment branch such as pages. It needs local Git, Python 3.11+ and mdBook, but no application build, database, Docker, or Cosign key.

./dev docs-deploy                     # Publish the current committed source
./dev docs-deploy --ref v0.6.0         # Publish or retry a particular release
./dev release --publish               # Also deploy docs when enabled above

--config PATH selects a different local configuration. A standalone deployment captures the selected commit in a temporary worktree. Release publication uses its already captured source and runs docs deployment only after the signed release is available. Local release preparation does not require Pages.

The command builds and checks links locally, signs a commit containing only the generated site, and pushes it to the configured docs repository and branch. A normal Git push rejects concurrent updates. It then reads the public build marker and checks every hosted file against the local hashes, without sending forge credentials to the site. The local record and log are in target/docs/deploy/SOURCE/; the release hook keeps them under the release’s docs/ directory.

If hosting fails, the release remains published and the command reports release published; docs pending. Retry docs-deploy --ref SOURCE with the same configuration; unchanged output reuses the existing signed commit and checks hosting again. No binaries are rebuilt and no release tag or assets are changed. Hosted verification waits up to five minutes; use --timeout SECONDS when retrying a slower deployment. Never force-push over a concurrent publisher; check the current site and deliberately select the source to deploy next.

The release version comes from Cargo, the revision from the captured commit, and the release build number from that commit’s timestamp. Local and worker release builds use the same identity without depending on a forge run number. Other development builds retain their existing Git-count fallback. The admin dashboard shows the full build identity, target, and architecture.

Maintain repository access

Use this guide to inspect or restore the repository’s settings. Workflow operation is covered by CI/CD, and publication by the release procedure.

Inspect or apply settings

Run from the source checkout. Replace the token-file path with your local Codefloe administration credential:

python3 scripts/codefloe-settings.py --token-file /path/to/codefloe-token

The command prints the repository, branch protections, tag protections, and organization teams. Save this output before changing settings. To apply ci/codefloe-settings.json:

python3 scripts/codefloe-settings.py --token-file /path/to/codefloe-token --apply

The script works with private and public repositories and preserves their current visibility. Visibility is deliberately absent from the settings file; adding a private field makes the command stop before applying changes. Repository publication and package-owner visibility are separate launch steps.

It adds configured maintainers and missing labels; it does not remove team members. Review team membership separately when granting or withdrawing access. Keep the administration token outside CI.

Protections

  • main accepts pull-request merges after both quick and Clippy checks pass. Direct and force pushes are disabled, including for administrators, and the branch rejects commits that Codefloe cannot verify as signed.
  • Pull requests merge fast-forward-only. Codefloe does not currently sign the merge, squash, or rebase commits it generates, so those merge styles are disabled: the reviewed, locally signed and forge-verified source commit must become the new main tip unchanged. Rebase an outdated source branch onto main, re-sign the rewritten commits, and rerun both checks before merging.
  • Rejected reviews and outdated branches block merging. New commits dismiss stale approvals. The independent-approval count is currently zero.
  • The maintainers team has write access and is named in CODEOWNERS. Only that team may create v* tags.

Settings can still be changed by repository administrators. Check the applied rules and access after changing team membership or recreating the repository.

Commit and release credentials

Sign authored commits and include the DCO sign-off with git commit -S -s. Verify the signature locally and on Codefloe after pushing, and verify after the fast-forward that Codefloe’s main SHA is that same commit. Wait for both the pull-request and resulting main push checks. DCO trailers are checked by contribution CI; they do not verify the cryptographic signature.

Release signing lists the publication secrets, trusted public keys, and key recovery procedure.

CI/CD

Plamenu uses Forgejo Actions on Codefloe for contribution checks and optional, manually requested release workers. Release preparation, testing, signing, and publication can all run locally.

Contribution checks

checks.yml runs on pull request changes, pushes to main, and manual dispatch. New runs cancel older checks for the same branch or pull request.

JobChecksTimeout
quickRust formatting, shell lint, YAML/TOML/Python syntax, Python lint and formatting, dependency policy, secret scanning, public-tree rules, DCO trailers, and seed-version changes5 minutes
clippycargo clippy --locked --workspace --all-targets -- -D warnings with SQLX_OFFLINE=true10 minutes

Clippy waits for quick to pass, avoiding compilation when a static check already fails. Both use AMD64 workers and two Cargo jobs. Clippy checks test and benchmark targets without executing them; committed SQLx metadata removes the need for a database. Contribution jobs receive no release or deployment secrets, and checkout does not persist credentials.

Tool versions and Actions revisions are pinned. Rust tools and Clippy output are cached by toolchain, with the compilation cache also keyed by Cargo.lock. Only non-PR runs on main save caches. The compilation cache includes compressed dependency downloads and is saved only below a 1 GiB uncompressed limit. Installing zstd before restore and save keeps the cache format consistent.

Quick checks also verify the source hashes in the browser/E2E inventories and audit federation direction pairing. These are static checks, with no browser, database or peer startup. Manual verification and release static checks invoke the same portable standalone Python/JavaScript gate, including benchmark-grader and E2E helper regressions. Its report identifies the portable profile and any scanner skips; it does not claim full product qualification. See development for dependencies and the full standalone profile, including the owned FUSE test.

Manual verification compiles the ordinary program and tests through nextest using the committed offline query metadata. Its final online SQLx preparation checks every workspace target, including benchmarks, and verifies freshly generated query metadata. A separate cargo check --all-targets before that pass would repeat the same target checks and is omitted. The original compatibility targets for grouped integration sources have test = false. The pinned Cargo toolchain excludes these standalone duplicates from --all-targets; their grouped targets still include the same sources and queries. Explicit --test NAME remains available without extra features.

The repository protection configuration in ci/codefloe-settings.json requires both PR statuses before merging into main, including for administrators. Direct and force pushes are disabled, and signed commits are required. The maintainers team controls v* tags. DCO trailers and cryptographic signatures are separate checks: CI checks trailers; authored commits must also be signed and their signatures verified. Only fast-forward pull-request merges are enabled so Codefloe cannot replace them with unsigned forge-generated commits. New-branch pushes and rewritten root commits check the complete history. A root commit introduces the benchmark seed; later dataset changes still require a seed-version bump. Manual checks also work when the selected commit has no parent.

Secret scanning retains the standard detectors. .gitleaks.toml excludes only reviewed fixture values in specific files, so exclusions survive rewritten history without hiding new credentials in those files.

Local verification and releases

./dev release owns the release pipeline. It runs locally by default: source checks, disposable database tests, compilation and packaging, and an install/restore drill against the resulting image. ./dev release --publish adds local signing and publication of those same bytes. See the release procedure for prerequisites and one-time configuration.

The Python federation fleet is developer-specific and omitted by default; --skip-e2e makes that explicit. Calibrated timing benchmarks are also optional because their thresholds depend on the designated machine. Application tests, SQLx checks, documentation checks, budget unit tests, and the container restore drill do not depend on that developer setup. Automatic contribution checks alone do not establish that a release was tested.

Optional release workers

release-worker.yml is manually dispatched by ./dev release --arm64-on codefloe or ./dev release --checks-on codefloe. Pushes, pull requests, tags, and schedules do not start release jobs. The client supplies the source/settings, reconnects to pending requests, downloads results, and validates the returned source and hashes. Operators do not copy API IDs, manifests, or evidence files.

StageWorkerResultTimeout
Build and restoreDocker, native AMD64 or ARM64Installation archive, source archive, tested runtime image, metadata90 minutes
Static checksDebian Trixie, AMD64Same static checks used locally, with logs90 minutes

Both stages execute the same Python implementation as local preparation. The optional BuildKit container has a two-CPU quota, 6 GiB RAM limit, and a 12 GiB memory-plus-swap allowance. This leaves room within the observed 7 GiB job memory limit for the worker coordinator. The latter depends on existing worker swap; it does not allocate swap. The GNU-hosted Rust toolchain targets musl with Thin LTO and 16 codegen units to reduce peak compiler memory. Compilation still uses two Cargo jobs. These worker limits are not local-machine requirements. Every release targets Linux AMD64 and ARM64; local builds can use QEMU and workers must execute natively on the requested architecture.

The worker uploads one automatically retrieved bundle with a requested three-day retention period. Once downloaded, its local copy has no forge expiry dependency. Missing, expired, or mismatched results stop that stage; repeating it locally is supported. Worker jobs have no signing or registry credentials, do not publish, and do not use contribution compilation caches. Release jobs are serialized and never automatically cancelled by newer jobs.

Credentials and trust

Local preparation requires no forge credentials. Optional workers need a token for the selected repository’s Actions API. Local publication needs repository and package access, an encrypted Cosign key, and a configured Git SSH signer. The release configuration names those files; private keys remain on the publishing machine. Contribution jobs receive none of these credentials. Repository and package-owner privacy are checked before private uploads; public destinations require explicit local configuration.

Release trust is pinned in release/cosign.pub and release/allowed-signers. The signed manifest binds the release files and automatic check summary; the signed version tag identifies the source. Assets are read back and verified before the release draft is finalized. Known conflicting versions are refused.

Deployment

Deployment is a separate manual operation with environment-specific access. ./dev deploy-staging builds and deploys to the configured staging environment, checks health, and retains the previous binary for rollback. It is independent of Codefloe CI. Staging defaults to the optimized iteration profile, with LTO disabled, 64 codegen units and incremental compilation. Worker supervision still uses panic unwinding. Set PLAMENU_STAGING_PROFILE=deploy to use the shipping profile. Benchmark qualification must use the same profile as the staging binary; results from another profile do not qualify deployment. Dedicated PLAMENU_STAGING_RUSTFLAGS defines the compiler flags, with an empty default for portable builds. Staging rejects conflicting Cargo profile, encoded flags, incremental and compiler wrapper overrides, and binds its output to target/. Performance qualification also binds the target and compiler flags. Local Cargo builds use the available CPU count unless CARGO_BUILD_JOBS is set. Development and test profiles omit debug information and retain incremental compilation and optimized crypto/image dependencies. ./dev docs-deploy builds and checks locally, pushes a signed commit of generated content to the separate plamenu/docs repository, and verifies the public site. When docs hosting is enabled in local release configuration, ./dev release --publish uses the same operation after publication, from the captured release source. A hosting failure can be retried independently. See Pages deployment.