Commit Graph

14 Commits

Author SHA1 Message Date
Teknium
aefb5b097e docs(evals): the normal-boot probe is expected to pass; drop stale wave notes
evals/shared_gateway/README.md said the "unintegrated bootstrap is expected to fail"
normal_boot.py; this PR integrates it and tests/gateway/test_normal_runtime_boot.py
asserts state == 'ready' from the real control socket. The README now says a pass is
expected and a failure is a regression.

The four worker wave notes (worker-persistence-inventory.md and the -substrate,
-lifecycle-wave22, -constructor-context-wave20 notes; ~2,000 lines) were pinned to
an old snapshot, cited private worktrees and .hermes/plans paths, called worker
switching "still blocked", and nothing links to them: removed from the shipped tree.

Docs only; no test.

Review: ahrazzle B2-28
2026-10-11 19:31:40 -07:00
Teknium
129234cee6 docs(cli): classic chat resumes latest and queues at the gateway
Docs follow code (round-13 ruling for stale docs):
- cli.md said classic `hermes chat` refuses bare --continue and --resume latest
  (exit 2). gateway_chat.wants_latest/_resume_latest resolve both through the owner
  and _UNSUPPORTED holds neither; the developer guide already documents them. The
  refused list also omitted --compact, which _UNSUPPORTED refuses. Examples and the
  info box now match _UNSUPPORTED.
- The busy_input_mode `queue` row said the classic CLI queues in-process.
  GatewayChatView.submit sends every line to prompt.submit, never reads
  busy_input_mode and has no steer/redirect path: classic chat always queues at the
  gateway; interrupt/steer are TUI/Desktop behaviours.

Docs only; no test.

Review: ahrazzle B2-23
Review: ahrazzle B2-24
2026-10-11 19:31:40 -07:00
Teknium
655546246c chore: strip the trailing blank lines at EOF that git diff --check flags
Eight files the branch adds ended in one or more blank lines, so
`git diff --check $(git merge-base HEAD origin/main) HEAD` reported 8 "new blank line at EOF"
errors. Whitespace-only: each file now ends with exactly one newline; no other line changes.

Check (8 errors on r11-base, 0 here): git diff --check c57331677d HEAD

Review: andrexibiza 24
Review: andrexibiza 5479692359-P2.10
Review: JoaoMarcos44 diffcheck
(cherry picked from commit 6b34c53b7041b037431405282a6fb2d76f657893)
2026-10-10 22:49:21 -07:00
Teknium
e1a10b0bc2 ci: bring the branch's own code under main's strict ruff config
Main made the strict ruff config the default (`ruff check .`, blocking), and
the branch's code carried 278 findings under it (main itself is clean). Fixed:

- PLW1510 (86): `check=False` on each subprocess.run, preserving behaviour,
  as main's own sweep (0006a5e229) did.
- ASYNC220 (9, test fixtures only): `noqa` with the reason, main's convention
  for a Popen that returns at once and whose handle the test drives.
- ruff's safe autofixes plus the narrow unsafe ones (UP006/UP037/RUF100/RUF013/
  PLR0402/RUF059 underscore renames/UP031/UP041/UP017/FURB167/PIE807/RUF007/
  RUF015/RUF022/FURB162), and by hand: four %-formats to f-strings, three
  unused unpacked names, one fixture loop over `.items()`.

No behaviour change. `ruff check .` passes; scripts/check passes; the 412 test
files mirroring every edited file pass (3 tests/pm files that fail only under
that batch's uv lookup pass solo, before and after this commit).
2026-10-10 17:59:08 -07:00
Teknium
b6bf0183ba refactor(gateway): narrow or log blind excepts; time out eval subprocesses
Code-health ratchet on PR #106742 (BLE001/S110/HX006), no behaviour change:
- narrow per-row JSON skips: hosted_room_attachments.reconcile_room_events
  (ValueError/TypeError/AttributeError/RecursionError), hermes_state_gateway
  routing-entry lookups (ValueError/TypeError/RecursionError)
- approval_context: only the gateway import is optional (ImportError);
  finite_turn_required() is a ContextVar read that cannot fail
- deliberate boundaries keep their behaviour and now log the traceback:
  profile park (exc_info), session-store init (module logger, same
  "gateway.run" name, still WARNING), a2a profile dispatch (local log;
  outbound reply stays redacted), readiness probe and session_search
  profile open (debug), Windows control-pipe thread hand-off (debug; start()
  re-raises), eval harness top level (logger.exception)
- managed_worker.main: traceback goes to the worker's own stderr (the owner
  spawns it with stderr=DEVNULL) via a non-propagating handler, never the
  channel or profile log files; the owner still gets only
  managed_worker_failed
- evals/shared_gateway: timeout=30 on git rev-parse/diff calls

(cherry picked from commit dfc56cdd5ab875bd14b921de71be4a5bc8afc57f)
2026-10-07 10:57:34 -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
Teknium
3dae322e64 docs: record worker lifecycle hooks proofs and remaining integration gates 2026-09-08 17:49:54 -07:00
Teknium
b762d80c95 docs: record isolated worker inference proof and remaining migration gates 2026-09-08 17:03:13 -07:00
Teknium
f22754e86c docs: delimit verified worker substrate coverage and rollout blockers 2026-09-08 14:23:12 -07:00
Teknium
0e30eb6af5 docs: inventory exact worker persistence consumers before substrate 2026-09-08 13:41:23 -07:00
Teknium
2916752242 test: retain live gateway bootstrap readiness probe 2026-09-08 11:47:31 -07:00
Teknium
bcc03ee8f7 test: retain real CLI reader A/B harness 2026-09-08 11:47:31 -07:00
Teknium
551ccfcad1 test: retain real-process read-only search A/B probe 2026-09-08 11:46:37 -07:00
Teknium
d853d14574 test: require complete shared gateway acceptance receipt coverage 2026-09-08 11:46:33 -07:00