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.
`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.
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.
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.
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.
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)
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).
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.
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.
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']).
`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.
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)
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)
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)
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).
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.
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.
unsupportedpastels pushed 2171365a3f (canonical picker keeps native legacy history)
while the banner merge was being verified; it merges without conflicts.
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.
#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.
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.
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.
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.
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.
`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.
- 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.
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.
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.
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.
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).
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.
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.
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).
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.
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.
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
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.
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)
/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)