Skip to content

[Bug]: send_message Matrix path posts plaintext events into encrypted rooms #23055

Closed as not planned

Description

@cdata

Bug Description

The send_message tool's Matrix integration sends events directly via the Client-Server /send/m.room.message/{txnId} endpoint without going through olm/megolm encryption, so any message it posts into an E2EE room arrives as a plaintext m.room.message event instead of an m.room.encrypted envelope. In Element this surfaces as a "Not encrypted" indicator on the bot's tool-driven output even though the room itself has encryption enabled. The receive-side (gateway) path uses mautrix and works correctly; only the tool's send path is affected.

Environment

  • Hermes 0.13.0 (NixOS module from flake.nixosModules.default).
  • Continuwuity 0.5.0-rc.8.1 homeserver.
  • Element Web (current).
  • mautrix Python with [encryption] extra; libolm available.

Steps to Reproduce

  1. Configure Hermes Matrix gateway with MATRIX_HOMESERVER, MATRIX_USER_ID, MATRIX_PASSWORD (or MATRIX_ACCESS_TOKEN), MATRIX_RECOVERY_KEY, and MATRIX_ENCRYPTION=true.
  2. Set MATRIX_HOME_ROOM to an existing E2EE-enabled room id (e.g. a DM with the operator).
  3. Ask the agent to send a message to the home channel via the send_message tool.
  4. In Element, observe the message renders without the encryption indicator.

Expected Behavior

send_message should produce an m.room.encrypted event in encrypted rooms, using the same olm/megolm session management the gateway already maintains.

Actual Behavior

tools/send_message_tool.py (current main) constructs the request with raw aiohttp:

url = f"{homeserver}/_matrix/client/v3/rooms/{encoded_room}/send/m.room.message/{txn_id}"
headers = {"Authorization": f"Bearer {token}", "Content-Type": "application/json"}
payload = {"msgtype": "m.text", "body": message}

There's no olm session, no m.room.encrypted wrapping, no key-sharing. Token-only auth (separate from the gateway's mautrix client) is the intended design according to the docstring, but it implies bypassing E2EE.

Affected Component

Tools (terminal, file ops, web, code execution, etc.)

Messaging Platform (if gateway-related)

No response

Debug Report

[hermes debug share: log content redacted at upload time. run with --no-redact to disable]
--- hermes dump ---
version:          0.13.0 (2026.5.7) [(unknown)]
os:               Linux 6.17.9 x86_64
python:           3.12.13
openai_sdk:       2.24.0
profile:          default
hermes_home:      ~/.hermes
model:            Qwen3.6-35B-A3B
provider:         custom
terminal:         local

api_keys:
  openrouter           not set
  openai               not set
  anthropic            not set
  anthropic_token      not set
  nous                 not set
  google/gemini        not set
  gemini               not set
  glm/zai              not set
  zai                  not set
  kimi                 not set
  minimax              not set
  deepseek             not set
  dashscope            not set
  huggingface          not set
  nvidia               not set
  ai_gateway           not set
  opencode_zen         not set
  opencode_go          not set
  kilocode             not set
  firecrawl            not set
  tavily               not set
  browserbase          not set
  fal                  not set
  elevenlabs           not set
  github               not set

features:
  toolsets:           hermes-cli
  mcp_servers:        0
  memory_provider:    built-in
  gateway:            running (systemd (user), pid 281)
  platforms:          none
  cron_jobs:          0
  skills:             91
--- end dump ---


