Commit Graph

474 Commits

Author SHA1 Message Date
kshitijk4poor
d66b9cd9ce refactor(process): one owner-death supervisor per Hermes process, in sh, owned by process_identity
The parent-death supervisor that only stdio MCP servers could use (tools/mcp_death_supervisor.py
+ the client in tools/mcp_tool.py) becomes layer 4 of hermes_cli/process_identity.py, next to the
spawn ledger and the Windows job object, so every long-lived child family can use the same path
instead of shipping its own reaper. MCP's three call sites now call
process_identity.update_supervised_pgids; the protocol (register/unregister <pgid>, EOF = owner
died, TERM -> 3 s -> KILL, unsafe targets refused, replay on respawn, release when empty) is
unchanged and every existing contract test moves with it.

The supervisor itself is now POSIX sh (hermes_cli/process_supervisor.sh) instead of a second
CPython: it stays resident for the life of any Hermes process with a supervised child, and an
idle sh is 0.5 MB USS against 8.1 MB for the Python supervisor (Linux, py3.14, measured).
Malformed and over-long lines are skipped exactly as before; the only protocol difference is
that a line is no longer length-capped while being read (sh's read has no cap), which only a
writer inside Hermes could exploit.
2026-10-29 16:58:09 +05:30
Teknium
4a8c01790a fix(skills): document skills share one PM-built side environment; pause before Enter in the no-tmux recipe
The six document skills each carried a copy of a venv bootstrap that ran
`python -m venv --clear` on a shared directory after an unlocked check, so two
agents could erase each other's install, and the pdf skill's optional installs
read a DOCS_ENV that was only set inside a branch.

`hermes pm environment NAME --extra E | --requirement R` exposes PM's existing
isolated environments (pm.ensure_environment) to shell callers: the identity
is re-checked under the environment's install lock, a rebuild lands in a new
generation published by an atomic selection, and the previous generation is
never deleted. It prints only the interpreter path on stdout. --extra reads
the extra's pins from pyproject.toml, so a Hermes update does not build a new
generation unless those pins change.

Every document skill now runs the same one-liner
(`hermes pm environment documents --extra documents --extra documents-pdf`)
when `python` lacks the libraries; the new documents-pdf extra carries
pdfplumber and pypdfium2. OCR libraries get their own named environments.

The no-tmux PTY recipe pauses 0.5 s between the text write and the Enter
write, like the tmux recipe, so the paste guard cannot read Enter as a newline.
2026-10-28 19:26:17 -07:00
Teknium
b357ebbfc4 fix(docker): ship tmux and the Office/PDF libraries; document skills keep a persistent side env
Hosted Docker instances could not run the hermes-agent skill's tmux spawning
recipe (no tmux) or create Office/PDF files: the docx/xlsx/powerpoint/pdf
skills said `pip install ...`, but the image's sealed venv has no pip and the
root fs resets on restart.

- Dockerfile: tmux in the runtime apt layer (+3 MB); bake a new [documents]
  extra (python-docx, openpyxl, python-pptx, reportlab, pypdf) into the
  sealed venv (+14 MB compressed, ~+38 MB on disk).
- pyproject/uv.lock: the [documents] extra, exact pins, outside [all];
  pm/extras ANCHORS gets its import anchors.
- docx/xlsx/powerpoint/pdf (+ optional excel-author/pptx-author): use
  `python` when it already imports the libs, otherwise a persistent side
  venv at $HERMES_HOME/environments/documents (recreated when its Python is
  gone); pdf script hints and the OCR reference point there, never at pip
  into Hermes's interpreter.
- hermes-agent skill: send text and Enter as separate tmux keystrokes (one
  burst lands as a newline, verified live), plus a no-tmux fallback via
  terminal(background=true, pty=true) + process_manage write.

Found on Hermes Cloud staging.
2026-10-28 19:26:17 -07:00
Ben Barclay
69d037b349 feat(config): remote config backend (HERMES_CONFIG_BACKEND=remote)
plugins/config_backends/remote serves each profile's user layer from the
config plane: boot fetch inside load_hermes_dotenv with bounded retry and
fail-closed exit (D2), per-process ETag poller (D9), key-level diff writes
with CAS and one conflict retry (D10), client-side lock and secret-literal
checks (D7, D17), in-memory migrations (D12), managed config.yaml ignored
(D18), plane credential from auth.json or IdP client credentials only and
never from a secrets: source (D26, D32). Vendored gg conformance fixtures
run against the lock matcher, secret rule and _deep_merge.
2026-10-27 17:33:48 -07:00
Maciej Lisiewski
bb6986f4d9 chore(deps): bump brotlicffi to 1.2.1.0 (#145147)
Carries libbrotli 1.2.1 (CVE-2026-111497, out-of-bounds write / RCE). Trailing bytes after a complete Brotli stream now raise brotlicffi.error.
2026-10-26 12:08:32 -07:00
Teknium
7abb9cc0fa feat(vault): opt-in OS-keychain storage for the vault key, with a verified migration
The local vault key sat in vault.key next to vault.json.enc, so any backup, synced
folder or copied ~/.hermes carried the ciphertext together with its key.

vault.key_storage: keychain (default stays `file`) puts a NEW vault's key in the OS
keychain via keyring (new lazy `keychain` extra, keyring==25.7.0), one entry per
profile, named by a non-secret vault.keyref. No reachable keychain (headless Linux,
extra not installed, plaintext/null keyring backends) falls back to the 0600 file.

`hermes vault key` shows where the key is; `hermes vault key migrate --to keychain|file`
writes the destination, proves it decrypts the vault, and only then removes the
source, so an interrupted move leaves a working vault and a rerun finishes it.

A vault whose key is missing (file or keychain entry) now raises a recovery message
and never mints a new key over existing ciphertext (before, a deleted vault.key was
silently replaced and the vault reported "key mismatch or corruption").

Opt-in rather than default: macOS can prompt for keychain access after Hermes'
Python changes, locked Linux keyrings prompt or are absent over SSH, cron while
logged out cannot read the key, and backups stop being self-contained.
2026-10-25 05:45:51 -07:00
Maciej Lisiewski
128b101efd chore(deps): bump openai to 2.54.0
openai: 2.24.0 -> 2.54.0 (pins edited: 1; also: {})
2026-10-23 09:24:07 +02:00
Maciej Lisiewski
5a36b89795 chore(deps): bump daytona to 0.225.0
daytona: 0.210.0 -> 0.225.0 (pins edited: 1; also: {daytona-analytics-api-client 0.210.0->0.225.0, daytona-api-client-async 0.210.0->0.225.0, daytona-api-client 0.210.0->0.225.0, daytona-analytics-api-client-async 0.210.0->0.225.0, daytona-toolbox-api-client 0.210.0->0.225.0, daytona-toolbox-api-client-async 0.210.0->0.225.0})
2026-10-23 09:24:06 +02:00
Maciej Lisiewski
f02555cf5f chore(deps): bump ruff to 0.15.22
ruff: 0.15.10 -> 0.15.22 (pins edited: 1; also: {})
2026-10-23 09:24:04 +02:00
Maciej Lisiewski
64487e631f chore(deps): bump ty to 0.0.89
ty: 0.0.82 -> 0.0.89 (pins edited: 1; also: {})
2026-10-23 09:24:03 +02:00
Maciej Lisiewski
f9ed8d62ce chore(deps): bump vercel to 0.12.0
vercel: 0.7.2 -> 0.12.0 (pins edited: 1; also: {vercel-workers 0.0.25->None, vercel-internal-telemetry 0.7.2->0.8.1, vercel-cache 0.7.2->0.7.6})
2026-10-23 09:24:01 +02:00
Maciej Lisiewski
fa8ffd09c9 chore(deps): bump uvicorn to 0.54.0
uvicorn: 0.41.0 -> 0.54.0 (pins edited: 1; also: {})
2026-10-23 09:23:58 +02:00
Maciej Lisiewski
fb945d0e61 chore(deps): bump truststore to 0.10.5
truststore: 0.10.4 -> 0.10.5 (pins edited: 2; also: {})
2026-10-23 09:23:58 +02:00
Maciej Lisiewski
b2ae855dff chore(deps): bump tenacity to 9.2.1
tenacity: 9.1.4 -> 9.2.1 (pins edited: 1; also: {})
2026-10-23 09:23:57 +02:00
Maciej Lisiewski
d8062a5c44 chore(deps): bump starlette to 1.9.0
starlette: 1.3.1 -> 1.9.0 (pins edited: 4; also: {})
2026-10-23 09:23:56 +02:00
Maciej Lisiewski
741357733f chore(deps): bump sounddevice to 0.5.6
sounddevice: 0.5.5 -> 0.5.6 (pins edited: 3; also: {})
2026-10-23 09:23:55 +02:00
Maciej Lisiewski
b3ace3a08f chore(deps): bump slack-sdk to 3.45.0
slack-sdk: 3.44.1 -> 3.45.0 (pins edited: 2; also: {})
2026-10-23 09:23:54 +02:00
Maciej Lisiewski
c6a8753e65 chore(deps): bump rich to 14.3.4
rich: 14.3.3 -> 14.3.4 (pins edited: 1; also: {})
2026-10-23 09:23:53 +02:00
Maciej Lisiewski
00a064a797 chore(deps): bump resvg-py to 0.5.0
resvg-py: 0.4.0 -> 0.5.0 (pins edited: 1; also: {})
2026-10-23 09:23:52 +02:00
Maciej Lisiewski
cec2a96e89 chore(deps): bump requests to 2.34.2
requests: 2.33.0 -> 2.34.2 (pins edited: 1; also: {})
2026-10-23 09:23:51 +02:00
Maciej Lisiewski
f62a01d293 chore(deps): bump python-dotenv to 1.2.4
python-dotenv: 1.2.2 -> 1.2.4 (pins edited: 1; also: {})
2026-10-23 09:23:49 +02:00
Maciej Lisiewski
67e9933f4e chore(deps): bump pytest-asyncio to 1.4.0
pytest-asyncio: 1.3.0 -> 1.4.0 (pins edited: 1; also: {})
2026-10-23 09:23:48 +02:00
Maciej Lisiewski
335e0eb680 chore(deps): bump pydantic to 2.14.1
pydantic: 2.13.4 -> 2.14.1 (pins edited: 1; also: {pydantic-core 2.46.4->2.50.1})
2026-10-23 09:23:47 +02:00
Maciej Lisiewski
e2a379174a chore(deps): bump prompt-toolkit to 3.0.53
prompt-toolkit: 3.0.52 -> 3.0.53 (pins edited: 1; also: {})
2026-10-23 09:23:47 +02:00
Maciej Lisiewski
65a82c53f9 chore(deps): bump playwright to 1.64.0
playwright: 1.62.0 -> 1.64.0 (pins edited: 1; also: {})
2026-10-23 09:23:46 +02:00
Maciej Lisiewski
7e0c575b44 chore(deps): bump parallel-web to 0.6.0
parallel-web: 0.4.2 -> 0.6.0 (pins edited: 1; also: {})
2026-10-23 09:23:44 +02:00
Maciej Lisiewski
8309f37f33 chore(deps): bump packaging to 26.3
packaging: 26.0 -> 26.3 (pins edited: 2; also: {})
2026-10-23 09:23:43 +02:00
Maciej Lisiewski
b3f77e1ddd chore(deps): bump numpy to 2.5.4
numpy: 2.4.3 -> 2.5.4 (pins edited: 3; also: {})
2026-10-23 09:23:42 +02:00
Maciej Lisiewski
e322dde361 chore(deps): bump modal to 1.6.2
modal: 1.5.5 -> 1.6.2 (pins edited: 1; also: {})
2026-10-23 09:23:40 +02:00
Maciej Lisiewski
481796aa6a chore(deps): bump microsoft-teams-apps to 2.1.1
microsoft-teams-apps: 2.0.13.4 -> 2.1.1 (pins edited: 1; also: {microsoft-teams-api 2.0.16->2.1.1})
2026-10-23 09:23:39 +02:00
Maciej Lisiewski
fe279881f8 chore(deps): bump markdown to 3.11.2
markdown: 3.10.2 -> 3.11.2 (pins edited: 1; also: {})
2026-10-23 09:23:38 +02:00
Maciej Lisiewski
c2083e626a chore(deps): bump lark-oapi to 1.7.5
lark-oapi: 1.6.8 -> 1.7.5 (pins edited: 1; also: {})
2026-10-23 09:23:37 +02:00
Maciej Lisiewski
161e7d2121 chore(deps): bump huggingface-hub to 1.33.0
huggingface-hub: 1.24.0 -> 1.33.0 (pins edited: 1; also: {})
2026-10-23 09:23:36 +02:00
Maciej Lisiewski
0cd517aa68 chore(deps): bump httpx2 to 2.15.1
httpx2: 2.12.0 -> 2.15.1 (pins edited: 3; also: {httpcore2 2.12.0->2.15.1})
2026-10-23 09:23:35 +02:00
Maciej Lisiewski
4b5479596f chore(deps): bump google-cloud-pubsub to 2.43.0
google-cloud-pubsub: 2.39.2 -> 2.43.0 (pins edited: 1; also: {})
2026-10-23 09:23:34 +02:00
Maciej Lisiewski
154748800b chore(deps): bump google-auth-oauthlib to 1.5.0
google-auth-oauthlib: 1.3.1 -> 1.5.0 (pins edited: 1; also: {})
2026-10-23 09:23:34 +02:00
Maciej Lisiewski
77da0e47a1 chore(deps): bump google-auth-httplib2 to 0.4.4
google-auth-httplib2: 0.3.1 -> 0.4.4 (pins edited: 1; also: {})
2026-10-23 09:23:33 +02:00
Maciej Lisiewski
9200e9202b chore(deps): bump google-auth to 2.62.0
google-auth: 2.55.1 -> 2.62.0 (pins edited: 2; also: {})
2026-10-23 09:23:32 +02:00
Maciej Lisiewski
5bc07faa3c chore(deps): bump google-api-python-client to 2.201.0
google-api-python-client: 2.194.0 -> 2.201.0 (pins edited: 1; also: {})
2026-10-23 09:23:31 +02:00
Maciej Lisiewski
f1fff8a28d chore(deps): bump firecrawl-py to 4.53.2
firecrawl-py: 4.17.0 -> 4.53.2 (pins edited: 1; also: {})
2026-10-23 09:23:30 +02:00
Maciej Lisiewski
fd665c15ba chore(deps): bump fal-client to 0.14.1
fal-client: 0.13.1 -> 0.14.1 (pins edited: 1; also: {})
2026-10-23 09:23:29 +02:00
Maciej Lisiewski
99ba67b76e chore(deps): bump exa-py to 2.26.0
exa-py: 2.10.2 -> 2.26.0 (pins edited: 1; also: {})
2026-10-23 09:23:28 +02:00
Maciej Lisiewski
ee0755a57c chore(deps): bump distlib to 0.4.4
distlib: 0.4.3 -> 0.4.4 (pins edited: 1; also: {})
2026-10-23 09:23:26 +02:00
Maciej Lisiewski
2e65467c3c chore(deps): bump debugpy to 1.8.22
debugpy: 1.8.20 -> 1.8.22 (pins edited: 1; also: {})
2026-10-23 09:23:25 +02:00
Maciej Lisiewski
f76c9d786f chore(deps): bump daytona to 0.210.0
daytona: 0.155.0 -> 0.210.0 (pins edited: 1; also: {marshmallow 4.3.1->None, daytona-api-client-async 0.155.0->0.210.0, daytona-api-client 0.155.0->0.210.0, daytona-toolbox-api-client-async 0.155.0->0.210.0, daytona-toolbox-api-client 0.155.0->0.210.0, environs 14.6.0->None})
2026-10-23 09:23:24 +02:00
Maciej Lisiewski
06f9f23585 chore(deps): bump cryptography to 50.0.2
cryptography: 50.0.1 -> 50.0.2 (pins edited: 2; also: {})
2026-10-23 09:23:23 +02:00
Maciej Lisiewski
f7b86c9955 chore(deps): bump croniter to 6.2.4
croniter: 6.0.0 -> 6.2.4 (pins edited: 1; also: {pytz 2026.5->None})
2026-10-23 09:23:22 +02:00
Maciej Lisiewski
c979cc5869 chore(deps): bump concurrent-log-handler to 0.9.30
concurrent-log-handler: 0.9.29 -> 0.9.30 (pins edited: 1; also: {})
2026-10-23 09:23:21 +02:00
Maciej Lisiewski
2a0514b0f4 chore(deps): bump boto3 to 1.43.115
boto3: 1.42.89 -> 1.43.115 (pins edited: 1; also: {botocore 1.42.97->1.43.115, s3transfer 0.16.1->0.19.3})
2026-10-23 09:23:20 +02:00
Maciej Lisiewski
2b3e155ee5 chore(deps): bump azure-identity to 1.26.0
azure-identity: 1.25.3 -> 1.26.0 (pins edited: 1; also: {})
2026-10-23 09:23:19 +02:00