Repository navigation
rim-server 0.0.9
Added
- The agent contract (
docs/specs/agent-data-flow-v1.md) now covers agents the desktop app starts
and installs and connecting an agent from the app, and keybinds can name the new agent session
commands (agents.connect_agent,agents.start_session,agents.stop_session,
workspace.open_agent_sessions,agents.ask_about_message,agents.ask_about_conversation). - Keybinds to app commands, the commands the client runs itself such as Open Home, Open Unreads
and Toggle Notifications:createKeybindandupdateKeybindaccept their ids for personal and
workspace keybinds, so those bindings sync across devices and a workspace can share them. The
server never lists, runs or offers them to an agent (docs/command_model.md, App Commands).
Listed inserverInfo.capabilitiesasapp_command_keybinds. - Five built-in commands for what the GraphQL mutations already do:
chat.unpin_message,
chat.set_topic,admin.clear_timeout,notifications.mute_conversationand
notifications.unmute_conversation. Each keeps its mutation's rules and falls back to the
focused conversation (and, for unpinning, the selected message). The mute takes1h,8h,
until_tomorrow(09:00 tomorrow in the timezone of the caller's do-not-disturb window, else
UTC),foreveror anuntiltime. The agent may call all five, each after the person
confirms; the AI-callable set grows from 42 to 47 (docs/command_model.md). - Keybinds can name the next app commands the client adds: opening each settings tab
(settings.open.*), window, update and sign-out commands, message selection and editing,
invitations, lenses, Unreads, moderation, bots and webhooks, plugins, people actions, and the
agent commands, including approving or refusing an agent's request or pairing
(docs/command_model.md, App Commands). - Home layout: a signed-in person's Home is saved on their own server, one layout per account, so
every device shows the same boxes in the same order (homeLayout,saveHomeLayout,
resetHomeLayout,docs/home-layout.md). The edit made last wins: a save carrieseditedAt, and
one older than the stored layout answerskept: falsewith the stored one. The server checks the
layout's shape and size only, keeps no audit entry and never logs it, and the account purge removes
it. Listed inserverInfo.capabilitiesashome_layout. - Webhook test sessions: an Owner or Moderator can see what a service really sends, held in memory
for at most an hour and readable only by them (startWebhookTestSession,webhookTestDeliveries,
endWebhookTestSession,specs/bots-v1.md). A new webhook's test URL posts nothing, and saving the
webhook withCreateIncomingWebhookInput.testSessionIdkeeps that URL
(CreatedIncomingWebhook.keptTestUrl). A session on an existing webhook copies its deliveries. Only
thex-headers a format may use and the body are held. Listed inserverInfo.capabilitiesas
webhook_test_sessions. - Webhook formats: an Owner or Moderator can say how an incoming webhook turns a delivery into a
message, with rules that test anx-header or a body field and a text with placeholders, and
change it later without a new URL (CreateIncomingWebhookInput.template,IncomingWebhook.template,
updateIncomingWebhookFormat,specs/bots-v1.md).webhookFormatslists the ready-made ones,
GitHub and Grafana, andpreviewWebhookFormattries a format on a sample. Listed in
serverInfo.capabilitiesaswebhook_formats. The GitHub preset is now the shipped GitHub format,
so a value from GitHub loses its format characters, such as a bidirectional override, and a pull
request or issue number sent as a string posts. A server rolled back to a release without formats
treats a webhook that has one as plain. - A pipeline can welcome people: an Owner or Moderator can add a Post as bot action to the Member Joined
trigger (PipelineActionInput.postAsBot,PipelineActionGql.postAsBot,specs/bots-v1.md). Listed in
serverInfo.capabilitiesaspipeline_post_as_bot. A server rolled back to a release without it can't
read a pipeline that has one, so remove those first. - Bots can poll
GET /api/bot/v1/eventsfor new messages in their channels and, if allowed, members
joining. An Owner or Moderator allows it withBot.seesMemberJoins, increateBotandupdateBot,
andGET /api/bot/v1/mesays whether it is on (specs/bots-v1.md). Listed in
serverInfo.capabilitiesasbot_events. - A conversation can be marked unread from a message, with
markAsUnreador
chat.mark_as_unread, andunreadCountssays where its unread messages begin
(UnreadCount.unreadAfter). The person's other clients learn of it from aReadMarkerRewound
event. Listed inserverInfo.capabilitiesasread_marker. - Incoming webhooks: one URL per channel, bound to a bot, with a GitHub preset for releases, pull
requests and issues (IncomingWebhook,POST /api/hooks/{token},docs/specs/bots-v1.md). Listed
inserverInfo.capabilitiesasincoming_webhooks. Requests to them have thewebhookroute class
in the HTTP metrics, and refused calls over a webhook's limit count aswebhookin the rate limit
metric. Switched off with thebotsfeature. A reverse proxy's access log can hold these URLs, so
keep it private (docs/self-hosting.md). serverInfo.capabilitieslistsbot_disclosureon a server withUser.isBot,User.bot,
ServerMember.isBotandServerMember.bot, andcommand_run_idon one with
ExecuteCommandInput.runIdandAuditLogEntry.runId, so a client asks for them only there.- A
notificationEventssubscription: the viewer's notifications from every workspace on this
server, on one subscription and with no other events. Listed inserverInfo.capabilitiesas
notification_events. executeCommandandexecuteMacroerrors say what kind of refusal they are in arefusal
extension (DENIED,FAILED,EXPIRED,INVALID), withmissingnaming a capability the caller
lacks andretrySafesaying whether repeating a failed call is safe (docs/command_model.md).ExecuteCommandInput.runIdandAuditLogEntry.runId, with arunIdfilter onlistAuditLog, link
an agent's calls in one stretch.CommandInitiator::Agentonly. Audit exports gainrunId.- Macros are the person's own commands, kept with their account on their home server as user
commands (user.<key>, categoryMacro). A step may now name an app command or a plugin
command, not only a built-in the server runs, and may ask for arguments when the macro runs
(UserCommandStep.ask,UserCommandStepInput.ask). The client runs such a macro step by step;
executeCommandrefuses it withVALIDATION"this macro has steps only the app runs; run it
from the app".macroStepCommandslists the built-in and app commands a step may name
(docs/command_model.md, Commands And Macros). Listed inserverInfo.capabilitiesas
account_macros. - The AI agent may run a macro its owner allowed (
UserCommand.aiCallable,nlDescriptionand
intentSamples, and the same fields ofCreateUserCommandInputandUpdateUserCommandInput)
when every step is a built-in the server runs and the agent may run itself, with every argument
fixed. Such a macro is listed
on theAIsurface and bycommandDiscoverasuser.<key>and runs as one call, which the
person confirms when a step changes something.executeCommandrefuses the agent any other
macro withFORBIDDEN. - The
UIvalue ofCommandInitiator, for buttons, toggles, dialog actions and Home quick boxes
that run their command throughexecuteCommand. It is a human initiator: it needs a
confirmation only for dangerous andRestrictedcommands, and the audit log shows it asui
(docs/command_model.md, Invocation Sources). Listed inserverInfo.capabilitiesas
command_initiator_ui. admin.bantakes an optionalminutes, andnotifications.mute_conversationa duration
minuteswith aminutescount, so macros and agents can ban or mute for a number of minutes
from now. Listed inserverInfo.capabilitiesascommand_relative_minutes
(docs/command_model.md).- Bot accounts: an Owner or Moderator creates a bot with revocable tokens and a required statement
of who runs it and where what it reads goes (Bot,BotToken,createBot,
docs/specs/bots-v1.md). Switched off with thebotsfeature. - A bot API under
/api/bot/v1for reading, searching, posting and polling for mentions, in the
channels a bot was added to (docs/specs/bots-v1.md).CommandInitiator::Botappears in the audit
log. Refused calls over a token's limit count asbot_apiin the rate limit metric. A bot gets no
notifications, digests or pushes.
Changed
state.setttl,state.incrdeltaandstate.listlimitare numbers, and numeric
strings still work; so do thelimitofchat.search_messagesandchat.get_recent_messages.
admin.invite_memberno longer asks for a person it never used (auser_idis ignored), and
command titles and descriptions say "Workspace" and use plainer words (Pause Notifications
for do not disturb).- The timeout gate of
executeCommandlets a timed-out member run the commands that change only
their own state, as the GraphQL mutations do:chat.mark_as_read,chat.mark_as_unread,
chat.leave_conversationand everynotifications.*command, and a macro whose steps are all
of these (docs/command_model.md, Timeout gate). chat.mark_as_read,chat.mark_as_unreadand thenotifications.*commands write no command
audit row, nor a row as a step of a workspace macro, since the workspace's Owners and Moderators
read the audit log and the rows would show a person's reading habits. The audit tracing line is
still logged (docs/command_model.md, Audit row).- Built-in commands are in sixteen fixed categories (Navigation, Messages, Conversations, Search,
People, Home, Unreads, Notifications, Moderation, Workspace, Agents, Bots & Webhooks, Plugins,
View, App, State) in place of Admin, Chat and Workspace (docs/command_model.md, Categories).
workspace.previous_channel,workspace.next_channelandworkspace.next_unread_channelare
titled Previous Conversation, Next Conversation and Next Unread Conversation.
workspace.navigate_to_dmdeclares its requiredconversation_id, andchat.report_message
takes an optionalmessage_idthat falls back to the selected message, so the agent can name
the message it reports. workspace.open_marketplaceis titled Browse Plugins in place of Open Marketplace, and says it
opens Settings > Plugins; its id and keybind stay (docs/command_model.md).- Upgrade: a migration adds the column
command_audit_log.run_idand the index
idx_command_audit_log_actor_run_id; on a largecommand_audit_logtable, writes to it wait while
the index is built. - Upgrade: a migration adds the index
idx_message_mention_user_created; on a large
message_mentiontable, writes to it wait while the index is built. - A user command is in category
Macroin place ofUser. A new one may no longer name another
user command as a step; one saved with such a step keeps it when updated
(docs/command_model.md, Commands And Macros). - The command audit log no longer keeps message text, search words, moderation reasons, channel
descriptions, group titles or stored state values, only their length. This applies to new rows:
existing rows age out with the audit retention.AuditLogEntry.argsRedactedholds
{"redacted_content": true, "chars": <count>}in their place, and a pipe's
AuditLogEntry.commandIdholdstext=[REDACTED:<count>]. A pipe that does not parse is kept as
unparsed | pipewith theerrorKindInvalidPipeExpression(docs/command_model.md). User.isBotandServerMember.isBotsay whether an account is a bot, andUser.botand
ServerMember.botwhat the person who added it says about it. A bot has nohandle.botsanswers a GuestFORBIDDEN, as it does a non-member. An Owner or Moderator adds a bot to a
public channel without joining it; a private channel still needs them in it
(addConversationMembers).- Upgrade: rolling back the binary after bots exist: calls naming a bot's id fail with an
internal error, because the older binary can't read the newkind. Deactivate bots before rolling
back.
Deprecated
- Workspace macros:
createMacro,updateMacro,deleteMacro,executeMacro,myMacrosand
macroByNameare deprecated in the schema and keep working. A client that finds
account_macrosmoves the person's workspace macros into their macros once.
Removed
commandson theAIsurface andcommandDiscoverno longer offer anai_callableworkspace
macro asmacro.<id>, an idexecuteCommandnever ran; they offer agent-callable macros as
user.<key>.
Security
actix-http3.20.3 andactix-web4.18.2 fix RUSTSEC-2026-0446 (request smuggling through
malformed chunked trailers), RUSTSEC-2026-0447 and RUSTSEC-2026-0448 (compressed request
bodies exhausting memory and CPU) and RUSTSEC-2026-0455 (large-window Brotli bodies getting
past the decompression limit). A server stays affected until it runs a release with this
line.
Image
ghcr.io/rim-platform/rim-server:0.0.9 (sha256:443454b0f9633b6c68f477f1337ea53f5e9026ef6eef0a1ce8f1aa205a50795f), signed with cosign by this repository's release
workflow. Verify it:
cosign verify ghcr.io/rim-platform/rim-server:0.0.9 \
--certificate-identity "https://github.com/rim-platform/rim-server/.github/workflows/release.yaml@refs/tags/v0.0.9" \
--certificate-oidc-issuer https://token.actions.githubusercontent.comIts SBOM, rim-server-0.0.9.spdx.json below, is attested to that digest by the same
workflow:
gh attestation verify oci://ghcr.io/rim-platform/rim-server@sha256:443454b0f9633b6c68f477f1337ea53f5e9026ef6eef0a1ce8f1aa205a50795f --repo rim-platform/rim-server \
--predicate-type https://spdx.dev/Document/v2.3The profile picture check, ghcr.io/rim-platform/rim-imagecheck:0.0.9 (sha256:60aaa4b520bb8d756592fa2ca169ae8d6b41b9a454f18058511cc75afb2807c2), is signed by
the same workflow, with its SBOM rim-imagecheck-0.0.9.spdx.json attested the same
way: verify it with the commands above, ghcr.io/rim-platform/rim-imagecheck and its digest in place of
ghcr.io/rim-platform/rim-server and sha256:443454b0f9633b6c68f477f1337ea53f5e9026ef6eef0a1ce8f1aa205a50795f.