--- agent.log (last 200 lines) ---
2026-05-09 23:39:45,982 INFO gateway.run: Starting Hermes Gateway...
2026-05-09 23:39:45,982 INFO gateway.run: Session storage: /var/lib/hermes/.hermes/sessions
2026-05-09 23:39:45,983 INFO gateway.run: Agent budget: max_iterations=90 (agent.max_turns from config.yaml, or HERMES_MAX_ITERATIONS from .env, or default 90)
2026-05-09 23:39:45,983 INFO gateway.run: Secret redaction: ENABLED (tool output, logs, and chat responses are scrubbed before delivery)
2026-05-09 23:39:46,134 INFO gateway.run: Connecting to matrix...
2026-05-09 23:39:46,162 INFO gateway.platforms.matrix: Matrix: logged in as @hermes:agent.taila7a58.ts.net
2026-05-09 23:39:46,164 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:39:46,165 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:39:46,165 INFO gateway.platforms.matrix: Matrix: disconnected
2026-05-09 23:39:46,166 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:39:51,874 INFO hermes_cli.plugins: Plugin 'openai' registered image_gen provider: openai
2026-05-09 23:39:51,875 INFO hermes_cli.plugins: Plugin 'openai-codex' registered image_gen provider: openai-codex
2026-05-09 23:39:51,877 INFO hermes_cli.plugins: Plugin 'xai' registered image_gen provider: xai
2026-05-09 23:39:51,894 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:39:51,986 INFO hermes_cli.plugins: Plugin discovery complete: 11 found, 6 enabled
2026-05-09 23:39:52,238 INFO gateway.run: Starting Hermes Gateway...
2026-05-09 23:39:52,239 INFO gateway.run: Session storage: /var/lib/hermes/.hermes/sessions
2026-05-09 23:39:52,239 INFO gateway.run: Agent budget: max_iterations=90 (agent.max_turns from config.yaml, or HERMES_MAX_ITERATIONS from .env, or default 90)
2026-05-09 23:39:52,239 INFO gateway.run: Secret redaction: ENABLED (tool output, logs, and chat responses are scrubbed before delivery)
2026-05-09 23:39:52,380 INFO gateway.run: Connecting to matrix...
2026-05-09 23:39:52,405 INFO gateway.platforms.matrix: Matrix: logged in as @hermes:agent.taila7a58.ts.net
2026-05-09 23:39:52,409 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:39:52,410 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:39:52,410 INFO gateway.platforms.matrix: Matrix: disconnected
2026-05-09 23:39:52,411 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:40:24,026 INFO hermes_cli.plugins: Plugin 'openai' registered image_gen provider: openai
2026-05-09 23:40:24,027 INFO hermes_cli.plugins: Plugin 'openai-codex' registered image_gen provider: openai-codex
2026-05-09 23:40:24,028 INFO hermes_cli.plugins: Plugin 'xai' registered image_gen provider: xai
2026-05-09 23:40:24,040 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:40:24,109 INFO hermes_cli.plugins: Plugin discovery complete: 11 found, 6 enabled
2026-05-09 23:40:24,300 INFO gateway.run: Starting Hermes Gateway...
2026-05-09 23:40:24,300 INFO gateway.run: Session storage: /var/lib/hermes/.hermes/sessions
2026-05-09 23:40:24,301 INFO gateway.run: Agent budget: max_iterations=90 (agent.max_turns from config.yaml, or HERMES_MAX_ITERATIONS from .env, or default 90)
2026-05-09 23:40:24,301 INFO gateway.run: Secret redaction: ENABLED (tool output, logs, and chat responses are scrubbed before delivery)
2026-05-09 23:40:24,452 INFO gateway.run: Connecting to matrix...
2026-05-09 23:40:24,484 INFO gateway.platforms.matrix: Matrix: logged in as @hermes:agent.taila7a58.ts.net
2026-05-09 23:40:24,494 WARNING gateway.platforms.matrix: Matrix: device keys missing from server — re-uploading
2026-05-09 23:40:24,510 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-09 23:40:24,532 INFO gateway.platforms.matrix: Matrix: cross-signing verified via recovery key
2026-05-09 23:40:24,532 INFO gateway.platforms.matrix: Matrix: E2EE enabled (store: /var/lib/hermes/.hermes/platforms/matrix/store/crypto.db, device_id=mDjWQFU1DN)
2026-05-09 23:40:24,535 INFO gateway.platforms.matrix: Matrix: initial sync complete, joined 5 rooms
2026-05-09 23:40:24,543 INFO gateway.platforms.matrix: Matrix: reaction ❎ from @cdata:agent.taila7a58.ts.net on $MyPSZHgr4nh808HaJAwpwus_CIN3PdgPuzvuByvvV9w in !8JP6tAThSN6sX7IfIJ:agent.taila7a58.ts.net
2026-05-09 23:40:24,544 INFO gateway.platforms.matrix: Matrix: invited to !3sqQL20dIvXBTMeVpi:agent.taila7a58.ts.net — joining
2026-05-09 23:40:24,544 INFO gateway.platforms.matrix: Matrix: invited to !ooy0uGki8l6ogzKj3r:agent.taila7a58.ts.net — joining
2026-05-09 23:40:24,545 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-09 23:40:24,547 INFO gateway.run: ✓ matrix connected
2026-05-09 23:40:24,548 INFO gateway.run: Gateway running with 1 platform(s)
2026-05-09 23:40:24,550 INFO gateway.run: Channel directory built: 4 target(s)
2026-05-09 23:40:24,550 WARNING mau.client.crypto: Failed to decrypt $MyPSZHgr4nh808HaJAwpwus_CIN3PdgPuzvuByvvV9w: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-09 23:40:24,551 WARNING mau.client.crypto: Failed to decrypt $qMNYC9m6TxloFa5zyWS2BP_MqCoCj1v6LtN7frXJWSU: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-09 23:40:24,551 WARNING mau.client.crypto: Failed to decrypt $GSrjKTRbyZwTjfOzFGCRkdfLXLz2JtanFqd1LSRWdMo: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-09 23:40:24,551 WARNING mau.client.crypto: Failed to decrypt $Cc3uo1uf-OLJKJeOR4GNSOkuczHfkDFkeLRQgKwqrWk: Failed to decrypt megolm event: no session with given ID Xr0ylvF+7eXO/2gcjyg7CYc6+9rzraxICayPka9EDjs found
2026-05-09 23:40:24,551 WARNING mau.client.crypto: Failed to decrypt $9Ex0Mt0Ul85YQF9w2OzeHG8ovZneEKk3v8JXNfc43so: Failed to decrypt megolm event: no session with given ID Xr0ylvF+7eXO/2gcjyg7CYc6+9rzraxICayPka9EDjs found
2026-05-09 23:40:24,551 WARNING mau.client.crypto: Failed to decrypt $zf91--BYVoHmyOGrfSDkfUdgtYgYZycWDXapVReVd68: Failed to decrypt megolm event: no session with given ID UF7U6ZWmPjyiBT03fOmyd5YApsufuzCJVzLZ9/MkBbQ found
2026-05-09 23:40:24,552 WARNING mau.client.crypto: Failed to decrypt $vY75-Ju8kvumLESOaVfOYTa0xtuqAsU2bcfHdD3wuiY: Failed to decrypt megolm event: no session with given ID Xr0ylvF+7eXO/2gcjyg7CYc6+9rzraxICayPka9EDjs found
2026-05-09 23:40:24,552 WARNING mau.client.crypto: Failed to decrypt $AnUg0dRS6oarYdjyXG_kUW5UQtZXfFhGb6qM2Jj6QfE: Failed to decrypt megolm event: no session with given ID err3Bq+Xtx1Jrhowg6NDIh/ipWZh7zdw2oWo5l0iyD0 found
2026-05-09 23:40:24,552 WARNING mau.client.crypto: Failed to decrypt $NcuUomwZMEDVgZvbc1dmWRPbVSGJbDOyKU9Vkk8YHuo: Failed to decrypt megolm event: no session with given ID hRc8BbCStR+bYF814NByzZ4xdPEFLDZYjiB1lJuhcLY found
2026-05-09 23:40:24,552 WARNING mau.client.crypto: Failed to decrypt $wX9-NNv5vYc-EI0MhdXrExRF5QidRNNi6WfveZJmyKo: Failed to decrypt megolm event: no session with given ID hRc8BbCStR+bYF814NByzZ4xdPEFLDZYjiB1lJuhcLY found
2026-05-09 23:40:25,552 INFO gateway.run: Press Ctrl+C to stop
2026-05-09 23:40:25,579 INFO gateway.run: Cron ticker started (interval=60s)
2026-05-09 23:40:30,560 INFO gateway.run: kanban dispatcher: embedded in gateway (interval=60.0s)
2026-05-09 23:43:48,024 INFO gateway.platforms.matrix: [Matrix] Flushing text batch agent:main:matrix:dm:!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net (23 chars)
2026-05-09 23:43:48,123 INFO gateway.run: inbound message: platform=matrix user=cdata chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net msg='Hi Hermes, how are you?'
2026-05-09 23:43:48,154 INFO run_agent: Loaded environment variables from /var/lib/hermes/.hermes/.env
2026-05-09 23:43:48,849 INFO agent.auxiliary_client: Vision auto-detect: using main provider custom (Qwen3.6-35B-A3B)
2026-05-09 23:43:48,872 INFO agent.auxiliary_client: Auxiliary auto-detect: using main provider custom (Qwen3.6-35B-A3B)
2026-05-09 23:43:51,165 INFO agent.auxiliary_client: Auxiliary auto-detect: using main provider custom (Qwen3.6-35B-A3B)
2026-05-09 23:43:51,165 INFO agent.auxiliary_client: Auxiliary title_generation: using auto (Qwen3.6-35B-A3B) at http://192.168.100.1:8080/v1/
2026-05-09 23:43:51,175 INFO gateway.run: response ready: platform=matrix chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net time=3.1s api_calls=1 response=54 chars
2026-05-09 23:43:51,183 INFO gateway.platforms.base: [Matrix] Sending response (54 chars) to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:43:51,242 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/1xIk7sr1t2 isn't cross-signed
2026-05-09 23:43:51,244 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/OuSHiEgmDE isn't cross-signed
2026-05-09 23:43:51,282 INFO mau.crypto: Group session pI6kf0orDtT73gbzACfJ9vvAgeuWIfwLrsptGNiLHYg for !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net successfully shared
2026-05-09 23:43:51,287 INFO gateway.platforms.matrix: Matrix: sent event $5MUStWNTEUfKMNLAd_T49DrlSyRSlgvdl65EsQ55Rj0 to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:43:56,294 INFO gateway.platforms.matrix: Matrix: redacted $xDDhX1-yTptYxqeKY9EEYpJCnzPviyqtCSUde59dco4 in !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:45:26,838 INFO gateway.platforms.matrix: [Matrix] Flushing text batch agent:main:matrix:dm:!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net (51 chars)
2026-05-09 23:45:26,848 INFO gateway.run: inbound message: platform=matrix user=cdata chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net msg='Can you send a test message to your "home" channel?'
2026-05-09 23:45:31,094 INFO gateway.platforms.matrix: Matrix: sent event $GYQTWbi93BWE7T29S-h52lOheAO7e0yIpqKodIe3wF4 to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:45:39,919 INFO gateway.run: response ready: platform=matrix chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net time=13.1s api_calls=3 response=259 chars
2026-05-09 23:45:39,923 INFO gateway.platforms.base: [Matrix] Sending response (259 chars) to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:45:39,930 INFO gateway.platforms.matrix: Matrix: sent event $5dtmd3RFvJ51n6dzUBLhJZXW4LW94hTu77x6351qtm8 to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:45:44,939 INFO gateway.platforms.matrix: Matrix: redacted $Lfw4pc-ExGztFwWxbisJkEbzID-CoN0OLuWWq-0Mozc in !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:46:12,144 INFO gateway.platforms.matrix: [Matrix] Flushing text batch agent:main:matrix:dm:!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net (97 chars)
2026-05-09 23:46:12,152 INFO gateway.run: inbound message: platform=matrix user=cdata chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net msg="Please explain: why do you say Matrix isn't configured? I am talking to you via "
2026-05-09 23:46:22,234 INFO gateway.run: response ready: platform=matrix chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net time=10.1s api_calls=1 response=841 chars
2026-05-09 23:46:22,238 INFO gateway.platforms.base: [Matrix] Sending response (841 chars) to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:46:22,246 INFO gateway.platforms.matrix: Matrix: sent event $BDZ-9BscidDe6P9x4MffFY_dQSmxTXx4fYwHxrrR7Po to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:46:27,256 INFO gateway.platforms.matrix: Matrix: redacted $bRCcw1fVpzDWT0R3M7OECC93ev7L0c-ndSmGfNp4TnA in !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:53:23,929 INFO gateway.platforms.matrix: [Matrix] Flushing text batch agent:main:matrix:dm:!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net (67 chars)
2026-05-09 23:53:23,936 INFO gateway.run: inbound message: platform=matrix user=cdata chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net msg='Can you confirm for me that you know what your matrix home room is?'
2026-05-09 23:53:35,493 INFO gateway.run: response ready: platform=matrix chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net time=11.6s api_calls=1 response=1059 chars
2026-05-09 23:53:35,497 INFO gateway.platforms.base: [Matrix] Sending response (1059 chars) to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:53:35,503 INFO gateway.platforms.matrix: Matrix: sent event $_rWppGnFGix6UQspFzYDwAHKG-CcMOpKJUBlHTEGWIg to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:53:40,513 INFO gateway.platforms.matrix: Matrix: redacted $uAeo8xjO8lFODnvZmsEGrtqKEmuQcXvOIMjuOH6RZvQ in !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:58:17,398 INFO gateway.run: Received SIGTERM/SIGINT — initiating shutdown
2026-05-09 23:58:17,399 INFO gateway.run: Stopping gateway...
2026-05-09 23:58:17,408 INFO mau.crypto: Group session sxIsY2w3ZjfSAGPx9gu9PyNL2GKyFiIBRV7gRPxDOcE for !co3gGhq5ET5coHCbjU:agent.taila7a58.ts.net successfully shared
2026-05-09 23:58:17,411 INFO gateway.platforms.matrix: Matrix: sent event $wi19iiZAOAqEUz2d8ggCqNDkPrUORUOAYg8Qtm-PxkI to !co3gGhq5ET5coHCbjU:agent.taila7a58.ts.net
2026-05-09 23:58:17,412 INFO gateway.run: Sent shutdown notification to home channel matrix:!co3gGhq5ET5coHCbjU:agent.taila7a58.ts.net
2026-05-09 23:58:17,417 INFO gateway.platforms.matrix: Matrix: disconnected
2026-05-09 23:58:17,417 INFO gateway.run: ✓ matrix disconnected
2026-05-09 23:58:17,422 INFO gateway.run: Gateway stopped
2026-05-09 23:58:17,422 INFO gateway.run: Cron ticker stopped
2026-05-09 23:58:17,423 INFO gateway.run: Exiting with code 1 (signal-initiated shutdown without restart request) so systemd Restart=on-failure can revive the gateway.
2026-05-09 23:58:57,091 INFO hermes_cli.plugins: Plugin 'openai' registered image_gen provider: openai
2026-05-09 23:58:57,093 INFO hermes_cli.plugins: Plugin 'openai-codex' registered image_gen provider: openai-codex
2026-05-09 23:58:57,094 INFO hermes_cli.plugins: Plugin 'xai' registered image_gen provider: xai
2026-05-09 23:58:57,106 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:58:57,174 INFO hermes_cli.plugins: Plugin discovery complete: 11 found, 6 enabled
2026-05-09 23:58:57,361 INFO gateway.run: Starting Hermes Gateway...
2026-05-09 23:58:57,362 INFO gateway.run: Session storage: /var/lib/hermes/.hermes/sessions
2026-05-09 23:58:57,362 INFO gateway.run: Agent budget: max_iterations=90 (agent.max_turns from config.yaml, or HERMES_MAX_ITERATIONS from .env, or default 90)
2026-05-09 23:58:57,363 INFO gateway.run: Secret redaction: ENABLED (tool output, logs, and chat responses are scrubbed before delivery)
2026-05-09 23:58:57,378 INFO gateway.run: Previous gateway exited cleanly — skipping session suspension
2026-05-09 23:58:57,522 INFO gateway.run: Connecting to matrix...
2026-05-09 23:58:57,537 INFO gateway.platforms.matrix: Matrix: using access token for @hermes:agent.taila7a58.ts.net (device eBTcTqTGKK)
2026-05-09 23:58:57,547 WARNING gateway.platforms.matrix: Matrix: device keys missing from server — re-uploading
2026-05-09 23:58:57,559 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-09 23:58:57,573 INFO gateway.platforms.matrix: Matrix: cross-signing verified via recovery key
2026-05-09 23:58:57,574 INFO gateway.platforms.matrix: Matrix: E2EE enabled (store: /var/lib/hermes/.hermes/platforms/matrix/store/crypto.db, device_id=eBTcTqTGKK)
2026-05-09 23:58:57,578 INFO gateway.platforms.matrix: Matrix: initial sync complete, joined 5 rooms
2026-05-09 23:58:57,583 INFO gateway.platforms.matrix: Matrix: reaction ❎ from @cdata:agent.taila7a58.ts.net on $MyPSZHgr4nh808HaJAwpwus_CIN3PdgPuzvuByvvV9w in !8JP6tAThSN6sX7IfIJ:agent.taila7a58.ts.net
2026-05-09 23:58:57,583 INFO gateway.platforms.matrix: Matrix: invited to !3sqQL20dIvXBTMeVpi:agent.taila7a58.ts.net — joining
2026-05-09 23:58:57,583 INFO gateway.platforms.matrix: Matrix: invited to !ooy0uGki8l6ogzKj3r:agent.taila7a58.ts.net — joining
2026-05-09 23:58:57,585 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-09 23:58:57,588 INFO gateway.run: ✓ matrix connected
2026-05-09 23:58:57,589 INFO gateway.run: Gateway running with 1 platform(s)
2026-05-09 23:58:57,591 INFO gateway.run: Channel directory built: 4 target(s)
2026-05-09 23:58:57,592 WARNING mau.client.crypto: Failed to decrypt $qMNYC9m6TxloFa5zyWS2BP_MqCoCj1v6LtN7frXJWSU: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-09 23:58:57,593 WARNING mau.client.crypto: Failed to decrypt $GSrjKTRbyZwTjfOzFGCRkdfLXLz2JtanFqd1LSRWdMo: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-09 23:58:57,593 WARNING mau.client.crypto: Failed to decrypt $zf91--BYVoHmyOGrfSDkfUdgtYgYZycWDXapVReVd68: Failed to decrypt megolm event: no session with given ID UF7U6ZWmPjyiBT03fOmyd5YApsufuzCJVzLZ9/MkBbQ found
2026-05-09 23:58:57,593 WARNING mau.client.crypto: Failed to decrypt $vY75-Ju8kvumLESOaVfOYTa0xtuqAsU2bcfHdD3wuiY: Failed to decrypt megolm event: no session with given ID Xr0ylvF+7eXO/2gcjyg7CYc6+9rzraxICayPka9EDjs found
2026-05-09 23:58:57,594 WARNING mau.client.crypto: Failed to decrypt $AnUg0dRS6oarYdjyXG_kUW5UQtZXfFhGb6qM2Jj6QfE: Failed to decrypt megolm event: no session with given ID err3Bq+Xtx1Jrhowg6NDIh/ipWZh7zdw2oWo5l0iyD0 found
2026-05-09 23:58:57,594 WARNING mau.client.crypto: Failed to decrypt $wi19iiZAOAqEUz2d8ggCqNDkPrUORUOAYg8Qtm-PxkI: Failed to decrypt megolm event: no session with given ID sxIsY2w3ZjfSAGPx9gu9PyNL2GKyFiIBRV7gRPxDOcE found
2026-05-09 23:58:57,594 WARNING mau.client.crypto: Failed to decrypt $GXqw9RYYwvQg6JM99nwxGiucnT3B-FWytesrGqewNI8: Failed to decrypt megolm event: no session with given ID aHcGq7NkB/t06vWOEez1qohOJpQf7bVjK7QP1zFnSh8 found
2026-05-09 23:58:57,594 WARNING mau.client.crypto: Failed to decrypt $BDZ-9BscidDe6P9x4MffFY_dQSmxTXx4fYwHxrrR7Po: Failed to decrypt megolm event: no session with given ID pI6kf0orDtT73gbzACfJ9vvAgeuWIfwLrsptGNiLHYg found
2026-05-09 23:58:57,595 WARNING mau.client.crypto: Failed to decrypt $g9vq2OkiV7TnS3GeIC-jAum-glutkWO17tP_WcLm_yI: Failed to decrypt megolm event: no session with given ID aHcGq7NkB/t06vWOEez1qohOJpQf7bVjK7QP1zFnSh8 found
2026-05-09 23:58:57,595 WARNING mau.client.crypto: Failed to decrypt $_rWppGnFGix6UQspFzYDwAHKG-CcMOpKJUBlHTEGWIg: Failed to decrypt megolm event: no session with given ID pI6kf0orDtT73gbzACfJ9vvAgeuWIfwLrsptGNiLHYg found
2026-05-09 23:58:58,594 INFO gateway.run: Press Ctrl+C to stop
2026-05-09 23:58:58,606 INFO gateway.run: Cron ticker started (interval=60s)
2026-05-09 23:59:03,602 INFO gateway.run: kanban dispatcher: embedded in gateway (interval=60.0s)
2026-05-09 23:59:44,139 INFO gateway.platforms.matrix: [Matrix] Flushing text batch agent:main:matrix:dm:!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net (51 chars)
2026-05-09 23:59:44,189 INFO gateway.run: inbound message: platform=matrix user=cdata chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net msg='Can you send a test message to your "home" channel?'
2026-05-09 23:59:44,223 INFO run_agent: Loaded environment variables from /var/lib/hermes/.hermes/.env
2026-05-09 23:59:44,806 INFO agent.auxiliary_client: Vision auto-detect: using main provider custom (Qwen3.6-35B-A3B)
2026-05-09 23:59:44,825 INFO agent.auxiliary_client: Auxiliary auto-detect: using main provider custom (Qwen3.6-35B-A3B)
2026-05-09 23:59:56,412 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/1xIk7sr1t2 isn't cross-signed
2026-05-09 23:59:56,415 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/OuSHiEgmDE isn't cross-signed
2026-05-09 23:59:56,513 INFO mau.crypto: Group session pKXydA3QQj2ll3nALjOD5ShVmcliJPdApXdsrV+BXyg for !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net successfully shared
2026-05-09 23:59:56,521 INFO gateway.platforms.matrix: Matrix: sent event $NmnUsxYBh4tzjj2veo_01yn2FbGfNZqa1qeMM4wzOP8 to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:59:56,577 INFO gateway.platforms.matrix: Matrix: sent event $g2GUJiObNzPvEwAmDoiVXdn9Bmxt2qRju5lGP2UK-_Q to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-10 00:00:01,194 INFO gateway.run: response ready: platform=matrix chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net time=17.0s api_calls=2 response=313 chars
2026-05-10 00:00:01,201 INFO gateway.platforms.base: [Matrix] Sending response (313 chars) to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-10 00:00:01,208 INFO gateway.platforms.matrix: Matrix: sent event $_GQdWfBMxw5gsUuUUEv7m0HZsgMj0-Em7KK4UHTirdw to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-10 00:00:06,218 INFO gateway.platforms.matrix: Matrix: redacted $D41JMR3UWaPanW6z9E8jkyPuy3fmxvcCkY4paePzIK4 in !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-10 00:19:26,666 INFO gateway.run: Received SIGTERM/SIGINT — initiating shutdown
2026-05-10 00:19:26,667 INFO gateway.run: Stopping gateway...
2026-05-10 00:19:26,678 INFO mau.crypto: Group session 1at1j7pSCEn+6cUm52R+BYG4ESDmRWAuDNkwZeO8r8E for !co3gGhq5ET5coHCbjU:agent.taila7a58.ts.net successfully shared
2026-05-10 00:19:26,682 INFO gateway.platforms.matrix: Matrix: sent event $DhhndiM4K69CjEfhU6qvZrZSkDU87yvdyHk1LzF7Lsw to !co3gGhq5ET5coHCbjU:agent.taila7a58.ts.net
2026-05-10 00:19:26,683 INFO gateway.run: Sent shutdown notification to home channel matrix:!co3gGhq5ET5coHCbjU:agent.taila7a58.ts.net
2026-05-10 00:19:26,688 INFO gateway.platforms.matrix: Matrix: disconnected
2026-05-10 00:19:26,689 INFO gateway.run: ✓ matrix disconnected
2026-05-10 00:19:26,692 INFO gateway.run: Gateway stopped
2026-05-10 00:19:26,692 INFO gateway.run: Cron ticker stopped
2026-05-10 00:19:26,692 INFO gateway.run: Exiting with code 1 (signal-initiated shutdown without restart request) so systemd Restart=on-failure can revive the gateway.
2026-05-10 00:19:29,891 INFO hermes_cli.plugins: Plugin 'openai' registered image_gen provider: openai
2026-05-10 00:19:29,892 INFO hermes_cli.plugins: Plugin 'openai-codex' registered image_gen provider: openai-codex
2026-05-10 00:19:29,893 INFO hermes_cli.plugins: Plugin 'xai' registered image_gen provider: xai
2026-05-10 00:19:29,906 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-10 00:19:29,975 INFO hermes_cli.plugins: Plugin discovery complete: 11 found, 6 enabled
2026-05-10 00:19:30,165 INFO gateway.run: Starting Hermes Gateway...
2026-05-10 00:19:30,165 INFO gateway.run: Session storage: /var/lib/hermes/.hermes/sessions
2026-05-10 00:19:30,166 INFO gateway.run: Agent budget: max_iterations=90 (agent.max_turns from config.yaml, or HERMES_MAX_ITERATIONS from .env, or default 90)
2026-05-10 00:19:30,166 INFO gateway.run: Secret redaction: ENABLED (tool output, logs, and chat responses are scrubbed before delivery)
2026-05-10 00:19:30,181 INFO gateway.run: Previous gateway exited cleanly — skipping session suspension
2026-05-10 00:19:30,314 INFO gateway.run: Connecting to matrix...
2026-05-10 00:19:30,328 INFO gateway.platforms.matrix: Matrix: using access token for @hermes:agent.taila7a58.ts.net (device eBTcTqTGKK)
2026-05-10 00:19:30,336 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-10 00:19:30,353 INFO gateway.platforms.matrix: Matrix: cross-signing verified via recovery key
2026-05-10 00:19:30,354 INFO gateway.platforms.matrix: Matrix: E2EE enabled (store: /var/lib/hermes/.hermes/platforms/matrix/store/crypto.db, device_id=eBTcTqTGKK)
2026-05-10 00:19:30,360 INFO gateway.platforms.matrix: Matrix: initial sync complete, joined 5 rooms
2026-05-10 00:19:30,368 INFO gateway.platforms.matrix: Matrix: reaction ❎ from @cdata:agent.taila7a58.ts.net on $MyPSZHgr4nh808HaJAwpwus_CIN3PdgPuzvuByvvV9w in !8JP6tAThSN6sX7IfIJ:agent.taila7a58.ts.net
2026-05-10 00:19:30,368 INFO gateway.platforms.matrix: Matrix: invited to !3sqQL20dIvXBTMeVpi:agent.taila7a58.ts.net — joining
2026-05-10 00:19:30,368 INFO gateway.platforms.matrix: Matrix: invited to !ooy0uGki8l6ogzKj3r:agent.taila7a58.ts.net — joining
2026-05-10 00:19:30,371 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-10 00:19:30,373 INFO gateway.run: ✓ matrix connected
2026-05-10 00:19:30,374 INFO gateway.run: Gateway running with 1 platform(s)
2026-05-10 00:19:30,377 INFO gateway.run: Channel directory built: 4 target(s)
2026-05-10 00:19:30,380 WARNING mau.client.crypto: Failed to decrypt $qMNYC9m6TxloFa5zyWS2BP_MqCoCj1v6LtN7frXJWSU: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-10 00:19:30,385 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/1xIk7sr1t2 isn't cross-signed
2026-05-10 00:19:30,386 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/OuSHiEgmDE isn't cross-signed
2026-05-10 00:19:30,399 WARNING mau.client.crypto: Failed to decrypt $GSrjKTRbyZwTjfOzFGCRkdfLXLz2JtanFqd1LSRWdMo: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-10 00:19:30,400 WARNING mau.client.crypto: Failed to decrypt $zf91--BYVoHmyOGrfSDkfUdgtYgYZycWDXapVReVd68: Failed to decrypt megolm event: no session with given ID UF7U6ZWmPjyiBT03fOmyd5YApsufuzCJVzLZ9/MkBbQ found
2026-05-10 00:19:30,400 WARNING mau.client.crypto: Failed to decrypt $vY75-Ju8kvumLESOaVfOYTa0xtuqAsU2bcfHdD3wuiY: Failed to decrypt megolm event: no session with given ID Xr0ylvF+7eXO/2gcjyg7CYc6+9rzraxICayPka9EDjs found
2026-05-10 00:19:30,400 WARNING mau.client.crypto: Failed to decrypt $AnUg0dRS6oarYdjyXG_kUW5UQtZXfFhGb6qM2Jj6QfE: Failed to decrypt megolm event: no session with given ID err3Bq+Xtx1Jrhowg6NDIh/ipWZh7zdw2oWo5l0iyD0 found
2026-05-10 00:19:30,401 WARNING mau.client.crypto: Failed to decrypt $wi19iiZAOAqEUz2d8ggCqNDkPrUORUOAYg8Qtm-PxkI: Failed to decrypt megolm event: no session with given ID sxIsY2w3ZjfSAGPx9gu9PyNL2GKyFiIBRV7gRPxDOcE found
2026-05-10 00:19:30,402 WARNING mau.client.crypto: Failed to decrypt $_rWppGnFGix6UQspFzYDwAHKG-CcMOpKJUBlHTEGWIg: Failed to decrypt megolm event: no session with given ID pI6kf0orDtT73gbzACfJ9vvAgeuWIfwLrsptGNiLHYg found
2026-05-10 00:19:31,381 INFO gateway.run: Press Ctrl+C to stop
2026-05-10 00:19:31,392 INFO gateway.run: Cron ticker started (interval=60s)
2026-05-10 00:19:36,389 INFO gateway.run: kanban dispatcher: embedded in gateway (interval=60.0s)

