The catalog check no longer blocks a core PR. It reports every break as a
warning, in three places: a check annotation per plugin, the job summary, and a
warning item in the live CI review comment. The report says:
- each core name the change removes, whether it is private (needs a public
interface) or already on plugin_api.json (judged against the base's copy), and
which plugins import it;
- for each affected plugin: its title, version, tier, category and maintainer;
its repository, subdir and pin; links to its plugin-catalog/<name>.yaml and its
marketplace page; and a link to each import line at the pin.
The breaks-catalog-plugin label is gone: with nothing to block, there is nothing
to override. The step runs after setup-pm because the catalog loader needs
ruamel.yaml.
Review fixes in the same pass: a try nested in a branch that still runs can lose
its own feature and is reported (greptile, BearHuddleston); a lost branch only
names imports that resolved on the base; a bare annotation binds nothing; the
daily refresh parses with Python 3.14, the shipped runtime (BearHuddleston).
Co-authored-by: Bear Huddleston <196404565+BearHuddleston@users.noreply.github.com>
A PEP 562 hook was treated as answering any name, so removing a name from
hermes_cli/config.py or hermes_state.py (the modules catalog plugins import
most) was never reported. A hook now answers the strings in import-time code,
in the hook, and in the module functions it calls by name.
Adds one test per guard the reviewers showed could be removed with every test
still green, and points the documented local command at the merge base so a
branch is not blamed for names main added after it was cut.
Co-authored-by: Bear Huddleston <196404565+BearHuddleston@users.noreply.github.com>
Co-authored-by: unsupportedpastels <274530371+unsupportedpastels@users.noreply.github.com>
Catalog plugins live in their own repos, pinned by sha, and many import Hermes modules that are not
on the published plugin API. When a core PR removes or renames such a module or name, nothing in
this repository's CI sees it: the plugin's code is not here. This week the storage rewrite broke
three that way (OpenViking via agent.message_content, Honcho via hermes_state_common, holographic
via hermes_state_wal: #157818), each found only after users upgraded.
- scripts/ci/catalog_core_imports/ (31 shards, ~780 KiB) records every Hermes import each of the
2,514 catalog entries makes at its pinned sha, parsed by
plugin_validate_private_imports.hermes_import_sites (the same parser `hermes plugins validate`
uses). An import inside a try that catches ImportError carries its alternatives, so a plugin
that already falls back is not reported.
- `catalog_core_imports.py check` (Repository guards, PR python lane) resolves each import against
the base and the merge commit from git objects alone: no network, no plugin code, nothing
imported. It only resolves imports whose module files the PR touches (every import when
compat/moves.py changes): 0.3 s on a typical PR, 2-3 s on the storage-rewrite commits.
- On failure it names plugin, file:line and import, and offers: open a PR for an official seam
(ctx method, hook, plugin_api.json entry), keep the old name via compat/moves.py, or the
breaks-catalog-plugin label.
- catalog-core-imports.yml re-indexes added or repinned entries daily and opens a bot PR.
The check asks only whether a name still exists; a name that stays but changes behaviour or
signature passes.
Plugins declare their settings in config_schema and requires_env, and the Desktop
renders them as a form, but the CLI had no way to see or change them short of
hand-typing plugins.entries.<id>.settings.<key>. `hermes plugins config <name>`
lists every declared setting with its current value and edits one at a time
(choices and bool as pickers, numbers and JSON type-checked, secrets masked),
saving through the same writers as the Desktop form: save_plugin_settings for
config.yaml and the PUT /api/env credential route for .env. Without a TTY it
prints the settings instead. plugins show and install point at it.
plugins_settings.py becomes a package (fields.py unchanged, facade re-exports).
#151855 folded hermes_state_wal into sqlite_support and removed the module. The
catalog-pinned holographic memory plugin (0.29.2, plugin-catalog/holographic.yaml)
does `from hermes_state_wal import apply_wal_with_fallback` when it opens
memory_store.db, so on v0.23 every turn logs "holographic: cannot open
memory_store.db (No module named 'hermes_state_wal')" and recall is dead. A
catalog repin does not change an installed plugin's source, and
`hermes plugins update` reinstalls the same pin.
- hermes_agent/compat/moves.py: hermes_state_wal -> sqlite_support. Every name
the old module published is in sqlite_support, unchanged, and
apply_wal_with_fallback is already a published plugin API there.
- plugin_validate_private_imports: a moved module is judged public under its
current spelling as well, so the alias does not make `plugins validate` list
the old import as private while the same call through sqlite_support passes.
- Plugin guide: the kept-imports table names it, with the same v0.27.0 window.
Fixes#157818. Part of #157077.
Review follow-up. The compat layer now keeps exactly the old imports the
catalog's OpenViking 2.1.2 and Honcho 1.2.0 pins make at load time, and
says so:
- agent.context_compressor_retry is no longer aliased (no catalog plugin
imports it), and agent.skill_commands re-exports only
extract_user_instruction_from_skill_message (neither pin imports
register_auto_load_scaffold).
- moves.py admits a folded module only when a catalog-pinned plugin
imports it.
- plugins/AGENTS.md and the plugin guide record the exception: which
names, where they live now, and that they follow the hermes_state
stand-in's window (removed no earlier than v0.27.0).
Main's SessionDB.resolve_session_id returns the exact id, else the one id a prefix matches, else None.
The plugin guide's own chat-frontend example (website/docs/user-guide/features/plugins.md, _session_to_resume) calls SessionDB(read_only=True).resolve_session_id(...), and the stand-in had no such method: the example raised AttributeError.
The stand-in's SessionDB forwards resolve_session_id to the store's sessions.resolve_id, which answers the same way, and the guide's table lists it.
Proof: the new case (a unique prefix, an exact id and an ambiguous prefix through a read-only SessionDB opened as the example opens it) red before (AttributeError: hermes_state.SessionDB has no attribute 'resolve_session_id'), green after. The guide's _session_to_resume, extracted from the page and run unchanged against a seeded store, resolves a short id and a title and refuses an ambiguous prefix (helper-b probe_f29_docs_example.py, logs/f29-docs-probe.log). tests/hermes_cli/test_plugin_docs_public_imports.py 6 passed. Import-only check passes; ruff clean.
Reported-by: teknium1
Main's hermes_state imports WriterMutexTimeout, maintain_after_commit, write_site and writer_mutex_until from hermes_state_write and note_read_pool_exhausted from hermes_state_readpool, so all five are importable from hermes_state; F39 at the swap level restores them there.
The removal replaced hermes_state.py with a stand-in that forwards only its listed names, so the five raised AttributeError again from this level up.
The stand-in now lists the five and forwards each to its home at this level (persistence/sqlite/_state/write.py and persistence/sqlite/_state/readpool.py), with a warning that names no public replacement. The plugin API list, its generated page and the plugin guide's table carry them, since the stand-in's names and the published list are pinned equal. A new case imports each from hermes_state and checks it is its home's object.
Proof: tests/test_hermes_state_standin.py new case red before (AttributeError: module 'hermes_state' has no attribute 'WriterMutexTimeout'), green after; the plugin API list, docs-imports, published-API and backend-import-guard tests pass (12, 6, 173, 30). The one stand-in case still red is the callers-level append_batch keyword (see F20). Import-only check passes; scripts/ci/check_backend_imports.py clean; ruff clean.
Reported-by: unsupportedpastels
The plugin guide's table of where each hook fires named hermes_state_common.py for on_session_delete. That module is gone at this level; emit_session_deleted now lives in session_retention.py, and the row names it there.
The official mcp-serve plugin gets its transcript handle from hermes_state_registry.acquire() and builds its routing index from SessionDB.list_gateway_sessions; with neither carried, its message reads answer "Session database unavailable", its event polling stops and the index comes back empty. hermes_state_registry.py returns as a stand-in: acquire(db_path=None) opens a hermes_state SessionDB of its own for the caller, release(db) closes it and returns True as main's did for a lent handle, and release_or_close(db) closes it. The first acquire in a process emits the stand-in's one deprecation warning in its own words, naming persistence_assembly.open_persistence and the removal release, at the plugin's call; a process that has already had the hermes_state warning gets no second one.
The stand-in's SessionDB carries list_gateway_sessions(*, platform=None, active_only=True), main's keyword-only signature, held open for the call like its other methods, and returns each session row with its last_active as main did. Both are listed in the plugin guide's replacement table and in hermes_cli/data/plugin_api.json, public-api.md is regenerated, and the test that fires at the removal release names hermes_state_registry.py among the files to remove.
The hermes_state stand-in now also forwards the nine public helpers main exported that live on in shared modules outside the backend: format_session_db_unavailable and get_last_init_error (storage_user_copy), resolved_max_resume_messages and resolved_max_export_messages (storage_limits), preflight_db_writability and read_only_db_uri (sqlite_support), holder_pid_checkable (process_identity), make_user_dir (hermes_dir_acl), and divert_session_transcript_jsonl, which supplies the profile's sessions folder under HERMES_HOME as main's did. Each one warns through the stand-in's once-per-process deprecation warning, naming its replacement.
hermes_cli/data/plugin_api.json lists hermes_state name by name instead of as a whole module, and lists the nine replacements, so hermes plugins validate reports an import of any name the stand-in does not carry (the old class's mixins and the SQLite backend's own helpers) instead of passing a plugin that fails on import. The plugin guide's replacement table names the nine and their replacements, and public-api.md is regenerated from the data file.
An agent given hermes_state.SessionDB as session_db writes through the handle that SessionDB holds when the agent is built. The stand_in_interface docstring and the plugin guide's SessionDB() row now say the caller keeps that SessionDB open for the agent's life: its close() releases the handle, and its reopen after close() gives the agent no new one.
hermes_state.py becomes the stand-in plugins import, the rest of the legacy store and its test folder go, and the per-process modules the backend imported from main move under persistence/sqlite/_state/. The backend checks PID namespaces and lease holders through process_identity and its WAL setup through sqlite_support, and its error module takes the shared predicates and classification from storage_errors, so neither helper set has a second copy. The backend, sqlite_support.py and the tests that pin those modules reach their final imports, and the backend-import guard allows no file outside persistence/. The modules no caller imports any more go with it: the agent's onboarding rules (now in session_rules) and gateway/session_admission.py.
The stand-in's SessionDB releases its store on close() and, used again afterwards, opens it again with a warning, as the old class reopened its connection, unless the file at its path was replaced or the store is latched corrupt; a read-only one raises. A close during a call releases the store when the call returns. A named source wins over a source list in its session listing and count.
An agent given a writable stand-in SessionDB as session_db= and no persistence= takes the store handle that SessionDB forwards to as its persistence, so its turn flush, token counts, compression and session row writes go through the storage interface, as an agent given the old SessionDB wrote through it.
The backend-import guard also holds the backend's remaining reads of the process or task home, each with its reason, and refuses any other and any import of the stand-in inside persistence/sqlite/.
Plugin context engines get the agent's store as persistence= beside the deprecated session_db=, in each hook whose signature accepts that keyword, including the rebind after /new, /resume and /branch, and the context engine guide and the plugin guide's replacement table name it. A test fails once the running release reaches the stand-in's removal release, listing what goes with the stand-in.
release_unheld_media and collect_unheld_api_images take a store only: their SessionDB branches, which no caller reaches, go with the gateway's own copies of the admission and transcript queries.
Documentation, the desktop app, skills and native code follow the interface. The published plugin API lists the storage interface names the plugin guide's replacement table gives, so the guide's examples and the bundled plugins that import them stay on the published list.
Eight bundled plugins already build their User-Agent header with
hermes_user_agent: six model providers, the Slack adapter and the
Perplexity web provider. Each was a baselined private import. The name is
now on the published plugin list, with a section in the plugin guide, and
those eight baseline rows go.
The xAI plugins need the same name before tools/xai_http.py can be split:
its hermes_xai_user_agent returns the string
hermes_user_agent("Hermes-Agent") returns.
Plugins that call a rate-limited HTTP API need to read the Retry-After
header. Discord, Signal and Slack already import Hermes's parser as
baselined private crossings, and the Microsoft Graph client needs it to
move into the teams_pipeline plugin.
- plugin_api.json lists the one name; public-api.md is regenerated.
- plugins/index.md gains a short section with the contract and an example.
- boundary_lint baseline drops the three crossings that are now public
(Discord, Signal, Slack). No other line changes; a full --update would
also drop two unrelated stale rows, so it was not used.
- Test: a plugin importing the parser validates with no private-import
warning, while another name from agent.retry_utils still warns. Red on
main.
* fix(plugins): pin liveness endpoint URL to loopback, harden manifest liveness parsing
A manifest's liveness.endpoint_path was concatenated verbatim onto the
loopback URL read from the app's runtime server.json and re-parsed by the
probe, so a crafted tail like '@attacker.example/' rewrote the URL authority
and the initialize request carried the runtime file's bearer token to a
manifest-chosen host.
Now the declaration parser only admits a plain path charset (no '@', '?',
'#', whitespace, scheme, or '..' segments), the resolver re-parses the fully
composed URL and requires it to stay on a loopback host with the same port
and no userinfo, and _mcp_initialize re-verifies scheme/host/port before the
socket opens so the transport-facing endpoint() path is covered too.
Adjacent hardening in the same surface: liveness.path must be a rooted
filesystem path in both parse surfaces, server.json key overrides must be
simple key names, malformed pids (bool, >int32) degrade instead of crashing
os.kill, a non-mapping 'fields' value raises ValueError inside the fail-closed
contract instead of TypeError, and a manifest whose liveness fails validation
renders 'unknown' on the catalog card instead of 'present'.
* test(plugins): satisfy ruff PLR0402 in salvaged liveness test
Follow-up to the salvaged #125745 commit after rebasing onto main.
Refs #125744
* test(plugins): build hostile-endpoint fixture with a valid AppLocation tuple
AppDef.locations is tuple[AppLocation, ...]; the fixture passed a bare
string, which only worked because endpoint() never reads locations.
Refs #125744
---------
Co-authored-by: beardthelion <beardthelion@users.noreply.github.com>
The self-updater gate rejects any plugin script that both fetches from
GitHub and writes or renames files. rom-studio (#153798) trips it on
kit/kit.ts, which downloads the third-party poryscript 3.6.1 compiler
from its own release, checks a fixed sha256 and unpacks it into
kit/.cache. It never fetches or replaces rom-studio's own files, so the
pin stays the only update path (README rule 3).
Teknium ruled to allow it. A maintainer now lists such a file in
scripts/ci/catalog_self_updater_allowlist.json by repo, pinned sha, path
and the file's sha256: a re-pin, an edit to that file or a second
fetching file is gated again. The list lives under scripts/ci/, which an
entry PR may not touch (catalog_changed_entries.py), so a submitter
cannot add themselves. Rule 3 in both rule blocks names the exception.
Catalog listings were being used to promote individual tokens (a listed
plugin's maker posting its contract address on X), and memecoin boards,
coin launchpads and airdrop farmers passed review on clean code alone
because no rule covered what a plugin is for. Rule 20 declines plugins
built around one non-mainstream coin, token or NFT collection and plugins
used to promote their maker's own token, while keeping stablecoins,
payments, multi-coin wallets and markets, tickers, safety checks and
Bitcoin/Ethereum/Solana-level assets welcome. Mirrored into the
catalog-submission guide (rules mirror test).
Idle-task workers were detached threads that always wrote the task's
state when the plugin's function returned, so a run still going when the
gateway stopped (or the multiplexer restarted in the same process) wrote
profile state after housekeeping had stopped.
Gateway housekeeping now polls idle tasks under a stop fence tied to its
stop event. Once housekeeping stops, no run starts under it; when the loop
exits it waits a bounded time (inside the housekeeping drain budget) for
its runs and returns. A run that ends after the stop records nothing: the
task's state stays as it was before the run, so the task runs again on a
later poll, and the run still releases its claim. Closing the fence waits
for a record in progress, so none lands after the stop. Plugin code cannot
be stopped; the idle-task contract now says so and states the guarantee.
Hosts without a stop (CLI/TUI startup, the serve maintenance tick) are
unchanged.
Both APIs may still change shape, so the plugin guide now says so and tells a
plugin how to stay portable: keep the fork handle in one small function that
returns plain data, and treat fork_session as optional. It returns None when
the request is refused, and under plugins.isolation: host it raises
PluginHostUnsupported, since the handle tracks a thread of the live session
agent inside the Hermes process.
The guide also states the idle-task contract: fn runs on its own thread and
the host does not wait for it, so a run should keep its own time limit, work
in small checkpointed batches and be safe to repeat.
Plugin idle tasks ran synchronously on the thread that polled them. On the
gateway that is the housekeeping thread: it also stamps the runtime
heartbeat and runs the cron delivery drain, the misfire catch-up, the plugin
update check and state.db maintenance. An idle task that made model calls for
minutes stalled all of them, and after two minutes gateway status reported
the live gateway as wedged.
Each due task now starts on its own thread, carrying the poller's profile
home and secret scope, and the poll returns at once. The run claim still
keeps one run at a time across pollers and processes, and a run of this
process is never doubled even when it outlasts the claim's stale age. The
worker records the run and releases the claim when the task returns or
raises. The curator's own pass is unchanged.
A plugin with session-less background work (re-scoring its own data,
suggesting a cleanup) had to run its own timer. register_idle_task(name, fn,
*, interval_hours, min_idle_hours=2, first_run="defer") puts it on the skill
curator's scheduler instead:
- polled from every site that drives the curator (gateway housekeeping per
served profile, CLI/TUI startup maintenance, the hermes serve maintenance
tick) through one run_idle_jobs(): the curator, then the active profile's
plugin tasks;
- the curator's gates via agent/idle_schedule: the min-idle check, the
interval (floored to 1 h) whose first observation seeds last_run_at and
defers one interval (first_run="immediate" opts out), and the O_EXCL claim
file so a task never overlaps itself across threads or processes;
- state per (profile, plugin, task) in <plugin data dir>/idle-tasks/<name>.json
(last_run_at, run_count, paused, last_summary, last_status, last_error);
a manager polled outside its own home runs nothing;
- exceptions are logged and recorded, never raised into housekeeping;
- the registration is a PluginRegistration, so unload stops the polling;
- `hermes plugins idle-tasks [plugin] [--pause TASK | --resume TASK]`.
fn receives plain data (name, idle_for_seconds, last_run_at, run_count) and
reaches its ctx through its closure, so the payload also crosses the isolated
plugin host. No capability: the scheduler only calls the plugin's own
function; model calls inside it go through ctx.llm's existing gate.
plugins.py and gateway/run.py are over the file-size cap, so the mixin lives
in hermes_cli/plugins_idle_tasks.py and neither file grows.
Hermes' own background review (fork the live agent after a turn, run a
bounded multi-step prompt with a narrow tool list, cancel on the next live
turn) is now open to plugins as ctx.fork_session(token, prompt, *, tools=(),
max_iterations=8, input_budget=None, task=None, timeout=None), gated by the
new consent-only capability llm.session_fork.
Reused, not copied:
- Lease: post_llm_call's side_question_token backs a side question OR a fork
(side_question_lease.take_lease; same TTL, turn_moved_on, profile fence,
no token for unattended turns, one redemption per turn). The payload field
keeps its name for compatibility.
- Fork: build_cache_parity_fork(write_origin="plugin_fork:<id>") on a
context-bound thread in the captured turn context; same-model forks replay
the captured system prompt and tools[] byte-for-byte; routed forks get the
history digest. Persistence stays fully detached.
- Guardrails: the thread tool whitelist is the requested names (each must
already be in the session's tools[]); approvals auto-deny; the review's
input budget (a plugin can only lower it) and iteration cap (<= 16);
_BackgroundReviewRun admission so cancel_background_review_for_live_turn
interrupts plugin forks with the review under one bounded wait;
review_idle_queue deferral on the managed local runtime (enqueue takes a
dispatch callable; a newer fork of the same plugin supersedes the queued
one).
- Routing: task must be one of the plugin's register_auxiliary_task lanes,
resolved like auxiliary.background_review.
- Usage and hooks: release_cache_parity_fork bills the parent session as
plugin_fork:<id>; each fork loop request reports pre/post_auxiliary_call
(aux_task="plugin_fork", plugin_id) instead of pre/post_api_request.
Tool handlers inside the fork receive turn_origin="plugin_fork:<id>"
(live calls get no new kwarg), so a plugin can refuse calls from the live
agent. The handle exposes done/cancelled/outcome/result/actions/wait/cancel,
never the fork agent. Fails closed (None) without the capability, on a bad,
expired, spent or foreign token, a tool the session does not advertise, or
a task the plugin does not own.
post_llm_call gains a read-only review_signals mapping: the skill and memory
nudge counters, both intervals, whether each review trigger fired this turn
and whether a due trigger actually forks the background review (enabled in
config, not cron, not a subagent).
A plugin doing its own after-turn work (Collective Wisdom's share
suggestion) can then follow the cadence the user already tuned instead of
counting tool calls itself.
The hook fires before the review decision, so the finalizer now evaluates
the skill trigger once (agent/review_signals.py::skill_review_due) and hands
the same boolean to the hook and to the spawn; the memory trigger was
already decided at turn start. The mapping is a dict subclass that refuses
mutation (one instance reaches every callback) and stays a plain dict on the
plugin-host wire and through copy/pickle. Computed only when post_llm_call
has a subscriber.
A module entry in plugin_api.json also publishes the module's imports (logging, os, sys,
Path). The list now names the three functions, and the docs example imports them by name.
The Ink launcher made, restored and finished the `-w` worktree with private code, so a plugin
that starts its own chat client could not offer `-w`, and a tree it made with `git worktree add`
can be removed by the stale-tree sweep. That code moves into `hermes_cli/session_worktree.py` as
`create()`, `restore(session_id)` and `finish(info, session_id, ask=...)`; the Ink launcher and
`hermes_cli/main_resume_args.py` now call them, with the same questions and messages. The module
is listed in `hermes_cli/data/plugin_api.json` and the generated public API page.
The example read os.environ["HERMES_HOME"], which a Hermes started as a console script
on the default profile does not set. It now calls get_hermes_home(). The section says the
launcher command needs plugins.isolation: in_process. plugin_api.json lists hermes_command
and print_exit_summary by name, so the module's imports are not published with them.
A plugin that starts its own chat client had to copy three private pieces of the Ink launcher by
hand. The new module hermes_cli/chat_launch.py holds two of them: hermes_command() returns the argv
that runs this install, and print_exit_summary() prints the resume lines with the caller's command
name. The Ink launcher now calls print_exit_summary with "hermes --tui", so its output is unchanged.
hermes_cli.chat_launch and hermes_cli.gateway_chat:shell_client_env join the public plugin API list.
is_safe_callback_url compared the host text against private prefixes, so
integer/hex IPv4 literals (http://2852039166/) and DNS names resolving to
metadata or RFC1918 passed; urlopen then followed redirects the check never
saw and re-resolved the name for the socket.
Non-loopback callbacks now go through tools.url_safety: is_safe_url for the
pre-flight (resolves and checks every answer) and create_ssrf_safe_client for
the POST (connect-time re-validation, dials the vetted IP). Redirects are not
followed. Loopback stays allowed only in localhost-only mode, proxy-free.
create_ssrf_safe_client joins the published plugin API next to its async twin.
Fixes#126755
Plugins that store or upload text (session sharing, edit capture) need Hermes's
own scrubber at its strongest setting, and today the only way is a private
import of agent.redact, which the catalog flags. Add a thin PluginContext
method: non-reusable sentinels for prefixed keys, masked credential
assignments, plugin-registered patterns included, security.redact_secrets
honoured unless force=True.
The redirect-safe opener (drops credential headers when a redirect leaves
the origin) is what plugins sending API keys should use, and the bundled
model providers already do; validate still warned on it as a private
import. List it in plugin_api.json with a short docs section, regenerate
public-api.md, and drop the three now-public crossings from the
boundary-lint baseline.
get_read_block_error is the path check plugins are told to call, but only
read_file consulted the device/proc table, so a plugin following the docs
could still read /proc/<pid>/environ (process secrets) or hang on /dev/zero.
The path-only table and is_blocked_device_path move into agent/file_safety;
get_read_block_error checks the literal and resolved path; read_file keeps
its symlink-hop walk and imports the table from there.
A catalog entry whose repository was deleted, or whose pinned commit was
force-pushed away, can't be installed any more: `hermes plugins install` clones
the repo and checks out the pin, and both fail. Nothing noticed until a user
hit it.
scripts/ci/catalog_dead_repos.py looks up every entry (GitHub in GraphQL batches
of 50, with REST confirming each miss so a renamed or transferred repo is never
taken for deleted; other hosts via git ls-remote). Any unclear answer, or more
than 25 dead at once, aborts with nothing delisted, because that shape is an
outage, not a week of deletions. The weekly workflow deletes the dead entry
files on bot/catalog-dead-repos and opens one PR for review; nothing
auto-merges. It delists (deletes the file) and never touches removed.yaml,
which is the security blocklist.
First run, on today's catalog: 8 of 2,087 entries are dead (7 deleted repos,
1 force-pushed pin). Their files are deleted in a separate commit.
Catalog reviews ask plugin authors to refuse credential paths with
agent.file_safety.get_read_block_error / raise_if_read_blocked and to read
YAML with hermes_yaml (core ships no PyYAML). `hermes plugins validate`
then warned on exactly those imports as "private core imports", so an
author who followed the review got a warning for doing so.
- plugin_api.json lists the four file_safety checks and
hermes_yaml.safe_load/safe_dump; public-api.md regenerated.
- plugins/index.md gains a short section with the table and an example.
- boundary_lint baseline drops the 7 bundled-plugin crossings that are now
public (no other line changes).
- Test: the guide's example validates clean, while a whole-module
`import agent.file_safety` still warns. Red on main.
A plugin whose main purpose is streaming or downloading copyrighted
material from unlicensed sources could pass review on clean code alone;
no rule covered what a plugin is for. Rule 19 declines those while
keeping general-purpose browsers, downloaders and players welcome.
Mirrored into the catalog-submission guide (rules mirror test).
A picker card (/model, /reasoning, /fast, the usage-limit switch offer)
and the /update Yes/No prompt only checked the chat allowlist on a tap,
and a pending /update prompt took the next message ANY admitted member
sent in the session as its answer. In a shared group with
group_allow_admin_from set, a member refused /reasoning or /model could
tap the admin's open card and apply it, and anyone's chat text answered
the admin's "Restore local changes now?".
The gateway now records the opener (sender id, name, chat scope) when it
sends the card (prompt_authority on the selection callback) and in the
/update pending marker. Every renderer refuses another member's tap with
the existing localized "Only <name> can answer this approval." note and
leaves the card open: Telegram mp:/cp:/update_prompt:, Discord
ModelPickerView/ChoicePickerView/UpdatePromptView (one _gate), Slack
model picker (ephemeral), Matrix picker reactions, Feishu choice picker
and update card (toast). A non-opener's typed text during a pending
/update prompt falls through as an ordinary message. The check is
gateway.approval_actor.may_answer, the same rule exec approvals use:
the opener and the chat scope's admins always pass; a sender-less card
(shared observed route) keeps the old anyone-admitted behaviour.
QQBot's update button already accepts only the session's own user.
picker_refusal / update_prompt_refusal join approval_refusal in the
published plugin API so platform plugins can apply the same check.
Keep raw endpoint matching and config inputs inside core; return detached presentation rows. Share profile-scoped resolution with the display accessor and persisted-pick fallback. Custom endpoint live probes are disabled to avoid config writes.
browser-vault-plugin.md tells plugin authors to subclass LoginBackend, return VaultItemMeta and
subclass BrowserPageBackend, and ctx.register_login_backend / register_browser_page_backend accept
only instances of those classes, yet hermes plugins validate warned on all three imports. List them
name-only in plugin_api.json, regenerate public-api.md and drop their docs import seam entries.
LocalEnvironment stays a seam: it is the host implementation class, not a stable base.
#152125 bound shared-chat exec approvals to the requester (or
approvals.approvers / the platform admins), but the other prompts a chat
member can answer for someone else stayed open: another member could press
"Always" on a relay or native /reload-mcp confirmation and run its handler,
or answer the agent's clarify question (a choice button, "Other", or a typed
reply) for the person who asked.
Both prompts now record the same authority an exec approval records when
raised (tools.approval_context.prompt_authority: the turn's actor, else the
command's sender, plus approvals.approvers and the chat type), and every
chat answer path checks it through gateway.approval_actor.may_answer:
- relay prompt_response (gateway/relay/prompt_resolvers.prompt_refusal),
with the bot-owning profile's admins as for exec approvals;
- Telegram, Discord, Slack, WhatsApp Cloud and Feishu button callbacks
(slash_confirm_refusal / clarify_refusal, published on the plugin API
beside approval_refusal);
- the runner's typed-reply intercepts (/always, "2", free text after
"Other"); another member's text is routed as their own message.
A refused tap gets the existing "Only <name> can answer this approval."
and the prompt stays pending. A turn merged from two senders records no
requester, so only approvers and admins can answer, as for approvals.
The default approvers ["*"] keeps today's behaviour.
Supersedes the slash_confirm/clarify half of #72008, whose session-owner
mechanism no longer applies on main (main records the requester itself).
Co-authored-by: necoweb3 <65560494+necoweb3@users.noreply.github.com>
Greptile P2 (thread 4518419778): `_inject_session_context_env` read the session
ContextVars directly, skipping the mixed-turn check in `get_session_env`, so a
terminal / execute_code child started after another member folded into the turn
still got the opener in HERMES_SESSION_ACTOR_ID/_NAME. Both readers now go
through one `_bound_session_value`, so the child env carries an empty actor,
like the approval binding; `_UNSET` stripping is unchanged.