docs-lint-diagrams called the website's lint:diagrams script, which needs
ascii-guard on PATH; only CI installed it, so `just docs-check` stopped
there locally. The recipe now runs the pinned ascii-guard through
scripts.ci.python_packages, the same pm environment CI uses, with the
same arguments: 442 files checked locally, and a malformed box fails it
as it fails the npm script.
check_generated_skill_docs.sh moves to website/scripts/, beside the
generator it checks, so a change to it starts the docs job.
`just termux-payload <payload> <package>...` calls the new
scripts/termux/stage_payload.sh, which runs termux_pkg_build.sh for each
package in order, then stage_runtime_libs.py: the same four commands the
"Stage the pinned bionic runtimes" step ran (build_cpython.sh and
build_uv.sh are one-line wrappers over termux_pkg_build.sh with the
package name as the subdir). The archive_inputs step before it stays a
separate step: it needs R2 credentials and is not a developer command.
The native linker contracts step runs `just test -j 2 <files>`, which is
scripts/run_tests.sh --require-paths with the same arguments.
desktop-bundled-release.yml stages the same payload in separate steps and
is unchanged.
New recipes, each one line over the script CI already ran:
- `just docs-generate`: extract-skills.py, then generate-skill-docs.py.
- `just docs-check-generated`: the "committed skill docs match the
generator" block, moved verbatim into scripts/ci/check_generated_skill_docs.sh
(same `git add -N`, same diff paths, same ::error:: line and exit 1).
- `just docs-check-links`, `just docs-lint-diagrams`.
- `just docs-check`: generate, then the three checks, in CI's order.
docs-site-checks.yml calls docs-install, docs-generate, the three checks
and docs-build. deploy-site.yml calls docs-generate and docs-install; its
generate-skill-docs.py step moves up beside extract-skills.py because it
reads neither the plugin stars nor the plugin catalog the steps between
them write. Its full bilingual `npm run build`, staging and Pages deploy
steps stay inline. Python recipes run through scripts/hermes-python, which
uses the interpreter setup-pm exports as HERMES_PYTHON, as python3 did.
_check_attested removes each verified file from the clone so the payload scan
ignores it, and it ran before _check_self_updater. A plugin could list a JS
updater under attested_binaries: once its provenance checked out the file was
gone, the self-updater grep never saw it, and users still got it from the
pin. Provenance shows where a file came from, not what it does, so the
self-updater gate now runs before anything is removed.
README rule 17 lets a catalog entry ship a native binary listed under
attested_binaries, if `gh attestation verify` proves the plugin repo built it
at the pinned commit. The old inline step fed its parser as
`python3 -I - "$entry" <<PYEOF </dev/null`; the later </dev/null replaced the
heredoc, so the parser ran an empty program, the list always came back empty
and `gh attestation verify` never ran. #151877 moved the step into
scripts/ci/ and kept that dead branch out, so behaviour stayed the same.
The field reader now returns the attested paths beside the clone source and
rejects any that is not a plain relative path. The gate verifies each one
against the entry's repo at the pinned sha, then removes it so the payload
scan ignores it, and any other binary still fails. No catalog entry declares
attested_binaries today, so nothing admitted now changes.
The catalog field reader printed shell assignments and the gate parsed them
back with shlex, a shell layer between two Python programs. It now prints
one JSON object, and the gate rejects the entry unless it gets exactly
REPO, SHA, SUBDIR and BAD as strings.
verify_uv_lock.py let TimeoutExpired escape after 600 s, so the job lost the
attempt's log and published no review status. A timed-out attempt now prints
its partial log, reports "uv.lock check timed out" and stops: retrying three
more 600 s attempts would outlive the job.
Workflows now run their commands as just recipes, so the justfile and the
wrapper its Python recipes use are CI configuration living outside
.github/. The change classifier only failed open on .github/, so a PR
that broke a recipe skipped the jobs that run it and failed after merge.
Both files now count as CI configuration.
Outside CI, HERMES_PYTHON is often inherited from a wrapped hermes (the TUI
sets it for its children) and names a release venv without the dev tools.
scripts/hermes-python ran that interpreter for any unactivated shell, so
just check, just fix and the lefthook ruff hook could run on it instead of
the checkout's environment. The shortcut now also needs
GITHUB_ACTIONS=true, the only caller the header names.
Co-authored-by: Bear Huddleston <196404565+BearHuddleston@users.noreply.github.com>
repo-guards.yml carried twelve inline run blocks of 17 to 79 lines: bash
programs with embedded JSON, heredoc Python and a retry loop. Each moves
into a stdlib Python script that CI and a developer can run alike; the
workflow keeps every step name, id and if: unchanged, and the longest
run block is now one line.
- check_infographic_images.py: Reject committed PR-infographic images
- check_common_ancestor.py: Reject PRs with no common ancestor on main
- check_contributor_emails.py: Check for unmapped contributor emails
- pr_diff_report.py prompt-surface|lockfile: the two advisory diff
summaries (merge base, $GITHUB_OUTPUT changed=, step summary)
- scan_supply_chain.py patterns|dependency-bounds: the supply-chain
scan and the unbounded PyPI dependency check
- verify_uv_lock.py: Verify uv.lock is up-to-date (5/15/45s retry on
registry failures only)
- review_status.py emit <check> | merge <artifact> ENV...: the four
near-identical "Emit review_status (...)" blocks and the supply-chain
merge, as one table of findings
${{ }} values the old blocks interpolated into bash (base_ref, PR base
and head SHAs, the lockfile-diff flag) now reach the scripts through
step env only.
An equivalence harness ran every old block and its replacement on the
same fixture repos (Linux, bash -e, GNU grep): 39 cases, identical exit
code, stdout, stderr, $GITHUB_OUTPUT, step summary and review-status
files. The one deliberate text change: the supply-chain how_to_fix now
points at scripts/ci/scan_supply_chain.py, where the pattern lives.
tests/ci/test_repo_guard_checks.py covers each guard as its step runs it.
The two long run: blocks of plugin-catalog-ci.yml move into scripts/ci/,
so the admission gate can be read, tested and run outside a workflow:
- "Find changed catalog entries" (41 lines) ->
scripts/ci/catalog_changed_entries.py: the merge-commit check, the
AMRT entry list without removed.yaml, the data-only rule for entry PRs,
and the files<<__EOF__ block in $GITHUB_OUTPUT.
- "Clone each entry at its pinned sha and validate" (235 lines) ->
scripts/ci/catalog_validate_pinned_entries.py, with the entry-field
parser that the step fed to `python3 -I -` on a heredoc now in
scripts/ci/catalog_entry_fields.py (still run with -I, still evaled
as shlex-quoted assignments, still reset to "parser failed" when it
dies).
Both steps run `python3 -I "$GITHUB_WORKSPACE/scripts/ci/<script>"`;
env, error lines, PASS/FAIL lines and exit codes are unchanged. The
attested_binaries block is not carried over: its parser ran with
`<<'PYEOF' </dev/null`, so the later redirect gave python an empty
program, ATTESTED was always empty and no `gh attestation verify` ever
ran. Dropping it keeps today's behaviour (a declared binary still fails
the payload scan).
test_plugin_catalog_ci_confinement.py still runs the workflow step text
(now the script call); every case passes against both the old and the
new workflow. test_catalog_pinned_confinement.py adds a POSIX test of
the confinement rule and the entry-field rejections, since the step
test is Linux-only.
The freshness workflow carried a 64-line inline Python judge and two
near-identical bash blocks that open or comment on a watchdog issue.
- `Probe live index`: the heredoc judge moves to
scripts/ci/skills_index_probe.py (same floors, 26 h limit, 1500 total,
same output lines on stdout, exit 0 for every verdict). curl stays
inline in the step.
- Both "Open issue" steps call scripts/ci/skills_index_watchdog_issue.py
with `skills-index` or `plugin-catalog-cors`. One table holds the two
title prefixes, titles and bodies; the find/comment/create logic is
written once. GH_TOKEN, STATUS and DETAIL stay in the step env and the
repository comes from GITHUB_REPOSITORY instead of `${{ }}` in the script.
The prefix filter that used `--jq startswith` is now done in Python.
Tests judge saved index fixtures and drive the watchdog against a stub
gh, with no network.
setup-pm installs the just pm/lock.json pins (python, node and all
toolchains) and forwards just-version and just-path. Three workflows then call
recipes instead of spelling the command out:
- lint.yml: each guard step runs `just check --only <name>`, so the guard list
lives once, in scripts/check. Adding a guard there and forgetting lint.yml
no longer leaves CI running a different set. The ratchet step is
`just check --only health --base HEAD^1`.
- tests.yml: the sliced full-suite step is `just test-all`.
- js-tests.yml: the parallel workspace checks are `just check-js-ci`.
Python recipes run through scripts/hermes-python: on a runner it uses the
interpreter setup-pm exported as HERMES_PYTHON (as run_tests.sh does), so a
recipe never re-runs setup in CI. Elsewhere it goes through run-in-hermes-env.
--require-paths checked positional paths, --files and --files-from, so
`just test --paths tests/agent/` was refused as if it named nothing. A
--paths value other than the default root counts as a named path.
- `just test -v` passed the recipe's one-argument check and then
discovered all of tests/. The runner takes --require-paths, which refuses
a run naming no path or file list, and `just test` passes it.
- `just test-js` ran the TUI tests before @hermes/ink was built. It builds it
first, as the TUI's own `check` script does.
- `just lock` went through run-in-hermes-env, which syncs first; after a
pyproject.toml edit the sync refuses the stale uv.lock before pm lock runs.
scripts/relock.sh runs pm lock with the bootstrap Python, then syncs.
- `just setup` on Windows called pwsh, which a stock Windows does not have.
It uses powershell.exe, as activate.ps1's own caller does.
The justfile held per-workspace eslint recipes that duplicated lefthook and
ran whatever ruff was on PATH. It is now one menu of developer commands:
setup, check, fix, test, the JS workspace checks, the desktop and TUI dev
servers, the website build and the PM re-lock. Each recipe calls an existing
script or tool. Python recipes go through scripts/run-in-hermes-env, so they
work in a shell that never ran `source ./activate`.
`just test` requires at least one path, because scripts/run_tests.sh with no
arguments starts the full suite; `just test-all` is that explicit form.
`python -m scripts.code_health.ruff_runner ARGS` runs the pyproject-pinned ruff
that scripts/check resolves. `just fix` and the pre-commit `just ruff` recipe
use it, so the hook no longer depends on the ruff version on PATH.
lefthook.yml keeps its jobs, globs and roots; each job now runs `just ruff` or
`just eslint`. A shell without `just` on PATH fails the hook with "command not
found" rather than skipping the lint.
CONTRIBUTING.md, the developer guide, the package-management reference and the
desktop and TUI READMEs name the recipes beside the commands they run.
scripts/bundles/native.py staged every non-internal lockfile package, so
pinning just put it in every desktop payload and on the shipped agent's
PATH. Bundle selection now skips DEVELOPER_TOOLS, like a user install.
Tests: a bundle never stages just while the lockfile pins it; on Termux
just is checked from its file and never run.
No workflow runs a just recipe yet, so installing just in every setup-pm
job only added a download, and one with no mirror copy until the pin lands
on main. setup-pm goes back to main. The workflow change that first calls a
recipe adds just to CI with it.
scripts/tool_store_pins.py decides whether run_tests.sh may share the
account tool store. It checked the tools cmd_install provisions but not the
developer tools, so a store with a missing or broken just was shared and the
test-environment install could then rewrite it. It now walks them too.
Setup asked for just by name: `pm install --test-environment` and every
setup-pm toolchain. A lockfile without a just pin (an older branch, a test
fixture repo) then stopped setup with "just: not in the lockfile", and
archive_inputs refused it as an unknown pinned package.
Both paths now take the developer tools from the lockfile they read, so a
lockfile without just installs without it. The repository lock pins just,
so developers and CI still get it.
Add a `just` binary package (casey/just 1.59.0, musl on Linux, the static
aarch64 musl build on Termux like ripgrep) and pin all nine targets in
pm/lock.json. Digests come from GitHub's release API, as llama.cpp's do.
They match upstream SHA256SUMS.
The package is optional, so `source_install_packages` keeps it out of
every user install. `pm.testenv.DEVELOPER_TOOLS` names it, and
`pm install --test-environment` (what activation runs) installs it with
the default closure. activation_environment then puts it on the activated
PATH. setup-pm installs it in every toolchain, so every CI job can call
`just`.
Windows ARM64 just.exe imports no vcruntime140.dll (PE imports checked),
so it needs none of ripgrep's VC runtime staging.
The out-of-process Telegram sender (_send_telegram and its bot, retry, text, media,
album and format helpers) moves from tools/send_message_senders.py into
plugins/platforms/telegram/standalone.py, registered as the PlatformEntry
standalone_sender_fn (the Signal pattern). _send_to_platform reaches it through
_plugin_standalone_sender and passes notify; core no longer imports the Telegram
plugin, and the plugin no longer imports tools.send_message_tool._send_telegram.
Small local copies of the caption split and the result/redaction helpers keep the
plugin on its published API. boundary_lint --update: only removals vs origin/main.
The standalone sender (hermes send, the send_message tool, standalone cron delivery) now
makes the gateway adapter's outbound decisions:
- rich_messages: true -> the adapter's own sendRichMessage gates and routing
(telegram_outbound.send_rich_standalone over the standalone Bot), so tables, task lists,
<details> and $$ math render natively; a transient rich failure is not resent as legacy.
- A rejected Bot API HTML chunk (an unsupported tag next to supported ones) retries as
MarkdownV2 before plain text, so its Markdown still renders.
- display.platforms.telegram.notifications applies to every standalone text/media send;
_send_to_platform(notify=) rings regardless, and cron's standalone lane passes
cron.delivery.notify so briefs ring in both lanes (#92929).
- Invisible-only text (zero-width, BOM, soft hyphen, bidi marks) is never delivered, in
both the adapter's send() and the standalone sender.
The notifications resolver moves from adapter.py into telegram_outbound.py and reads the
active profile's config.yaml through load_config_readonly(): it passed the GatewayConfig
dataclass to cfg_get, which only walks dicts, so the config.yaml key was always ignored
(regressed in 5600105478).
Fixes#74004, fixes#124413, fixes#145606, fixes#60848, fixes#131924, fixes#144895
Co-authored-by: Dean Chen <862469039@qq.com>
Co-authored-by: liuhao1024 <sunsky.lau@gmail.com>
Co-authored-by: Lavya Tandel <160998697+LavyaTandel@users.noreply.github.com>
hermes send, the send_message tool and standalone cron delivery built a bare
telegram.Bot: api.telegram.org only (platforms.telegram.extra.base_url ignored),
PTB's 5s/1s defaults and 20s media write timeout (HERMES_TELEGRAM_HTTP_* ignored),
no TelegramFallbackTransport. _telegram_bot now takes the platform extra and
builds the same request shape as the adapter's _build_ptb_requests: base_url /
base_file_url, the adapter's timeouts incl. media_write_timeout=60, proxy
(TELEGRAM_PROXY or extra.proxy_url), else the fallback-IP transport over the
configured or seed IPs (no DoH on a one-shot send).
The retry classifier also retries a connect or pool timeout (the request never
left, the adapter's _looks_like_connect_timeout / _looks_like_pool_timeout),
while every other timeout stays final.
Live probe (real `hermes send` -> stand-in Bot API via extra.base_url):
main: {"error": "Telegram send failed: Unauthorized"} (went to api.telegram.org)
head: success, one sendMessage on the stand-in, message visible.
Fixes#51223, fixes#62936, fixes#20915, fixes#47229, fixes#145412
Salvages #145428 (@locker95), #119934 (@OsmanSujoy), #125409 (@linfeng961)
Co-authored-by: Dean Chen <862469039@qq.com>
Co-authored-by: Osman Gani <32834772+OsmanSujoy@users.noreply.github.com>
Co-authored-by: linfeng961 <133505766+linfeng961@users.noreply.github.com>
run_tests.sh forwarded HERMES_E2E_UPGRADE_BASE and HERMES_E2E_N1_REF
but dropped the suite's other knobs: HERMES_E2E_INSTALL_REF (installs a
patched commit to prove a leg red), HERMES_E2E_GIT_OBJECTS (an extra
object store for the smart-HTTP origin) and HERMES_E2E_KEEP_ROOT. Set
through the runner, they were ignored without a message. None is a
credential.
Part of #150040
The existing handoff test supersedes only while the first attempt is still
signing, so consuming the key on use again would pass it. This sends two
requests, each signed at once, and checks both prologues carry an HMAC under
the QR secret. Follow-up from BearHuddleston's review of #150938.
Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
Baileys awaits prekey upload and passive IQs between CB:success and 'open', so
connectionState is still 'disconnected' when a passkey_prologue_request can
arrive; the guard now also accepts registered creds (creds.me.id).
Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
readline's question() rejects Ctrl+C with its own AbortError while the attempt's
signal is untouched; passkey_socket.js dropped it as a supersede, so the bridge
kept running with no prompt. Only this attempt's aborted signal now counts as a
supersede; any other AbortError becomes an ordinary failure (exit 1).
A superseding passkey_prologue_request re-derived the handoff HMAC key from the
ADV secret the first request had already rotated in, which the phone never saw.
The key is now derived once per flow and kept for its five-minute window.
Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
runUntil returned a null status both when the test killed a live bridge after
the warning and when the 15 s guard killed a bridge that never printed it, so
removing the warning, or exiting 78 right after it, still passed. It now
reports alive only when the warning appeared and the bridge was still running
300 ms later; both mutations and dropping the connected-session guard turn
the test red.
The adapter's constant-agreement test regex-read bridge.js, which
tests/AGENTS.md rules out. The bridge test already observes the real exit
status 78 in gateway mode; the adapter test pins its constant to that value
and both sides name each other.
Clearing the current attempt when a newer prologue request arrives closes the
browser, and Playwright then rejects the interrupted page.goto or launch with
a plain Error (net::ERR_ABORTED, "Target closed") rather than an AbortError.
executePrologue rethrew it unchanged, so passkey_socket.js reported a
passkeyError and the bridge exited 1 instead of running the replacement
attempt. The same held for a code question or companion_nonce query that
failed after its attempt was superseded.
Both stages now rethrow the attempt's abort reason when its own signal was
already aborted; the prologue reads the signal before its own cleanup aborts
it, so a genuine failure still surfaces. The encryption key is passed to
sendPairingRequest instead of riding on the session object.
The dashboard text for passkey_required drops the EXECUTABLE placeholder and
literal backticks the page would have shown as-is.
Tests: a superseded attempt whose signer rejects with a plain error, and a
code question that rejects with a plain error after supersede, emit no
passkeyError and the replacement prologue goes out; the stale-answer test's
stub now ignores its signal so only the flow's own abort check stops the
send; the owner-confirmation test waits until the owner is asked. Rethrowing
the raw error in either stage, or dropping the post-confirmation abort
check, turns a test red.
The connected-session case proved the bridge stayed alive by letting
spawnSync hit a 4 s timeout, a fixed cost and a flake risk on slow runners.
It now waits for the bridge's own "ignoring it" warning and kills it; the
guarded exit would run in the same tick as the request, before that
warning, so a null status still proves the bridge survived (removing the
guard turns it red).
The adapter test asserted PASSKEY_REQUIRED_EXIT == 78 by hand. A separate
test now reads the constant out of bridge.js and compares it with the
adapter's, and the retry test parametrizes on the constant.
The code reached the terminal prompt through a synthetic connection.update
event, and the prompt then called back into the flow's
confirmVerificationCode with a socket-lifetime abort controller. A newer
prologue request aborted the old attempt but left its question open, so a
late "y" sealed and sent the newer attempt's pairing request without the
owner having seen that code. A second request also queued behind the
current browser prompt for up to its 600 s bound.
The flow now awaits an injected confirmCode(code, signal) itself and sends
the pairing request only for the attempt that derived the code; signal is
that attempt's own controller, so a newer prologue (which now clears the
current session at once) or a socket close cancels the question. That
removes the event round trip, the returned confirmation wrapper and the
bridge's second controller.
Also removed from the adapted flow: the emitPrologueSent hook, the
pairingHandoffProof argument and getVerificationCode, none of which had a
caller; the proof now comes only from the stashed handoff key. The bridge
prints the passkey failure's name and message instead of one generic line.
Tests: a superseding request cancels the pending question and a late
answer sends nothing; the handoff-window cases assert whether confirmCode
runs. Removing the supersede clear, or forcing or skipping the prompt,
each turns a test red.
The existing confirmation tests call executePrologue directly, which skips
the ADV-derived handoff key a server prologue request stashes first. Through
CB:notification (the path production takes) a fresh session always carries
that key, so the pairing request goes out without the code prompt unless
signing outlasts the five-minute handoff window. Pin both outcomes through
attachPasskeyFlow and say so in PASSKEY.md, with the gateway's new
already-connected behaviour.
PASSKEY-LICENSE: the cited commit c3d846d carries "Copyright (c) 2025"
(2026 is only on current master), and the notice now states the Hermes
modification (owner confirmation when no trusted handoff applies).
Before passkey support, Baileys rc13 acked and ignored passkey_prologue_request.
With it, any such notification made a signer-less bridge exit 78, which the
adapter parks as non-retryable, so a request reaching an already open
gateway session would stop a working gateway until a manual re-pair.
Exit only when the session has not connected yet (or in pair-only mode),
and log and ignore it otherwise.
Also name the exit status (PASSKEY_REQUIRED_EXIT) on both sides, and emit
the dashboard-readable {event: error, error: passkey_required} under
--pair-json instead of a passkey_required event no watcher handles. The
passkey_failed / passkey_confirmation_failed emits and the PAIR_JSON guard
in confirmPasskey are dropped: loadPasskeySigner rejects --pair-json, so
those paths only run in an interactive terminal.
Tests: bridge.passkey.test.mjs drives the real bridge entry point; a
stubbed socket that opens before the request stays alive, and pair-json
emits the error event. Both new assertions fail with the guard / emit
removed.
The aux, compressor and turn paths each grew "is this a <kind> error?"
helpers that read an exception's status_code or grep its text; every
copy drifted from classify_api_error until the previous commit moved
the aux decisions onto the shared classifier. HX014 keeps new copies
out.
What it flags: a def or lambda with an exception parameter (exc/err/
error/e/ex/exception, *_err/*_error/*_exc, or an *Exception/*Error
annotation; a ClassifiedError parameter is not one) whose own body reads
<param>.status_code (also via getattr or .response) or probes the
exception's text (`in str(exc)`, a local bound to that text,
startswith/endswith, re.search/match/fullmatch, _contains_any). Scope:
agent/auxiliary*.py, agent/context_compressor*.py, agent/turn_*.py,
tests excluded.
Like the other HX rules it ratchets base vs head, so existing hits are
grandfathered. Waiver: `# health: allow HX014 -- <why>`.
Tests: tests/scripts/test_code_health_error_predicate_rule.py covers
flagged and passing shapes, scope and the base-vs-head verdict.
Part of the Code Health plan.
The rule-17 archive scan refused a data corpus tarball because one member
was a .jsonld context (siblings: 34k .json files, two .ttl files). Those are
plain-text RDF serialisations, as reviewable as the .json and .xml already on
the source list, so dike's pinned corpus failed pinned-source-validate for a
reason that is not a payload.
Class bodies and match cases run at import, and the import branch of
an 'if __name__ != "__main__"' guard is the body, not the else. Removals
(remove, pop, clear, del) change the search path too.
hermes_cli.config.get_project_root, uninstall.get_project_root, the
PROJECT_ROOT constants of status, cron, gateway, setup, tools_config and
web_server, code_skew and runtime_downgrade_exit _PROJECT_ROOT,
runtime_cwd._PACKAGE_ROOT, shared_metrics_catalog._REPO_ROOT,
desktop_update_verify.checkout_root and host_supervisor._repo_root now
return hermes_cli._startup_fast.project_root_str() instead of their own
__file__ arithmetic. Names, values and test seams are unchanged.
Still separate, on purpose: pm.paths (Docker's tool stage ships pm without
hermes_cli._startup_fast), hermes_constants and hermes_bootstrap (they load
before any package), main.py's script-mode bootstrap, the recovery closure
and stub-tree modules (_early_recovery, update_lock, update_pause_record,
venv_sync: tests and recovery load them as lone files), the lexical
linux_desktop_entry root and self_repo_guard's .git probe. The lint baseline
drops by the 15 sites.
scripts/install_root_lint.py scans the shipped packages and root modules. It
counts __file__ path expressions that climb as many directories as the file
is deep (.parent, .parents[n], os.path.dirname, os.path.join with pardir),
and sys.path edits that run at import. Today's 106 climbs and 13 import-time
edits are the baseline; a file whose count rises fails, and the message names
hermes_cli._startup_fast.project_root_str() as the call to make instead.
Wired into scripts/check (install-root) and the lint workflow.
The skill drives the yb_* tools, which now ship in the yuanbao Labs plugin; the plugin carries
the skill (ctx.register_skill). Regenerated the skill pages, catalogs and sidebar with
website/scripts/generate-skill-docs.py, dropped yb_* from the ACP TOOL_KIND_MAP as the Home
Assistant move did for ha_*, and the boundary baseline's stale Yuanbao entries
(scripts/boundary_lint.py --update).
The upgrade suites chose their start version with a tag pattern that
matches only calendar-version tags, so after releases moved to v0.x
every run started from v2026.9.24, five releases behind. Three copies
of that resolver and a fourth tag scan are replaced by one:
upgrade_base() picks the newest release before HEAD, a ref, or the
newest release of a named updater generation (by-path, handoff,
pre-handoff), from HERMES_E2E_UPGRADE_BASE. scripts/run_tests.sh now
forwards that variable and its older name HERMES_E2E_N1_REF.
The handoff suite's synthetic next release only added a file. It now
also moves a module the gateway imports at boot and rewrites the
importer, so the relaunched gateway serves a turn only if the update
applied the move.
A source module moved under tests/ was skipped, and a test file moved
out of tests/ was compared as source. The base path now decides which
comparison applies. The cap and src/ canaries no longer follow the
values they check.
A renamed file whose path git quotes (non-ASCII) was dropped by the
.py suffix test, and a move out of the source roots was skipped because
only the new path was classified.
Three guards could report success while they checked nothing:
- The public-surface check listed only modified files, so a moved
file (git reports a rename) was never compared. It now pairs each
renamed file with its old path, and treats src/hermes_agent/ as
source.
- The change classifier read file names from the compare API, which
stops at 300 files without saying so and drops the old path of a
rename. A list at the cap now runs every lane, and a rename counts
under both of its paths.
- Tree guards skipped a scan root that did not exist. The config
reader and writer checks, the subprocess stdin check and two guard
tests now fail when a root they scan is missing.
mini_swe_runner.py and scripts/sample_and_compress.py have no importer
and no launcher. Each is reachable only as `python <file>` from a
checkout, and neither command appears in website/docs, docs/, skills/,
README, CONTRIBUTING or any AGENTS.md file.
Evidence (git grep over the whole tree, excluding the files themselves):
- mini_swe_runner: tests/test_mini_swe_runner.py (deleted here) and one
docstring line in trajectory_compressor.py (removed here).
- sample_and_compress: no reference.
- No Dockerfile, nix/, flake.nix, setup.py, pyproject [project.scripts],
.github/ or apps/ui-tui/web reference to either name.
- Neither appears in tests/compat/old_updater_surface.json or in the
plugin API (hermes_cli/data/plugin_api.json).
- No release tag from v2026.8.13 to v2026.9.24 imports either module
from outside the files themselves.