--- errors.log (last 100 lines) ---
2026-05-09 23:38:30,649 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:38:31,151 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:38:31,152 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:38:31,154 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:38:36,885 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:38:37,371 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:38:37,372 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:38:37,373 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:38:43,126 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:38:43,648 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:38:43,649 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:38:43,651 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:38:49,399 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:38:49,890 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:38:49,891 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:38:49,893 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:38:55,637 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:38:56,130 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:38:56,131 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:38:56,132 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:39:01,892 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:39:02,415 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:39:02,416 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:39:02,417 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:39:08,149 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:39:08,647 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:39:08,648 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:39:08,649 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:39:14,372 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:39:14,857 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:39:14,858 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:39:14,859 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:39:20,645 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:39:21,161 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:39:21,162 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:39:21,164 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:39:26,893 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:39:27,436 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:39:27,437 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:39:27,438 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:39:33,147 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:39:33,657 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:39:33,658 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:39:33,660 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:39:39,395 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:39:39,921 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:39:39,922 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:39:39,923 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:39:45,633 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:39:46,164 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:39:46,165 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:39:46,166 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:39:51,894 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:39:52,409 ERROR gateway.platforms.matrix: Matrix: failed to create E2EE client: BAD_ACCOUNT_KEY. Install with: pip install 'mautrix[encryption]'  (requires libolm C library)
2026-05-09 23:39:52,410 WARNING gateway.run: ✗ matrix failed to connect
2026-05-09 23:39:52,411 ERROR gateway.run: Gateway failed to connect any configured messaging platform: matrix: failed to connect
2026-05-09 23:40:24,040 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:40:24,494 WARNING gateway.platforms.matrix: Matrix: device keys missing from server — re-uploading
2026-05-09 23:40:24,510 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-09 23:40:24,545 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-09 23:40:24,550 WARNING mau.client.crypto: Failed to decrypt $MyPSZHgr4nh808HaJAwpwus_CIN3PdgPuzvuByvvV9w: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-09 23:40:24,551 WARNING mau.client.crypto: Failed to decrypt $qMNYC9m6TxloFa5zyWS2BP_MqCoCj1v6LtN7frXJWSU: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-09 23:40:24,551 WARNING mau.client.crypto: Failed to decrypt $GSrjKTRbyZwTjfOzFGCRkdfLXLz2JtanFqd1LSRWdMo: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-09 23:40:24,551 WARNING mau.client.crypto: Failed to decrypt $Cc3uo1uf-OLJKJeOR4GNSOkuczHfkDFkeLRQgKwqrWk: Failed to decrypt megolm event: no session with given ID Xr0ylvF+7eXO/2gcjyg7CYc6+9rzraxICayPka9EDjs found
2026-05-09 23:40:24,551 WARNING mau.client.crypto: Failed to decrypt $9Ex0Mt0Ul85YQF9w2OzeHG8ovZneEKk3v8JXNfc43so: Failed to decrypt megolm event: no session with given ID Xr0ylvF+7eXO/2gcjyg7CYc6+9rzraxICayPka9EDjs found
2026-05-09 23:40:24,551 WARNING mau.client.crypto: Failed to decrypt $zf91--BYVoHmyOGrfSDkfUdgtYgYZycWDXapVReVd68: Failed to decrypt megolm event: no session with given ID UF7U6ZWmPjyiBT03fOmyd5YApsufuzCJVzLZ9/MkBbQ found
2026-05-09 23:40:24,552 WARNING mau.client.crypto: Failed to decrypt $vY75-Ju8kvumLESOaVfOYTa0xtuqAsU2bcfHdD3wuiY: Failed to decrypt megolm event: no session with given ID Xr0ylvF+7eXO/2gcjyg7CYc6+9rzraxICayPka9EDjs found
2026-05-09 23:40:24,552 WARNING mau.client.crypto: Failed to decrypt $AnUg0dRS6oarYdjyXG_kUW5UQtZXfFhGb6qM2Jj6QfE: Failed to decrypt megolm event: no session with given ID err3Bq+Xtx1Jrhowg6NDIh/ipWZh7zdw2oWo5l0iyD0 found
2026-05-09 23:40:24,552 WARNING mau.client.crypto: Failed to decrypt $NcuUomwZMEDVgZvbc1dmWRPbVSGJbDOyKU9Vkk8YHuo: Failed to decrypt megolm event: no session with given ID hRc8BbCStR+bYF814NByzZ4xdPEFLDZYjiB1lJuhcLY found
2026-05-09 23:40:24,552 WARNING mau.client.crypto: Failed to decrypt $wX9-NNv5vYc-EI0MhdXrExRF5QidRNNi6WfveZJmyKo: Failed to decrypt megolm event: no session with given ID hRc8BbCStR+bYF814NByzZ4xdPEFLDZYjiB1lJuhcLY found
2026-05-09 23:43:51,242 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/1xIk7sr1t2 isn't cross-signed
2026-05-09 23:43:51,244 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/OuSHiEgmDE isn't cross-signed
2026-05-09 23:58:57,106 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-09 23:58:57,547 WARNING gateway.platforms.matrix: Matrix: device keys missing from server — re-uploading
2026-05-09 23:58:57,559 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-09 23:58:57,585 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-09 23:58:57,592 WARNING mau.client.crypto: Failed to decrypt $qMNYC9m6TxloFa5zyWS2BP_MqCoCj1v6LtN7frXJWSU: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-09 23:58:57,593 WARNING mau.client.crypto: Failed to decrypt $GSrjKTRbyZwTjfOzFGCRkdfLXLz2JtanFqd1LSRWdMo: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-09 23:58:57,593 WARNING mau.client.crypto: Failed to decrypt $zf91--BYVoHmyOGrfSDkfUdgtYgYZycWDXapVReVd68: Failed to decrypt megolm event: no session with given ID UF7U6ZWmPjyiBT03fOmyd5YApsufuzCJVzLZ9/MkBbQ found
2026-05-09 23:58:57,593 WARNING mau.client.crypto: Failed to decrypt $vY75-Ju8kvumLESOaVfOYTa0xtuqAsU2bcfHdD3wuiY: Failed to decrypt megolm event: no session with given ID Xr0ylvF+7eXO/2gcjyg7CYc6+9rzraxICayPka9EDjs found
2026-05-09 23:58:57,594 WARNING mau.client.crypto: Failed to decrypt $AnUg0dRS6oarYdjyXG_kUW5UQtZXfFhGb6qM2Jj6QfE: Failed to decrypt megolm event: no session with given ID err3Bq+Xtx1Jrhowg6NDIh/ipWZh7zdw2oWo5l0iyD0 found
2026-05-09 23:58:57,594 WARNING mau.client.crypto: Failed to decrypt $wi19iiZAOAqEUz2d8ggCqNDkPrUORUOAYg8Qtm-PxkI: Failed to decrypt megolm event: no session with given ID sxIsY2w3ZjfSAGPx9gu9PyNL2GKyFiIBRV7gRPxDOcE found
2026-05-09 23:58:57,594 WARNING mau.client.crypto: Failed to decrypt $GXqw9RYYwvQg6JM99nwxGiucnT3B-FWytesrGqewNI8: Failed to decrypt megolm event: no session with given ID aHcGq7NkB/t06vWOEez1qohOJpQf7bVjK7QP1zFnSh8 found
2026-05-09 23:58:57,594 WARNING mau.client.crypto: Failed to decrypt $BDZ-9BscidDe6P9x4MffFY_dQSmxTXx4fYwHxrrR7Po: Failed to decrypt megolm event: no session with given ID pI6kf0orDtT73gbzACfJ9vvAgeuWIfwLrsptGNiLHYg found
2026-05-09 23:58:57,595 WARNING mau.client.crypto: Failed to decrypt $g9vq2OkiV7TnS3GeIC-jAum-glutkWO17tP_WcLm_yI: Failed to decrypt megolm event: no session with given ID aHcGq7NkB/t06vWOEez1qohOJpQf7bVjK7QP1zFnSh8 found
2026-05-09 23:58:57,595 WARNING mau.client.crypto: Failed to decrypt $_rWppGnFGix6UQspFzYDwAHKG-CcMOpKJUBlHTEGWIg: Failed to decrypt megolm event: no session with given ID pI6kf0orDtT73gbzACfJ9vvAgeuWIfwLrsptGNiLHYg found
2026-05-09 23:59:56,412 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/1xIk7sr1t2 isn't cross-signed
2026-05-09 23:59:56,415 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/OuSHiEgmDE isn't cross-signed
2026-05-10 00:19:29,906 WARNING hermes_cli.plugins: Failed to load plugin 'google_chat-platform': 'google_chat' is not a valid Platform
2026-05-10 00:19:30,336 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-10 00:19:30,371 WARNING mau.crypto: No one-time keys nor device keys got when trying to share keys
2026-05-10 00:19:30,380 WARNING mau.client.crypto: Failed to decrypt $qMNYC9m6TxloFa5zyWS2BP_MqCoCj1v6LtN7frXJWSU: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-10 00:19:30,385 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/1xIk7sr1t2 isn't cross-signed
2026-05-10 00:19:30,386 WARNING mau.crypto: Device @hermes:agent.taila7a58.ts.net/OuSHiEgmDE isn't cross-signed
2026-05-10 00:19:30,399 WARNING mau.client.crypto: Failed to decrypt $GSrjKTRbyZwTjfOzFGCRkdfLXLz2JtanFqd1LSRWdMo: Failed to decrypt megolm event: no session with given ID Qf3/DjFbS0IW7AJXnsmal0MvZztdNuVAW0l5/yLnS5E found
2026-05-10 00:19:30,400 WARNING mau.client.crypto: Failed to decrypt $zf91--BYVoHmyOGrfSDkfUdgtYgYZycWDXapVReVd68: Failed to decrypt megolm event: no session with given ID UF7U6ZWmPjyiBT03fOmyd5YApsufuzCJVzLZ9/MkBbQ found
2026-05-10 00:19:30,400 WARNING mau.client.crypto: Failed to decrypt $vY75-Ju8kvumLESOaVfOYTa0xtuqAsU2bcfHdD3wuiY: Failed to decrypt megolm event: no session with given ID Xr0ylvF+7eXO/2gcjyg7CYc6+9rzraxICayPka9EDjs found
2026-05-10 00:19:30,400 WARNING mau.client.crypto: Failed to decrypt $AnUg0dRS6oarYdjyXG_kUW5UQtZXfFhGb6qM2Jj6QfE: Failed to decrypt megolm event: no session with given ID err3Bq+Xtx1Jrhowg6NDIh/ipWZh7zdw2oWo5l0iyD0 found
2026-05-10 00:19:30,401 WARNING mau.client.crypto: Failed to decrypt $wi19iiZAOAqEUz2d8ggCqNDkPrUORUOAYg8Qtm-PxkI: Failed to decrypt megolm event: no session with given ID sxIsY2w3ZjfSAGPx9gu9PyNL2GKyFiIBRV7gRPxDOcE found
2026-05-10 00:19:30,402 WARNING mau.client.crypto: Failed to decrypt $_rWppGnFGix6UQspFzYDwAHKG-CcMOpKJUBlHTEGWIg: Failed to decrypt megolm event: no session with given ID pI6kf0orDtT73gbzACfJ9vvAgeuWIfwLrsptGNiLHYg found

