Commit Graph

948 Commits

Author SHA1 Message Date
Teknium
5486c3dd6c docs(compression): what happens to loaded skills across a compaction 2026-10-14 14:56:35 -07:00
Teknium
f30020ed5e fix(mcp): preserve server deadlines through outer tool execution 2026-10-14 14:09:29 -07:00
Teknium
fcc170b798 fix(plugins): honor portable per-server call deadlines 2026-10-14 14:09:29 -07:00
Teknium
2c01eb5958 Merge origin/main into feat/unified-gateway-runtime
48 commits from main (e8c8e46471). One conflict: hermes_cli/runtime_provider_custom.py, where both sides
added the `config=` keyword to _get_named_custom_provider; main's signature (config + resolve_credentials)
is taken whole.
2026-10-14 12:41:58 -07:00
ethernet
f9d8a74035 feat(release): split the Microsoft Store bundle into its own windows-store lane
`windows` used to build the signed MSIX, the universal bundle and the Store
bundle together, so skipping the signed pipeline meant skipping the Store too.
Now `windows` is the signed pipeline and `windows-store` the unsigned Store
bundle; both default on and the shared per-arch builds only make what the
lanes ask for.

- lanes: new `windows-store` lane and derived `windows-build` (either lane),
  which gates the shared candidates-win32-* jobs and handoffs.
- desktop-bundled-release: `skip-signed` builds only the Store variant and
  needs no Azure login, signing, metadata, smoke or receipt; `skip-store`
  builds and submits no Store bundle (replaces the old `store` input).
- manifest: a Store-only release has no package rows, only the Store bundle
  file; assemble() now takes the claim's lanes and checks each Windows bundle
  against its lane.
- claims record `lanesRevision: 2`. A lanes claim without it was cut when
  `windows` also meant the Store bundle (rc.2-v0.22.1), so it reads as
  windows + windows-store.
- release_artifacts: drop the unused `assemble` CLI command, which could not
  name the lanes.
2026-10-14 14:39:03 -04:00
ethernet
36a8ee18cd feat(release): choose what a stable release builds and tests with lanes
The skip and opt-in flags (--skip-bundles, --skip-tests, --include-macos-intel,
--include-termux) were four booleans in the claim, and every consumer
re-derived what they meant. A release is now a set of lanes, defined once in
scripts/releases/lanes.py: five build lanes (docker, windows, macos-arm64,
macos-intel, termux) and ten test lanes (ci, nix, docker-tests, pm-bundle,
windows-live, install-e2e, bootstrap-version, termux-checks, smoke, upgrade).
The default is every lane except macos-intel and termux.

  release.py release --only windows,docker      # the Store bundle + image, untested
  release.py release --with macos-intel --without install-e2e

- The claim records `lanes`. A claim cut before lanes existed still parses:
  skipBundles/skipTests/include* translate to the lane set that gated the
  same jobs, because the sequencer reads every claim tag ever cut.
- `admit` emits `lanes` and `jobs` (a run flag per lane-controlled job). Each
  job's `if` reads its own `jobs` entry and the gates derive their expected
  skips from the same table, so the workflow and the gates cannot drift.
  tests/ci/test_stable_release_graph.py evaluates every `if` against 37 lane
  sets.
- A release may build any subset: the candidate manifest carries exactly the
  claim's targets, and the final tag records null for the docker digest or the
  manifest digest when the claim built neither.
- The protected desktop channel, feeds, APT index and upgrade baseline move
  only when the claim built windows and macos-arm64. A partial set is staged,
  verified and (with windows) submitted to the Store, and leaves the channels
  on the previous release. A release that moves no channel is finished once
  public.
- publish-bundles passes `store` so a claim without windows submits nothing
  to the Microsoft Store.

Not exercised end to end: no real release was cut with a partial set.
2026-10-14 11:03:26 -04:00
Teknium
0715474bfd Merge origin/main into feat/unified-gateway-runtime
375 commits from main (0e427d788d). 24 files conflicted; the resolutions that carry a decision:

- /initiate-setup: main removed the command (25bf722063). Its gateway rewrite, CLI handler and the
  Desktop kickoff go with main; this branch's command-layer admission of it is dropped too
  (gateway/session_commands.py _PROMPT_COMMANDS, its slash.exec test row, the parity doc row), and
  the Desktop slash dispatcher loses the `hidden` option that only the kickoff used.
