Commit Graph

4 Commits

Author SHA1 Message Date
Teknium
96ab1749a4 docs(gateway): one-shot stdout is the reply plus the resume block, and exit 3 covers a crash-lost turn
gateway-classic-cli.md said "One-shot stdout contains only the final reply". A live
`hermes chat -q` on r9-base (fake HOME, loopback model) prints the reply followed by
main's `Resume this session with: hermes --resume <id>` block, and a `--resume <id> -q`
first replays the stored history; only `-Q` prints the reply alone. The section's own
Launch options paragraph already documents the resume block, so the two lines contradicted
each other. Exit 3 is also what `--resume <id> -q` returns after a gateway crash mid-turn
(live kill -9 probe), and the doc now names `hermes sessions discard <id> --yes` there.

Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5470880976
(cherry picked from commit 17c6c67c627d0e76cc676889f2d4dda957196810)
2026-10-09 17:31:26 -07:00
Teknium
60302f0054 docs(gateway): generated command-parity table for local sessions, with a drift test
Reviewers asked which commands each local client can run on the shared gateway; the only
answer was reading five code paths. scripts/gen_gateway_command_parity.py walks
COMMAND_REGISTRY (103 commands) and records, from the code itself:

- the gateway's slash.exec verdict for a local session (gateway/session_commands.py
  command_verdict: read / control / refused, with the read-only argument forms)
- the classic CLI view's route (hermes_cli/gateway_chat_commands.py VIEW_ROUTES)
- Ink's handler (canonical route / local / RPCs; a session-namespace RPC the authority does not
  serve is marked broken, other unserved RPCs reach the legacy sidecar)
- Desktop's surface (local spec table + the registry's desktop= dump; rpc specs fall back to
  slash.exec on -32601)
- ACP (slash_mutation)
- a note: toggles are "port: per-session setting", plus why handled-but-not-read commands
  (/agents /platform /sessions /debug /curator ...) are not local reads

website/docs/developer-guide/gateway-command-parity.md is the output (linked from the classic
CLI refusal line); tests/hermes_cli/test_gateway_command_parity.py fails when any verdict changes
without regenerating it. The classic CLI doc now lists the commands and flags this round added.

Review: https://github.com/NousResearch/hermes-agent/pull/106742#issuecomment-6073624820
(cherry picked from commit 2005bfc30683326b1216eebd2fed2d7c7768e630)
2026-10-09 02:10:48 -07:00
Teknium
0190774d73 docs(gateway): describe the launch options and slash commands the client actually has
The developer guides still listed skills, checkpoints, YOLO, hook acceptance,
pass-session-id, safe mode, ignored rules/user config, title selection,
create-if-missing, usage reports and API credentials as refused by `hermes chat`,
and said other slash commands reject. At this head gateway_chat forwards all of
those as frozen creation policy (`_POLICY`, advertised by runtime.describe from
session_policy.CREATE_FIELDS), and the view dispatches /discard, /branch, /model,
/compress (session.mutate) and /yolo (config.set). Probe
(lanes/docs/probe_chat_flags.py, real parser + validate_options): 13 accepted,
only -w, --image, --run-budget, -v, --no-restore-cwd, bare -c, --resume latest
and a nameless --create-if-missing refuse.

- gateway-classic-cli.md: accepted vs refused table with the reason and
  replacement per refused flag; slash surface; resume may repeat creation flags.
- user-guide/cli.md: same refusal list and frozen-at-creation list; /yolo.
- gateway-local-sessions.md: all six sources; the full CREATE_FIELDS launch
  contract instead of "still return invalid_params"; runtime.describe shape.
- session-storage.md: the gateway is the only canonical session writer; the four
  runtime-ledger tables (ON DELETE RESTRICT, unknown never replayed) and why
  `sessions recover` excludes them.

Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5458083694
Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5462648005
2026-10-08 19:09:50 -07:00
teknium1
caa329904c Merge remote-tracking branch 'origin/main' into fix/106742-thread-resolution
# Conflicts:
#	apps/desktop/src/app/session/hooks/use-message-stream/steer-arrival-order.test.tsx
#	apps/desktop/src/store/composer-queue.ts
#	apps/desktop/src/types/hermes.ts
#	apps/shared/src/json-rpc-gateway.ts
#	cron/jobs.py
#	cron/scheduler.py
#	gateway/hosted_room_policy_checkpoint.py
#	gateway/run.py
#	hermes_cli/env_loader.py
#	tests/acp_adapter/test_catalog_read_only.py
#	tests/acp_adapter/test_gateway_cancel_admission.py
#	tests/acp_adapter/test_gateway_catalog_cwd.py
#	tests/acp_adapter/test_gateway_client_boundary.py
#	tests/acp_adapter/test_gateway_controls.py
#	tests/acp_adapter/test_gateway_editor_cwd.py
#	tests/acp_adapter/test_gateway_editor_mcp.py
#	tests/acp_adapter/test_gateway_editor_policy.py
#	tests/acp_adapter/test_gateway_editor_v4a.py
#	tests/acp_adapter/test_gateway_editor_wire.py
#	tests/acp_adapter/test_gateway_entry_lifecycle.py
#	tests/acp_adapter/test_gateway_new_cold.py
#	tests/acp_adapter/test_gateway_prompt_content.py
#	tests/acp_adapter/test_gateway_sessions.py
#	tests/acp_adapter/test_gateway_terminal_projection.py
#	tests/acp_adapter/test_gateway_tool_projection.py
#	tests/acp_adapter/test_gateway_wire_controls.py
#	tests/acp_adapter/test_policy_identity_compat.py
#	tests/acp_adapter/test_session_mcp_frozen.py
#	tests/acp_adapter/test_session_mcp_policy.py
#	tests/cron/test_scheduler.py
#	tests/hermes_state/test_ledger_delete_consistency.py
#	tests/hermes_state/test_runtime_admission.py
#	tests/hermes_state/test_runtime_adoption.py
#	tests/hermes_state/test_runtime_destructive_mutations.py
#	tests/hermes_state/test_runtime_import_mutations.py
#	tests/hermes_state/test_runtime_mutation_actions.py
#	tests/hermes_state/test_runtime_mutation_retired_import.py
#	tests/hermes_state/test_runtime_mutations.py
#	tests/hermes_state/test_runtime_recovery.py
#	tests/hermes_state/test_runtime_rewind_mutations.py
#	tests/hermes_state/test_runtime_schema.py
#	tests/hermes_state/test_runtime_worker.py
#	tests/hermes_state/test_runtime_worker_compaction.py
#	tests/hermes_state/test_runtime_worker_compression.py
#	tests/hermes_state/test_runtime_worker_compression_admission.py
#	tests/hermes_state/test_runtime_worker_compression_annotations.py
#	tests/hermes_state/test_runtime_worker_compression_cleanup.py
#	tests/hermes_state/test_runtime_worker_compression_flush.py
#	tests/hermes_state/test_runtime_worker_context.py
#	tests/hermes_state/test_runtime_worker_history.py
#	tests/hermes_state/test_runtime_worker_lifecycle.py
#	tests/hermes_state/test_runtime_worker_metadata.py
#	tests/hermes_state/test_runtime_worker_operations.py
#	tests/hermes_state/test_runtime_worker_rotation_automation.py
#	tests/hermes_state/test_runtime_worker_title_retry.py
#	tests/hermes_state/test_runtime_worker_turn_cleanup.py
#	tests/hermes_state/test_runtime_worker_usage.py
#	tests/hermes_state/test_terminal_retirement.py
#	tests/tui_gateway/test_bot_relay_methods.py
#	tools/async_delegation.py
#	tools/bot_relay.py
#	tui_gateway/server.py
#	ui-tui/src/app/createGatewayEventHandler.ts
#	ui-tui/src/app/useSessionLifecycle.ts
#	ui-tui/src/app/useSubmission.ts
#	ui-tui/src/gatewayClient.ts
#	ui-tui/src/gatewayTypes.ts
#	ui-tui/src/types.ts
#	web/src/lib/api.ts
#	website/docs/developer-guide/gateway-classic-cli.md
#	website/docs/developer-guide/gateway-local-sessions.md
#	website/docs/user-guide/sessions.md
2026-09-13 12:27:55 -07:00