--- gateway.log (last 100 lines) ---
2026-05-09 23:40:24,535 INFO gateway.platforms.matrix: Matrix: initial sync complete, joined 5 rooms
2026-05-09 23:40:24,543 INFO gateway.platforms.matrix: Matrix: reaction ❎ from @cdata:agent.taila7a58.ts.net on $MyPSZHgr4nh808HaJAwpwus_CIN3PdgPuzvuByvvV9w in !8JP6tAThSN6sX7IfIJ:agent.taila7a58.ts.net
2026-05-09 23:40:24,544 INFO gateway.platforms.matrix: Matrix: invited to !3sqQL20dIvXBTMeVpi:agent.taila7a58.ts.net — joining
2026-05-09 23:40:24,544 INFO gateway.platforms.matrix: Matrix: invited to !ooy0uGki8l6ogzKj3r:agent.taila7a58.ts.net — joining
2026-05-09 23:40:24,547 INFO gateway.run: ✓ matrix connected
2026-05-09 23:40:24,548 INFO gateway.run: Gateway running with 1 platform(s)
2026-05-09 23:40:24,550 INFO gateway.run: Channel directory built: 4 target(s)
2026-05-09 23:40:25,552 INFO gateway.run: Press Ctrl+C to stop
2026-05-09 23:40:25,579 INFO gateway.run: Cron ticker started (interval=60s)
2026-05-09 23:40:30,560 INFO gateway.run: kanban dispatcher: embedded in gateway (interval=60.0s)
2026-05-09 23:43:48,024 INFO gateway.platforms.matrix: [Matrix] Flushing text batch agent:main:matrix:dm:!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net (23 chars)
2026-05-09 23:43:48,123 INFO gateway.run: inbound message: platform=matrix user=cdata chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net msg='Hi Hermes, how are you?'
2026-05-09 23:43:51,175 INFO gateway.run: response ready: platform=matrix chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net time=3.1s api_calls=1 response=54 chars
2026-05-09 23:43:51,183 INFO gateway.platforms.base: [Matrix] Sending response (54 chars) to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:43:51,287 INFO gateway.platforms.matrix: Matrix: sent event $5MUStWNTEUfKMNLAd_T49DrlSyRSlgvdl65EsQ55Rj0 to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:43:56,294 INFO gateway.platforms.matrix: Matrix: redacted $xDDhX1-yTptYxqeKY9EEYpJCnzPviyqtCSUde59dco4 in !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:45:26,838 INFO gateway.platforms.matrix: [Matrix] Flushing text batch agent:main:matrix:dm:!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net (51 chars)
2026-05-09 23:45:26,848 INFO gateway.run: inbound message: platform=matrix user=cdata chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net msg='Can you send a test message to your "home" channel?'
2026-05-09 23:45:31,094 INFO gateway.platforms.matrix: Matrix: sent event $GYQTWbi93BWE7T29S-h52lOheAO7e0yIpqKodIe3wF4 to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:45:39,919 INFO gateway.run: response ready: platform=matrix chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net time=13.1s api_calls=3 response=259 chars
2026-05-09 23:45:39,923 INFO gateway.platforms.base: [Matrix] Sending response (259 chars) to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:45:39,930 INFO gateway.platforms.matrix: Matrix: sent event $5dtmd3RFvJ51n6dzUBLhJZXW4LW94hTu77x6351qtm8 to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:45:44,939 INFO gateway.platforms.matrix: Matrix: redacted $Lfw4pc-ExGztFwWxbisJkEbzID-CoN0OLuWWq-0Mozc in !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:46:12,144 INFO gateway.platforms.matrix: [Matrix] Flushing text batch agent:main:matrix:dm:!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net (97 chars)
2026-05-09 23:46:12,152 INFO gateway.run: inbound message: platform=matrix user=cdata chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net msg="Please explain: why do you say Matrix isn't configured? I am talking to you via "
2026-05-09 23:46:22,234 INFO gateway.run: response ready: platform=matrix chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net time=10.1s api_calls=1 response=841 chars
2026-05-09 23:46:22,238 INFO gateway.platforms.base: [Matrix] Sending response (841 chars) to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:46:22,246 INFO gateway.platforms.matrix: Matrix: sent event $BDZ-9BscidDe6P9x4MffFY_dQSmxTXx4fYwHxrrR7Po to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:46:27,256 INFO gateway.platforms.matrix: Matrix: redacted $bRCcw1fVpzDWT0R3M7OECC93ev7L0c-ndSmGfNp4TnA in !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:53:23,929 INFO gateway.platforms.matrix: [Matrix] Flushing text batch agent:main:matrix:dm:!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net (67 chars)
2026-05-09 23:53:23,936 INFO gateway.run: inbound message: platform=matrix user=cdata chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net msg='Can you confirm for me that you know what your matrix home room is?'
2026-05-09 23:53:35,493 INFO gateway.run: response ready: platform=matrix chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net time=11.6s api_calls=1 response=1059 chars
2026-05-09 23:53:35,497 INFO gateway.platforms.base: [Matrix] Sending response (1059 chars) to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:53:35,503 INFO gateway.platforms.matrix: Matrix: sent event $_rWppGnFGix6UQspFzYDwAHKG-CcMOpKJUBlHTEGWIg to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:53:40,513 INFO gateway.platforms.matrix: Matrix: redacted $uAeo8xjO8lFODnvZmsEGrtqKEmuQcXvOIMjuOH6RZvQ in !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:58:17,398 INFO gateway.run: Received SIGTERM/SIGINT — initiating shutdown
2026-05-09 23:58:17,399 INFO gateway.run: Stopping gateway...
2026-05-09 23:58:17,411 INFO gateway.platforms.matrix: Matrix: sent event $wi19iiZAOAqEUz2d8ggCqNDkPrUORUOAYg8Qtm-PxkI to !co3gGhq5ET5coHCbjU:agent.taila7a58.ts.net
2026-05-09 23:58:17,412 INFO gateway.run: Sent shutdown notification to home channel matrix:!co3gGhq5ET5coHCbjU:agent.taila7a58.ts.net
2026-05-09 23:58:17,417 INFO gateway.platforms.matrix: Matrix: disconnected
2026-05-09 23:58:17,417 INFO gateway.run: ✓ matrix disconnected
2026-05-09 23:58:17,422 INFO gateway.run: Gateway stopped
2026-05-09 23:58:17,422 INFO gateway.run: Cron ticker stopped
2026-05-09 23:58:17,423 INFO gateway.run: Exiting with code 1 (signal-initiated shutdown without restart request) so systemd Restart=on-failure can revive the gateway.
2026-05-09 23:58:57,361 INFO gateway.run: Starting Hermes Gateway...
2026-05-09 23:58:57,362 INFO gateway.run: Session storage: /var/lib/hermes/.hermes/sessions
2026-05-09 23:58:57,362 INFO gateway.run: Agent budget: max_iterations=90 (agent.max_turns from config.yaml, or HERMES_MAX_ITERATIONS from .env, or default 90)
2026-05-09 23:58:57,363 INFO gateway.run: Secret redaction: ENABLED (tool output, logs, and chat responses are scrubbed before delivery)
2026-05-09 23:58:57,378 INFO gateway.run: Previous gateway exited cleanly — skipping session suspension
2026-05-09 23:58:57,522 INFO gateway.run: Connecting to matrix...
2026-05-09 23:58:57,537 INFO gateway.platforms.matrix: Matrix: using access token for @hermes:agent.taila7a58.ts.net (device eBTcTqTGKK)
2026-05-09 23:58:57,547 WARNING gateway.platforms.matrix: Matrix: device keys missing from server — re-uploading
2026-05-09 23:58:57,573 INFO gateway.platforms.matrix: Matrix: cross-signing verified via recovery key
2026-05-09 23:58:57,574 INFO gateway.platforms.matrix: Matrix: E2EE enabled (store: /var/lib/hermes/.hermes/platforms/matrix/store/crypto.db, device_id=eBTcTqTGKK)
2026-05-09 23:58:57,578 INFO gateway.platforms.matrix: Matrix: initial sync complete, joined 5 rooms
2026-05-09 23:58:57,583 INFO gateway.platforms.matrix: Matrix: reaction ❎ from @cdata:agent.taila7a58.ts.net on $MyPSZHgr4nh808HaJAwpwus_CIN3PdgPuzvuByvvV9w in !8JP6tAThSN6sX7IfIJ:agent.taila7a58.ts.net
2026-05-09 23:58:57,583 INFO gateway.platforms.matrix: Matrix: invited to !3sqQL20dIvXBTMeVpi:agent.taila7a58.ts.net — joining
2026-05-09 23:58:57,583 INFO gateway.platforms.matrix: Matrix: invited to !ooy0uGki8l6ogzKj3r:agent.taila7a58.ts.net — joining
2026-05-09 23:58:57,588 INFO gateway.run: ✓ matrix connected
2026-05-09 23:58:57,589 INFO gateway.run: Gateway running with 1 platform(s)
2026-05-09 23:58:57,591 INFO gateway.run: Channel directory built: 4 target(s)
2026-05-09 23:58:58,594 INFO gateway.run: Press Ctrl+C to stop
2026-05-09 23:58:58,606 INFO gateway.run: Cron ticker started (interval=60s)
2026-05-09 23:59:03,602 INFO gateway.run: kanban dispatcher: embedded in gateway (interval=60.0s)
2026-05-09 23:59:44,139 INFO gateway.platforms.matrix: [Matrix] Flushing text batch agent:main:matrix:dm:!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net (51 chars)
2026-05-09 23:59:44,189 INFO gateway.run: inbound message: platform=matrix user=cdata chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net msg='Can you send a test message to your "home" channel?'
2026-05-09 23:59:56,521 INFO gateway.platforms.matrix: Matrix: sent event $NmnUsxYBh4tzjj2veo_01yn2FbGfNZqa1qeMM4wzOP8 to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-09 23:59:56,577 INFO gateway.platforms.matrix: Matrix: sent event $g2GUJiObNzPvEwAmDoiVXdn9Bmxt2qRju5lGP2UK-_Q to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-10 00:00:01,194 INFO gateway.run: response ready: platform=matrix chat=!kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net time=17.0s api_calls=2 response=313 chars
2026-05-10 00:00:01,201 INFO gateway.platforms.base: [Matrix] Sending response (313 chars) to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-10 00:00:01,208 INFO gateway.platforms.matrix: Matrix: sent event $_GQdWfBMxw5gsUuUUEv7m0HZsgMj0-Em7KK4UHTirdw to !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-10 00:00:06,218 INFO gateway.platforms.matrix: Matrix: redacted $D41JMR3UWaPanW6z9E8jkyPuy3fmxvcCkY4paePzIK4 in !kj5nw9aU8dKMuLWHRw:agent.taila7a58.ts.net
2026-05-10 00:19:26,666 INFO gateway.run: Received SIGTERM/SIGINT — initiating shutdown
2026-05-10 00:19:26,667 INFO gateway.run: Stopping gateway...
2026-05-10 00:19:26,682 INFO gateway.platforms.matrix: Matrix: sent event $DhhndiM4K69CjEfhU6qvZrZSkDU87yvdyHk1LzF7Lsw to !co3gGhq5ET5coHCbjU:agent.taila7a58.ts.net
2026-05-10 00:19:26,683 INFO gateway.run: Sent shutdown notification to home channel matrix:!co3gGhq5ET5coHCbjU:agent.taila7a58.ts.net
2026-05-10 00:19:26,688 INFO gateway.platforms.matrix: Matrix: disconnected
2026-05-10 00:19:26,689 INFO gateway.run: ✓ matrix disconnected
2026-05-10 00:19:26,692 INFO gateway.run: Gateway stopped
2026-05-10 00:19:26,692 INFO gateway.run: Cron ticker stopped
2026-05-10 00:19:26,692 INFO gateway.run: Exiting with code 1 (signal-initiated shutdown without restart request) so systemd Restart=on-failure can revive the gateway.
2026-05-10 00:19:30,165 INFO gateway.run: Starting Hermes Gateway...
2026-05-10 00:19:30,165 INFO gateway.run: Session storage: /var/lib/hermes/.hermes/sessions
2026-05-10 00:19:30,166 INFO gateway.run: Agent budget: max_iterations=90 (agent.max_turns from config.yaml, or HERMES_MAX_ITERATIONS from .env, or default 90)
2026-05-10 00:19:30,166 INFO gateway.run: Secret redaction: ENABLED (tool output, logs, and chat responses are scrubbed before delivery)
2026-05-10 00:19:30,181 INFO gateway.run: Previous gateway exited cleanly — skipping session suspension
2026-05-10 00:19:30,314 INFO gateway.run: Connecting to matrix...
2026-05-10 00:19:30,328 INFO gateway.platforms.matrix: Matrix: using access token for @hermes:agent.taila7a58.ts.net (device eBTcTqTGKK)
2026-05-10 00:19:30,353 INFO gateway.platforms.matrix: Matrix: cross-signing verified via recovery key
2026-05-10 00:19:30,354 INFO gateway.platforms.matrix: Matrix: E2EE enabled (store: /var/lib/hermes/.hermes/platforms/matrix/store/crypto.db, device_id=eBTcTqTGKK)
2026-05-10 00:19:30,360 INFO gateway.platforms.matrix: Matrix: initial sync complete, joined 5 rooms
2026-05-10 00:19:30,368 INFO gateway.platforms.matrix: Matrix: reaction ❎ from @cdata:agent.taila7a58.ts.net on $MyPSZHgr4nh808HaJAwpwus_CIN3PdgPuzvuByvvV9w in !8JP6tAThSN6sX7IfIJ:agent.taila7a58.ts.net
2026-05-10 00:19:30,368 INFO gateway.platforms.matrix: Matrix: invited to !3sqQL20dIvXBTMeVpi:agent.taila7a58.ts.net — joining
2026-05-10 00:19:30,368 INFO gateway.platforms.matrix: Matrix: invited to !ooy0uGki8l6ogzKj3r:agent.taila7a58.ts.net — joining
2026-05-10 00:19:30,373 INFO gateway.run: ✓ matrix connected
2026-05-10 00:19:30,374 INFO gateway.run: Gateway running with 1 platform(s)
2026-05-10 00:19:30,377 INFO gateway.run: Channel directory built: 4 target(s)
2026-05-10 00:19:31,381 INFO gateway.run: Press Ctrl+C to stop
2026-05-10 00:19:31,392 INFO gateway.run: Cron ticker started (interval=60s)
2026-05-10 00:19:36,389 INFO gateway.run: kanban dispatcher: embedded in gateway (interval=60.0s)