- Code this branch moved out of its old file, carrying main's edits to the moved copy:
  first-contact notes (gateway/run_turn.py -> run_turn_prepare.py: no message/setup_command),
  the TUI agent factory (tui_gateway/server.py -> agent_factory.py: onboarding toolsets at build,
  setup_beat/set_theme lifecycle cards, no cli platform extras on a coding selection), the serve
  lifespan (web_server.py -> web_server_app.py standalone_lifespan: first-install probe before the
  state.db reconcile, onboarding due answer after the setup bootstrap), and the compression child
  publish (the shared _publish_compression_child_on_conn reads the parent's model_config).
- agent/auxiliary_client.py: both import changes (_route_key from main; this branch's move of
  _without_structured_output_format).
- Desktop: main's onboarding run (decideOnboarding, OnboardingEnd, card-waiting Send) replaces the
  kickoff; this branch's prepared-submission slash path, request_id on session.create and
  PreparedImageRecovery stay. Pool-limits imports are dropped (this branch removed the pool).
  createBackendSessionForSend takes main's (preview, overrides) signature.
- ci.yaml detect job: main's `ref: inputs.commit` plus this branch's sparse checkout.
- package.json / lock: main's vitest 4.1.11 plus this branch's ws 8.21.1.
- Generated: gateway-contract.openrpc.json regenerated; parity doc regenerated.
2026-10-14 05:52:49 -07:00
ethernet
667e6639af feat(release): dispatch Stable Release from the default branch
Stable ran on its claim tag, so its Actions caches lived in a scope no
later claim could read. Every attempt rebuilt wheels and re-signed every
Windows payload file. Canary already runs from the default branch with the
tag as an input. Stable now does the same.

- `check_claim` reads the commit from the claim tag. It requires the
  default-branch dispatch of stable-release.yml instead of GITHUB_REF and
  GITHUB_SHA.
- The protected publisher accepts stable-release.yml on the default branch.
- `release.py` and the release entrypoint dispatch on the default branch.
- Runs are matched to a claim by their run name. Every run now has the same
  head branch. Runs that started on the tag still match.
- `release_artifacts` reads RELEASE_COMMIT before GITHUB_SHA. The publish
  and Store jobs now set it to the admitted commit.
2026-10-13 21:22:30 -04:00
Siddharth Balyan
56b10be733 feat(metrics): count connector file-input refusals by error class
A refused path counts as not_allowed, a missing or oversized file as
invalid_arguments, and a failed upload as connector_backend.
2026-10-14 02:14:52 +05:30
alt-glitch
f5ea924b7e docs: remove the initiate-setup and first-task skills and the setup docs
Both optional skills go, and generate-skill-docs.py prunes their pages, the
optional-skills catalog rows and the sidebar entries (the sidebar would point at
missing pages otherwise). slash-commands, toolsets-reference, delegation,
tools-reference, configuration's Onboarding section and the desktop setup-chat
section return to their 889eddcd86 text; the one inbound anchor to that desktop
section lived in the two pages restored here. The shared-metrics consent note
drops the setup profile too.

(cherry picked from commit e7a2af52bb23c02032529d823b64b24e5a79c6d8)
2026-10-14 00:29:11 +05:30
Teknium
894c437b7a fix(desktop): /undo /retry /steer /queue run on a canonical session, as in the TUI
Desktop sent these typed commands as slash.exec, which the shared gateway refuses
(unsupported_command). They are now local actions mirroring the Ink TUI on the same gateway:

- /undo [N]: session.resume snapshot -> session.rewind (session.mutate rewind) on the Nth
  newest human user turn's durable row id; trims the rendered transcript, puts the removed
  text back in the composer, prints the removed-message count.
- /retry: the same rewind of the newest turn (a media/unknown-part turn is refused before
  anything is archived), then resubmits the rewound turn's own text via submitPromptText.
- /steer (/s): session.steer while the target session's turn runs; when no turn runs or the
  steer is not accepted the text becomes the next turn. Empty arg prints usage.
- /queue (/q): enqueues on the composer's next-turn queue (the owner FIFO via a queued
  admission on a canonical session, the local composer queue otherwise); bare /queue counts.

Legacy (non-owner) gateways keep the slash-worker route for /undo and /retry. New copy lives
in a typed sibling (promptNotices.sessionCommands) translated in every bundled locale; the
parity doc is regenerated (Desktop column: action: undo/retry/steer/queue).
2026-10-13 02:51:44 -07:00
Teknium
88d56fcd87 fix(gateway): /skills review verbs run the messaging handler for a local session
Desktop exposes exactly the write-approval review slice (desktop_subcommands
pending/approve/reject/diff/approval) and sent it as slash.exec, which the
owner refused; Ink's bare/pending forms hit the same refusal. The gateway's
own _handle_skills_command already serves that slice (the hub stays
CLI-only and answers its "Search/install are CLI-only" line), and its
`approval on|off` writes skills.write_approval to the profile's config.yaml,
which is where main's CLI wrote it too. Admitted: bare/pending/diff as reads,
approve/reject/approval as controls; anything else (install, search, ...)
stays unsupported_command.

Proof: test_session_read_commands runs /skills pending, /skills reject and the
refused /skills install on a real daemon; parity table regenerated.
2026-10-13 02:51:42 -07:00
Teknium
3c21c4133a fix(desktop): a typed /approve or /deny runs on the owner, as on every surface
The owner now resolves a local session's waiting approval from the typed
command (6a7fb042ad9). Ink already forwards unknown-to-Ink commands to
slash.exec; Desktop blocked both as desktop="messaging". Dropping that
disposition makes them plain exec rows (registry dump regenerated), so one
text command behaves the same in the CLI, Ink and Desktop. The approval card
keeps answering through approval.respond.

Proof: desktop-slash-commands.test.ts (red on the old dump), the daemon test
in tests/gateway/test_session_approval_commands.py for the owner side.
2026-10-13 02:51:26 -07:00
Teknium
5707483e83 fix(gateway): /toolsets and /platforms read on the owner for a local session
Neither has a messaging handler; main's classic CLI and its TUI slash worker
printed them from the process holding the agent, which on the shared gateway
is the owner. Ink and Desktop got unsupported_command. The report bodies move
verbatim into hermes_cli/cli_info_lines.py (byte-identical CLI output,
checked old vs new), and slash.exec runs them for a local session
(gateway/session_info_reads.py): /toolsets marks THIS session's toolsets
(policy.current_toolsets), /platforms reads the owning profile's gateway
config. One text on every surface.

Proof: test_session_read_commands runs both through slash.exec on a real
daemon (session created with toolsets=['todo']).
2026-10-13 02:51:17 -07:00
Teknium
0d93ab57fa docs(gateway): the parity table's Classic CLI column is main's HermesCLI
`hermes chat` is main's HermesCLI with a gateway-backed agent and session
store (hermes_cli/gateway_agent.py, gateway_session_store.py); the column
still described the retired thin client (gateway_chat_commands.VIEW_ROUTES),
which now only fronts --stream-json and the safe-mode bypass. The generator
reads HermesCLI._slash_handler for every registry command and names the main
handler it runs in-process; gateway-only commands read "messaging-only:
unknown command". The header says which client is which, and the
/approve /deny control verdict cites its test. Table regenerated.
2026-10-13 02:51:03 -07:00
Teknium
74e6dab052 fix(tui): bare /personality lists through the owner's /personality handler
On the shared gateway a bare /personality printed nothing (live hermes --tui check); it is the
owner's /personality listing now, the same text every surface shows.

(cherry picked from commit 4fabce2a64ba2d197f3cbd85b49456a857fd98b1)
2026-10-13 02:43:13 -07:00
Teknium
ada38db216 fix(gateway,tui,desktop): the setting writes Ink and Desktop still refused run on the owner
config.set on the owner now serves the keys the clients refused before the wire, each through the
code its slash command runs:

- `reasoning` (show/hide/reset/levels, `scope=global` = `/reasoning --global`): the /reasoning
  handler's _apply_reasoning_selection for this session.
- `yolo` with `scope=global` (Desktop's Shift+click zap): approvals.mode off / manual, as main.
- `approvals.mode` / `approval_mode`: /approvals' run_approval_mode_command for the profile.
- `display.message_reactions|in_app_tips|in_app_tours` and `voice.voice_chat_mode`: config.yaml
  leaves with main's validation (tui_gateway/server.py::_DISPLAY_TOGGLE_KEYS).

Ink drops its /reasoning (--global, display words) and `/voice tts` refusals: the first goes through
config.set reasoning, the second through slash.exec to the /voice handler (gateway state; recording
and playback stay in the terminal). Desktop's CANONICAL_CONFIG_KEYS opens those keys and the
`reasoning`/`yolo` scope. Contracts regenerated (CanonicalConfigSetParams.scope).

(cherry picked from commit 8f5fe27957d7636b5209692a2d57509381e0527e)
2026-10-13 02:43:13 -07:00
Teknium
d3cd685fb6 fix(gateway): per-session setting commands run their messaging handler for a local session
slash.exec admits /reasoning /voice /approvals /codex-runtime /footer /busy /verbose /yolo /fast
/personality and runs the same _handle_<name>_command a messaging chat runs. Only what made that
handler wrong for a LOCAL session changes (gateway/session_setting_commands.py finds its LiveSession):

- /reasoning <level>: the session override now reaches a local turn (current_reasoning_config honours
  it before the frozen policy), config.get reasoning and session.info; `--global` saves AND applies to
  this frozen session; show/hide sets the session's streamed reasoning; a session.mutate reasoning
  pick clears a typed override.
- /fast: the session's tier is read from its policy; `--global` applies to this session too.
- /busy: applied to the session (config.get busy) besides the saved default.
- /verbose: no messaging opt-in gate for a local session; cycles its own tool-progress mode
  (off/new/all/verbose, no messaging-only `log`).
- /footer: parsed its argument from a field MessageEvent does not have, so `status|on|off` toggled.

Proof: tests/gateway/test_session_setting_commands.py runs every handler on a real local session
against a loopback model, reads back through config.get and the next turn's request
(reasoning_effort high, then low after --global).

(cherry picked from commit 64e27e54954b5c5a80ca781d7fabcc7b8ea78df7)
2026-10-13 02:43:13 -07:00
Teknium
88056a7556 docs(gateway): parity table rows for the admitted authoring and goal-family commands
Regenerated by scripts/gen_gateway_command_parity.py: /plan /learn /init /initiate-setup /moa
/blueprint /egress /goal /subgoal /loop /heartbeat /review /refine /debug /curator /login are
``control`` on slash.exec, so the classic CLI, Ink and Desktop columns reach them. The stale
"/curator has no gateway handler" note is gone (``_handle_curator_command`` exists now).
2026-10-13 01:58:38 -07:00
Teknium
2efe028116 fix(tui,gateway): /status, /context and /cron read as main's TUI on the shared owner
A TUI session's slash.exec reached the messaging gateway's handlers:
/status printed "📊 **Hermes Gateway Status**" markdown, /context the
gateway's gauge instead of the category table, and /cron was refused
(FINDINGS rows 17 / 19 / 21).

For a session created with source 'tui' the owner now renders main's
TUI text itself (gateway/session_tui_reads.py), inside the owning
profile's scope and the session's workspace:
- /status: main's session.status lines (status_report.build_status_fields)
  from the stored row and the live agent;
- /context: main's _format_live_context_output, the conversation counts,
  then render_context_breakdown_lines(grid=False) off the live agent;
- bare /cron and /cron list [--all]: the classic CLI's text, now built by
  cron_overview_lines / cron_list_lines in cli_commands_mixin (the CLI
  prints the same lines). Every /cron write stays refused.
Other surfaces keep the gateway handlers. The parity table records the
TUI reads.

Live (tmux, fake provider): all three pages match MAIN line for line,
apart from the session id format.
2026-10-13 00:35:44 -07:00
Teknium
82b96df55c docs(gateway): regenerate the command parity table for the TUI lane's verbs
The Ink column was stale on the PR head: /agents, /bg, /btw, /fast,
/indicator, /personality and the other TUI picks now route through the
owner's delegation.pause, prompt.background/btw and config.set verbs.
Output of scripts/gen_gateway_command_parity.py; no code change.
2026-10-13 00:35:44 -07:00
unsupportedpastels
4ef87f4c4c fix(desktop): authorize native profile creation with a dedicated grant 2026-10-13 01:38:59 +00:00
Teknium
a51f98ebd4 Merge remote feat/unified-gateway-runtime (2171365a3f) into the banner push
unsupportedpastels pushed 2171365a3f (canonical picker keeps native legacy history)
while the banner merge was being verified; it merges without conflicts.
2026-10-12 18:08:34 -07:00
unsupportedpastels
2171365a3f fix(tui): retain native legacy history in canonical session picker 2026-10-13 00:53:30 +00:00
Teknium
a89f374d7c Merge origin/main (#45: 255 commits to 3b63f7b0a4) into feat/unified-gateway-runtime
Conflicts (2 files, 1 hunk each); every main-side change is kept, ported to
where the branch moved the code:

hermes_cli/kanban_db.py (build_worker_context helpers _ctx_cap .. _ctx_comments)
  main:   f5a6651231c/d56e357556f coerce foreign/text timestamps on read; in
          _ctx_role_history the "Recent work" stamp became
          _ctx_stamp(_to_epoch(row['ended_at']) or 0, now) instead of int().
  branch: moved the whole _ctx_* helper block into hermes_cli/kanban_db_context.py
          (kanban_db.py imports it back), deleting it from kanban_db.py.
  merged: kept the branch's deletion in kanban_db.py and applied main's change in
          kanban_db_context.py::_ctx_role_history as
          _ctx_stamp(_kb._to_epoch(row['ended_at']) or 0, now). Main's other
          timestamp coercions in kanban_db.py (Task/Run/Comment/Attachment/Event
          from_row, _TASK_EPOCH_COLUMNS, release_stale_claims,
          _extend_live_stale_claim, task_age) auto-merged unchanged.

hermes_cli/web_server.py (_lifespan)
  main:   d7830c6f42 reworded one comment in the free-tier bootstrap block
          ("the ONE place its identity is created" -> "the one boot-time creator
          of its identity"; guests are now also created on first connector use).
  branch: moved _lifespan's body into hermes_cli/web_server_app.py::app_lifespan.
  merged: kept the branch's relocation and applied main's comment rewording in
          web_server_app.py.

Merge-induced health fix (no conflict marker; the combination tripped the ratchet):
apps/desktop/src/app/session/hooks/use-cwd-actions.ts::changeSessionCwd
  main:   63ed3caa4ba/dbc538547fc grew the function (statusbar cwd change for the
          focused chat / tile runtime ids) to CC 20.
  branch: added the session_busy refusal mapping (sidebar.projects.moveBusy) in
          its catch, +1 branch -> CC 21 > target 20 (scripts/check health blocking).
  merged: both behaviours kept; the busy-error mapping moved verbatim into a
          module-level cwdChangeError(err) helper. Health back to 0 blocking.

Check: every line main added between 1fd1827726 and 3b63f7b0a4 (317 files) is
present in the merged tree.
2026-10-12 16:55:20 -07:00
Teknium
562fda904c fix(pm): plugins may move transitive core packages again (revert #137110 overreach)
#137110 pinned every core-locked package to its exact locked version in
the generated plugin workspace (`_trust_core_lock`). That overrode PM's
deliberate rule that a plugin may move a transitive core package within
core's declared ranges (only core's exact pins are fixed), and #137110
rewrote PM's test for that rule to assert the opposite. Five catalog
plugins stopped installing: cognee, loreconvo, mnemosyne, omnivoice and
radio-dm-gateway.

Remove `_trust_core_lock` and restore
tests/pm/test_workspace_build_inputs.py byte-for-byte from before #137110.
What #137110/#137159 got right stays: generated workspaces carry no
release-age cutoff, so users' machines never check upload dates and
mirrors without them keep working; the 3-day check still runs at
`hermes pm lock` and in CI.
2026-10-12 16:26:19 -07:00
Teknium
cdf5732af6 refactor: move Langfuse out of core into the langfuse catalog plugin
The bundled observability/langfuse plugin now ships as the official catalog plugin `langfuse`
(NousResearch/hermes-official-plugins, subdir langfuse) with the same hooks, HERMES_LANGFUSE_* /
LANGFUSE_* env vars and capture modes. Same pattern as the Home Assistant and Spotify moves: a
LEFT_CORE row installs and enables the plugin on `hermes update` / first start for every profile
home that had observability/langfuse (or its bare name) in plugins.enabled and not in
plugins.disabled. Keys alone are not use: the plugin was opt-in.

- left_core_migration: langfuse row + langfuse_in_use; HERMES_LANGFUSE_SECRET_KEY stays a stripped
  child-process secret and the public key / base URL stay private env, exactly as core stripped them
  while it shipped the plugin. New plugin_key field: `hermes plugins enable observability/langfuse`
  (what every pre-move doc said) now names `hermes plugins install langfuse` for this home.
- Core drops the plugin, the `hermes tools` Langfuse category and its post-setup hook (the plugin
  prompts for its keys at install), the OPTIONAL_ENV_VARS / _EXTRA_ENV_KEYS rows, the `langfuse`
  extra + its PM anchor (uv.lock regenerated with CI's uv 0.12.13), and the
  plugin's tests (they moved to the plugin repo).
- Docs (en + zh-Hans): built-in plugins and env-var reference point at the catalog plugin.
2026-10-12 14:00:32 -07:00
Teknium
0290081fa4 docs(plugins): catalog rule 9 notes validate warns on private core imports 2026-10-12 13:11:28 -07:00
Teknium
187dfcfe97 docs(plugins): place lifecycle Routing after the example; list the routed delegation keys 2026-10-12 13:11:06 -07:00
Eva
ad37bfb17f feat(plugins): optional per-launch provider on SubagentLaunchRequest
A plugin can now name a configured provider for one launch. It routes the
same way /review routes auxiliary.review: {"provider", "model"} goes through
_resolve_delegation_credentials (the runtime-provider branch), so the
delegation section's base_url/api_key/command never mix into another
provider's bundle. Precedence: request.provider > delegation config > parent.
An unresolvable provider raises SubagentLifecycleError before registration.

The field is plugin-facing only; no model-facing schema exposes it. It pairs
with the existing request.model, which today can only name a model the
parent's provider serves.
2026-10-12 13:11:06 -07:00
Eva
c82127bb6a fix(plugins): subagent lifecycle children follow the delegation config
SubagentLifecycleService.launch built the child with only request.model and
never resolved the delegation credentials, so plugin-launched children ignored
delegation.provider/model/base_url/request_overrides and ran on the parent's
provider, while delegate_task children honoured them.

launch now resolves the delegation section with _resolve_delegation_credentials,
exactly as delegate_task does, and passes the same override kwargs (shared
through a small _credential_overrides helper). request.model still wins over
delegation.model. A configured provider that cannot be resolved refuses the
launch with SubagentLifecycleError before anything is registered.
2026-10-12 13:11:06 -07:00
Eva
5a71512662 fix(plugins): subagent lifecycle facade works under plugin-host isolation; add steer
The plugin-host wire turns dataclasses into Records, so launch() rejected every
request from a host-isolated plugin ("goal must be a non-empty string") and handles
came back unknown. The service now rebuilds requests and handles from mappings;
unknown request fields fail loudly and malformed handles stay UNKNOWN_HANDLE. The
HMAC capability and parent-session checks are unchanged.

Add SubagentLifecycleService.steer(handle, text): checks the handle with _record()
and queues the text through steer_subagent(), so plugins can steer lifecycle
children without delegate internals.

Refs #133212.
2026-10-12 13:11:06 -07:00
Siddharth Balyan
afdc89ca82 docs(shared-metrics): connector naming, error classes and the three new rows 2026-10-13 01:35:42 +05:30
Teknium
37725f24f9 docs(pm): 3-day release age checked at lock time; plugins trust core's lock 2026-10-12 04:55:36 -07:00
Teknium
cc5928bd73 Merge origin/main (#44: 15 commits to 1fd1827726) into feat/unified-gateway-runtime 2026-10-11 14:02:25 -07:00
ethernet
74d788fcc9 feat(release): offer to abandon a blocking attempt from an interactive terminal
`release.py release` refuses while any attempt is outstanding and prints
the abandon command for the operator to copy. When stdin and stdout are
both terminals it now asks `Abandon <ref> and cut a new attempt? [y/N]`
right after that guidance. Yes goes through the same `abandon` as the
subcommand (cancel runs, delete the draft, write the marker) and the cut
continues as the next attempt; the default is no, and anything
non-interactive still refuses as before.

The confirmer and `inspect` are parameters of `release()`, not globals,
so only the CLI entrypoint opts in.
2026-10-11 15:22:52 -04:00
Teknium
0d3b11c21c ci(release): refuse Intel-less retirement targets and define opt-in platforms once
- Retiring a preview channel now requires the stable head to carry every
  package the preview ships. An Intel preview could otherwise be pinned to an
  arm64-only stable head it has no package in, and its client would fail to
  resolve the retirement for good.
- The docs and release.py's next-steps text said Intel Macs stay on the last
  Intel release's feed. They do not: promote rewrites the one shared macOS
  stable feed with the arm64 leg, so Intel Macs get no update until a release
  opts Intel back in. Only the Termux APT channel stays on its previous release.
- New scripts/releases/optional_platforms.py holds the claim flag, jobs,
  handoff, target and smoke of each opt-in platform; stable.py, channel
  releases, release artifacts and the entrypoint read from it. stable.py is
  back under 1,000 lines. No behavior change.
- Test: a macOS Intel receipt against a baseline without Intel plans no
  upgrade arm (baseline=none); against a baseline with Intel it plans one.
2026-10-11 11:38:33 -07:00
Teknium
5f9b77cce0 ci(release): stop building macOS Intel and Termux in stable releases by default
Stable releases no longer build the macOS Intel (darwin-x64) desktop bundle
or the Termux APT package unless the release is cut with an opt-in flag.
Intel macOS is not supported on main, and its macos-15-intel bundle leg
takes 76-88 minutes, which is most of the release's wall time.

    python scripts/release.py release --commit SHA --include-macos-intel
    python scripts/release.py release --commit SHA --include-termux

The flags are written into the signed claim as includeMacosIntel and
includeTermux, like skipBundles/skipTests. admit emits them, and the
candidates-darwin-x64, transitions-darwin-x64 and macos-packaged-x64 jobs
(Intel) and candidates-termux and termux-checks (Termux) run only when
their flag is on. The gate requires those jobs to report skipped when the
flag is off; the skip flags keep their meaning.

Claims cut before these keys existed (every rc.* tag so far) have neither
key. validate_claim treats a missing key as false and still refuses a
non-boolean value or any unknown key, so sequencer discover/reconcile keep
working over the historical tags.

Without the opt-in platforms the candidate manifest, receipts, mac feed,
protected R2 head, APT promotion and downloads table all work with those
rows absent: the macOS feed carries the arm64 leg alone, the APT indexes
are left on the previous Termux release, and the unbuilt smoke is recorded
as skipped (a passed smoke for an unbuilt target is refused). A release
that opts Intel back in after one that left it out has no Intel baseline,
so its Intel upgrade arm is skipped like a first release.

Preview channels, canary and the PM bundle artifacts are unchanged.
2026-10-11 11:38:33 -07:00
Teknium
549e53fd72 Merge origin/main (#43: 73 commits to c0ef5af520) into feat/unified-gateway-runtime
Conflicts (5 files):
- gateway/run_notifications.py: main lifted completion ownership into a new
  GatewayNotificationOwnershipMixin (run_notifications_ownership.py); the branch had lifted the
  update watcher into GatewayUpdateNotificationsMixin. The mixin inherits both. Kept both sides
  of the completion-event metadata (the branch's automation identities + local display card,
  main's proven_session_id / completion_ids), and in the async-delegation group the branch's
  authority admission runs first, then main's terminal-parent drop. Neither function main moved
  was changed on the branch.
- gateway/run_turn.py: the branch moved _hmwa_resolve_session into run_turn_prepare.py; main's
  one changed line there (the resolver receives the proven session id and completion ids) is
  ported into run_turn_prepare.py.
- hermes_cli/subcommands/sessions.py: keep both main's lazy cmd_sessions and the branch's
  rename/discard parser helper.
- ui-tui: keep both canonicalEn and connectorsEn catalogs; keep the branch's interfaces import
  plus main's findSlashCommand import.
2026-10-11 11:24:19 -07:00
Teknium
4e8fe569e4 feat(ci): new config keys and slash commands must ship with docs
DEFAULT_CONFIG changed 183 times in 30 days and nothing checked that a new
key reached the docs; /pause (the global emergency stop) went undocumented
for two months.

scripts/ci/check_docs_drift.py lists every DEFAULT_CONFIG leaf and every
registered slash command and finds the ones the docs never mention. A key is
documented by its dotted path, a placeholder path in inline code
(`auxiliary.<task>.timeout`, `display.pet.*`), or a YAML example nesting it
under its parents; a slash command by a `/name` row in
reference/slash-commands.md.

The 132 keys undocumented today are baselined in docs_drift_baseline.json;
tests/ci/test_docs_drift.py fails only on NEW gaps, so it never blocks an
unrelated PR, and documenting a baselined key never fails. Deterministic,
stdlib + repo imports, ~1s.

/pause is documented here, so the slash-command baseline starts empty.
contributing.md says what to do when the test fails.
2026-10-11 05:09:46 -07:00
Teknium
82a0d2dc88 Merge origin/main (#42: 9 commits to 79b45d1647) into feat/unified-gateway-runtime
No conflicts. Brings in main's fixes for the reds release run 38120936161 inherited:
79b45d1647 (signed reasoning replays after resume on Anthropic/Bedrock Converse),
7831de8999 + d3bdf761b0 (network upgrade E2E follow the new main-channel default),
0aa764fedd (Desktop hand-off test expects no channel-record request on main).
2026-10-11 03:09:45 -07:00
Teknium
decf192176 plugin-catalog: delist tabro; add rule 17 (no unscannable executable payloads)
tabro bundles a prebuilt Windows .exe (relay-native-host-0.4.2.exe) in its
plugin tree. The install scanner cannot read machine code, and the SHA-256 the
plugin checks it against is committed in the same commit, so it only proves the
file was not changed after that commit, not where it came from. A reviewer
cannot tell it matches the in-repo C++ source. That is a precedent worth
closing before someone ships a binary that is not benign.

- Delists tabro (deletes plugin-catalog/tabro.yaml). Existing installs keep
  working; not added to removed.yaml — there is no evidence of malice, only no
  way to verify the binary. An attested build (rule 17) is the way back.
- Adds admission rule 17: no compiled binaries, committed Python bytecode, or
  archives hiding either, detected by file header not extension. A native
  component is allowed only with a GitHub build-provenance attestation tying it
  to the plugin repo's own workflow at the pinned commit; a setup-time download
  is allowed only from the tool's official source, pinned by checksum and
  disclosed. Mirrored into the docs submission guide (the mirror test enforces
  identical text).

A full-content scan of all 543 pinned entries found tabro is the only one with
a native executable. The enforcing gate ships in a follow-up PR.
2026-10-11 02:53:45 -07:00
Teknium
c152ba5a82 docs(ci): prompt-surface changes need one core approval, not two
The prompt-surface-review ruleset was meant to require one other reviewer;
it is now set to one hermes-agent-core approval. CODEOWNERS, the CI comment,
the staleness-test message and the developer docs said two.
2026-10-11 02:26:46 -07:00
Teknium
ae3598c7cd feat(ci): reviewers see every change to the system prompt and tool schemas
A one-line code change can rewrite what every session sends to the model -- a
guidance constant moving tiers, a toolset gaining a tool, a dynamic rewriter
editing a description -- without the diff showing it. The rendered prompt
surface is now committed and reviewed like code.

- scripts/ci/prompt_surface.py renders the system prompt
  (build_system_prompt_parts) and the agent's tools[] through the production
  code for nine surfaces (cli x claude/gpt/gemini/hermes, cli in a code
  workspace, desktop, telegram, discord, cron) into
  tests/fixtures/prompt_surface/. A fresh home in a child process; clock,
  host OS, network, tool availability, env probe and machine paths pinned,
  so a laptop and CI produce the same bytes. Each tool schema is stored once,
  with a per-surface copy only where a surface serves a different schema.
- tests/ci/test_prompt_surface.py fails when the committed snapshot is stale,
  so a surface change must carry the regenerated snapshot in the same PR.
- prompt-surface-diff.yml (advisory, PR-only, stdlib-only, no PR code runs)
  posts per-surface token deltas, prompt hunks and per-tool
  description/param changes into the unified review comment.
- CODEOWNERS requests hermes-agent-core on the snapshot; a new
  prompt-surface-review ruleset requires two of their approvals.
- Docs: prompt-assembly.md (how it works), contributing.md (what to do when
  the test fails).
2026-10-11 01:21:18 -07:00
Teknium
99962ab377 Merge origin/main (#40: 28 commits to 04eb00cef7) into feat/unified-gateway-runtime
Conflict: apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx.
Both sides lifted the usePromptActions harness out of it (this branch into
index-test-utils.tsx, main into prompt-actions-harness.tsx, which main's new
deep-cut sibling imports). Kept the branch's harness import (it also carries
sessionInfo), main's $confirmRequest/settleConfirm import, and every test from
both sides; both harness files stay.

Ported: main's deep-truncate gate (#133716) makes Desktop's rewind producer
send confirm_deep_truncate on prompt.submit. The shared owner's closed
prompt.submit contract has no such key, so after this merge every confirmed
deep edit/regenerate on the owner would have been refused (4001). Desktop now
strips it with the other legacy truncation keys: the owner's cut is the
explicit revision-fenced rewind mutation the user already confirmed. New row in
canonical-producer-contract.test.ts fails without the strip.
2026-10-11 00:01:19 -07:00
kshitijk4poor
10cf193745 feat(tui_gateway): ship the deep-cut gate warn-only for one release
Rollout decision for #133716: an older Desktop or a third-party client
that does not send confirm_deep_truncate would otherwise get 4033 on
every deep edit or restore as soon as only the backend upgrades. The
reporter's Windows Desktop plus WSL serve setup is exactly that pair.
This release logs the unconfirmed deep cut and still runs it. The
upgraded Desktop asks before a deep cut on its own.
DEEP_TRUNCATE_ENFORCED flips it to the 4033 refusal next release. The
refusal tests run with it on, a new test pins the warn-only behaviour,
and the integration doc and contract comment say so.
2026-10-11 12:14:05 +05:30
kshitijk4poor
0e630b920e fix(tui-gateway): refuse a prompt.submit cut that archives >1 user turn without confirm_deep_truncate
Every existing truncation guard validates that the anchor exists and matches.
In #133716 the anchor was valid but named the wrong row (a stale Desktop
binding), and the gateway archived 107 live messages (430 -> 323) with no
friction — nothing bounded how much history one submit may drop.

_truncate_history_for_submit now refuses (4033, data: archived_messages,
archived_user_turns) when the cut archives more than one user turn and the
submit lacks confirm_deep_truncate. One turn is the legit implicit-target
allowance: tail regenerate and edit-last-message drop exactly that turn.
History and DB stay untouched on refusal.

Desktop: restore and edit name their target explicitly, so runRewindSubmit
sends confirm_deep_truncate by default (via truncateSubmitParams); regenerate
sends it only after the Half-A confirm. The TUI sends no truncation params.
Contract field added to PromptSubmitParams and the generated TS/OpenRPC
regenerated with scripts/gen_gateway_contracts.py.

Trade-off: an older Desktop build against this backend gets 4033 on
restore/edit of an older turn until it updates.

Fixes #133716

Reported-by: @Enferlain
2026-10-11 12:14:05 +05:30
Teknium
994759f4c4 Merge origin/main (#39: 29 commits to d4d2ab7b5d) into feat/unified-gateway-runtime
No conflicts. Brings in main's reasoning-replay series, holographic memory leaving core
(run_profile_reconcile now imports it through import_provider_module), and the update
main-channel fix.
2026-10-10 23:38:42 -07:00
Teknium
bec207e9e4 docs(parity): a refused Ink subcommand keeps the rest of the command routed
The parity generator treated any canonical.controls.notAvailable in an Ink
command block as "the whole command refused". After the /voice tts refusal it
would have reported all of /voice as refused, although /voice on|off|status
still reach voice.toggle. ink_cell now recognises a refusal that names a
subcommand ('voice tts') and reports the route plus "`tts` refused". The
table is regenerated; /voice is the only row that changed.

Test: tests/hermes_cli/test_gateway_command_parity_live_session.py::test_a_refused_subcommand_keeps_the_rest_of_the_command_routed
(cherry picked from commit 08098c50613c90f51f9e36353d4a24ae55beb4d6)
2026-10-10 22:49:21 -07:00
Teknium
37434ad0e3 fix(tui): display preferences say they are not saved on the shared gateway
/mouse, /density, /details (global and per-section), /focus, /statusbar and
/battery patched the view, printed success and sent config.set with
.catch(() => {}). The shared gateway's config.set accepts only
busy/verbose/yolo/model (gateway/session_busy_controls.py::busy_config) and
answers invalid_params for the rest, so the preference silently vanished on
the next launch while the notice implied it had been saved.

These are client display preferences, not session state, so they still apply
to the view; on gw.isCanonical the command no longer sends the doomed write and
adds "/<cmd> applies to this view only; not saved on the shared gateway"
(canonical.controls.prefNotSaved, translated in all 16 bundled TUI packs) after
its own notice. A standalone backend persists through config.set as before.
The parity generator marks such Ink cells "(preference not saved)" instead of
listing config.set as the route; the table is regenerated.

Test (red on r11-base): ui-tui/src/__tests__/canonicalDisplayPrefs.test.ts

Review: andrexibiza 28
Review: andrexibiza 5479692359-P3.c
Review: kshitijk4poor P3-tui-config-set-keys
(cherry picked from commit 1671c2c8f1be9593bd0f216b8fb16ae8633742bf)
2026-10-10 22:49:20 -07:00