Operating System

NixOS 25.11

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    type/bugSomething isn't working
    P2Medium — degraded but workaround exists
    comp/toolsTool registry, model_tools, toolsets
    on May 10, 2026
  2. vroomfondel commented on Jun 12, 2026

    @vroomfondel

    Scope addition: cron delivery falls back to the same plaintext path, even with MATRIX_E2EE_MODE=required

    This bug is not limited to the send_message tool. The cron scheduler's delivery routine (cron/scheduler.py::_deliver_result) imports _send_to_platform from tools/send_message_tool.py as its fallback path. The fallback fires whenever no live gateway adapter is available in the executing process — most commonly when a job is triggered manually via hermes cron run (or any scheduler instance running outside the gateway process). The result is a plaintext m.room.message posted into an E2EE room, flagged "not encrypted" in Element.

    Observed on 0.16.0 (commit d62979a), MATRIX_E2EE_MODE=required set, gateway running with mautrix [encryption] and a verified cross-signed device. Same job, two delivery paths within minutes:

    17:24:46 INFO cron.scheduler: Job '…': delivered to matrix:!room…                     ← standalone, plaintext
    17:30:48 INFO cron.scheduler: Job '…': delivered to matrix:!room… via live adapter   ← encrypted, correct
    

    Repro

    1. Configure Matrix with MATRIX_E2EE_MODE=required, gateway running, E2EE room as cron deliver target.
    2. Scheduled runs (in-gateway) deliver encrypted via the live adapter — correct.
    3. Trigger the same job via hermes cron run <job_id> from a terminal: the CLI process has no live adapters, _deliver_result silently falls back to the raw HTTP sender, and the report lands in the encrypted room as plaintext.

    Expected

    Beyond fixing the send path itself (this issue), the fallback should respect MATRIX_E2EE_MODE: with required, an unencryptable send into an encrypted room should hard-fail (and surface in last_delivery_error) rather than silently downgrade to plaintext. With optional, a warning would be appropriate. Currently the downgrade is invisible unless the user inspects the room with another client.

  3. teknium1 commented on Jul 13, 2026

    @teknium1
    Collaborator

    Implemented on current main by the Matrix routing fix, including the standalone cron path noted in the follow-up comment. This is an automated hermes-sweeper review.

    • Commit a537baa81dcd239286cdab0511a6ece07724f3cc (fix(matrix): route text-only send_message through adapter for E2EE support) routes all Matrix sends through tools/send_message_tool.py:908's adapter path.
    • The standalone cron fallback still invokes _send_to_platform at cron/scheduler.py:1901; for Matrix, that reaches the encryption-aware ephemeral adapter at tools/send_message_tool.py:1702 rather than the raw HTTP sender.
    • Regression coverage at tests/tools/test_send_message_tool.py:936 verifies text-only Matrix delivery uses the adapter and does not invoke the standalone sender.
    • The fix shipped in v2026.7.1 (Hermes Agent v0.18.0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/toolsTool registry, model_tools, toolsetsplatform/matrixMatrix adapter (E2EE)sweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions