The Rollstack and pstack-hermes rows exempt files that fetch nothing or
only fetch a pinned tool through mise, so the comment above
_SELF_UPDATER_ALLOWLIST now says the list covers both kinds.
Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
skills/statechart/scripts/run.ts in khaeransori/pstack-hermes at a977cb5 is
the statechart skill's model-check runner. It asks the user's mise to install
TLA+ tla2tools v1.7.4 (sha256-pinned in the mise spec) and a Temurin JDK into
mise's own store, and writes only temporary .cfg/.tla files under a mkdtemp
directory. It never fetches or replaces plugin code. The gate reads the
releases URL plus writeFileSync in one file as a self-updater, which blocks
the pstack-hermes catalog entry (#158523). Keyed by repo, pin, path and
file sha256 like the Rollstack row.
scripts/build-index.mjs in Rollstack/skills at 9aeb656 only writes
.well-known/agent-skills/index.json from the repo's own SKILL.md files.
The raw.githubusercontent.com string it contains is the URL it records
in that index; it fetches nothing and Hermes never runs it. The gate
reads "GitHub URL + file write" in one script as a self-updater, which
blocks the rollstack catalog entry (#157088). The row is keyed by repo,
pin, path and file sha256, so any edit or re-pin is gated again.
5a93368019 redacted the key file's own lines from notarytool's output
before logging it. That still missed key material echoed at other line
widths, and because it ran before classification, a key-file line such
as a preamble reading "403" turned "HTTP status code: 403. Forbidden."
into a warning.
Classify notarytool's raw output and log only the controlled verdict and
its exit status; no notarytool text reaches the job log, so nothing in
it needs redacting (redact_secrets and the PEM block pattern go). The
operator still gets the HTTP status and the remedy from the verdict, and
the unchanged notarize hook logs its own notarytool run.
The test echoes the key body re-wrapped at 40 columns on HTTP 401 and
HTTP 500 and checks that a key file with a "403" preamble still fails
closed on 403. The previous helper leaks the re-wrapped body on 401 and
warns on that 403; logging the raw output or its last line is caught.
Found by a gpt-6.2-sol review round.
The envelope check from the previous commit accepted any PKCS#8
PrivateKeyInfo, including an empty AlgorithmIdentifier or a well-formed
key of the wrong type. The realistic case is the wrong secret: a
Developer ID RSA key or another EC curve pasted into APPLE_API_KEY_P8
passed locally and left the verdict to notarytool's wording.
App Store Connect API keys are ES256, so require the AlgorithmIdentifier
to be exactly id-ecPublicKey with the prime256v1 curve. The private key
payload inside intact framing is still not parsed: only a bit flip can
damage it there, and notarytool's CryptoKit parse or Apple's 401 rejects
that, both classified as auth failures.
The previous helper accepts a generated RSA key, a generated P-384 key
and an empty AlgorithmIdentifier; all three fail now, while a generated
P-256 key and the App Store Connect-shaped fixture pass. Each bad
envelope breaks one rule of an otherwise valid P-256 key, and every
mutant of the check (exact fill, outer tag, element bound, field tags,
algorithm, curve, the call) is caught.
Found by a gpt-6.2-sol review round.
The preflight logs notarytool's output on both the error and the warning
path after removing complete PEM blocks and the exact key ID and issuer.
Key material echoed without its BEGIN/END markers matched neither, so it
would have reached the public job log.
Redact each body line of the key file the preflight already read, so the
rest of notarytool's message stays as the diagnostic (it is the only
clue on the warn-and-continue path, which is why the output is kept
rather than dropped). The test echoes the body lines without markers on
HTTP 401 and on HTTP 500; the previous helper leaked them on 401.
Found by a gpt-6.2-sol review round.
validate_p8_pem accepted any base64 body of 32 bytes or more whose first
byte was 0x30. A .p8 secret that lost a body line still decodes cleanly
and still starts with the SEQUENCE tag, so it passed the local check and
its rejection depended on notarytool's wording: an unrecognised parse
error warns and the build runs for ten minutes, as it did before the
preflight.
Read the DER envelope instead: one definite-length SEQUENCE that fills
the decoded body exactly and opens with INTEGER version, SEQUENCE
algorithm and OCTET STRING privateKey (PKCS#8 PrivateKeyInfo). Stdlib
only, and nothing from the key reaches the output.
The test fixture is now laid out like an App Store Connect P-256 key, a
disposable key from cryptography must pass, and a lost body line, a
SEQUENCE of the wrong fields, a SET, trailing bytes and a field that
overruns the SEQUENCE must fail. The previous helper accepts the first
two; each of five mutants of the new check (exact fill, outer tag,
element bound, field tags, the call itself) is caught.
Found by a gpt-6.2-sol review round.
Canary runs 44784160658 and 44876973873 spent ~10 minutes building,
signing, and zipping Hermes Agent Canary.app before `xcrun notarytool
submit` failed in seconds with HTTP 401 Unauthenticated.
Add a pre-build credential preflight (`scripts/ci/check_macos_notary_auth.py`)
and wire it into `.github/workflows/desktop-bundled-release.yml` immediately
after `Write App Store Connect key for notarytool` on both darwin legs
(release and commit/channel, sharing `&darwin-steps`):
- Validates that `APPLE_API_KEY`, `APPLE_API_KEY_ID`, and
`APPLE_API_ISSUER` are set and that `apple-api-key.p8` contains a single
DER-encoded PKCS#8 PEM private key before invoking `xcrun`.
- Runs `xcrun notarytool history --key ... --key-id ... --issuer ...
--output-format json` with a 30 s timeout and redacts key IDs, issuer
UUIDs, and PEM blocks from any logged output.
- Fails fast (exit 1, `::error::`) only on deterministic credential errors:
HTTP 401/403 (revoked key, wrong role, expired/missing Apple legal
agreements), invalid PEM, or local `notarytool` key/argument errors.
- Treats transient Apple failures (HTTP 5xx/429 including Apple's HTTP 500
"Error communicating with authentication service", `NSURLErrorDomain`
lost-contact errors, subprocess timeouts, `OSError`, and unrecognized
non-zero exits) as non-fatal warnings (`:⚠️:`, exit 0) so
`Build and package` keeps its full retry path and post-build Gatekeeper
verification.
- On channel builds, prefers `.build/channel-controller` (the trusted main
checkout); on older `build_commit` checkouts lacking the helper, warns
and skips while release checkouts fail closed.
`hermes update`'s old-backend notice (hermes_cli/update_backend_notice.py) imports
hermes_cli/backend_migration_marker.py, so a change there must start the e2e_upgrade suite.
tests/ci/test_update_ci_routing.py::test_every_module_an_update_entry_point_imports_starts_its_suite
[_UPDATE_ENTRY_POINTS-e2e_upgrade] failed without this route.
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>
Greptile (P1): each import was filed under its innermost catching try only, so a fallback nested
in an outer handler became its own choice and the outer try lost it. Joust's get_data_dir has that
shape: `try: from plugins.plugin_storage import plugin_data_dir` / `except: try: from
hermes_constants import get_hermes_home`. Removing plugin_data_dir was reported as a break even
though the plugin falls back to get_hermes_home.
An ImportBranch now carries its own nested ImportChoices. A branch runs when its imports resolve
and every try inside it has a branch that runs; a try still reaches Hermes when some branch runs
and imports from Hermes (directly or through a nested try). The index stores a nested try inline as
{"try": [branch, ...]} and is rebuilt in that shape (1.0 MiB, largest shard 201 KiB). The new test
removes the primary import with the nested fallback alive (no break) and then the fallback (its
site is named); it fails on the previous head.
Review fixes for the catalog core-imports check (Greptile, five findings):
- A try is now one ImportChoice: the body and each handler are branches, and the plugin keeps the
import while every Hermes import of one branch resolves. Before, any one surviving name from the
other branch hid the loss, so dropping one name from both spellings of a multi-name import passed
(vector-platform's internal/setup.py has that shape). A try that can run without Hermes imports
(an empty branch) still reports its loss, labelled as a lost feature.
- Only writes through globals() make a module's names dynamic (passed to a call, .update /
.setdefault, a subscript store). A read like globals().get(name) no longer turns off the name
check for the whole file (hermes_cli/auth.py reads it).
- Index rows decode into frozen dataclasses (Row, CoreImports, ImportChoice, ImportSite, the last
three owned by the parser in plugin_validate_private_imports) at read_index; the compact JSON
stays inside read/write.
- `build` re-reads a row whose last read failed, and a row whose subdir changed at the same sha (two
entries can pick different plugins from one commit). The two network failures from the first
build are now indexed; only the three deleted repos stay unreadable.
The index is rebuilt in the new format (31 shards, 1.0 MiB, largest 201 KiB).
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.
Bear's second pass: the note still left out the kit status rewrite for the
removed in-game agent link (runtime output, no longer reads the hermes_*
settings) and the replaced settings help paragraph. Only `why` changes.
Co-authored-by: BearHuddleston <bear@bearhuddleston.dev>
Bear's review of #157919 (posted after it merged) found the audit note
understated the kit.ts delta at 2c07ad28: besides the new subcommands it
adds a codes-table header written into the game folder by kit build and a
kit note input check. The note is what the next reviewer reads on the
following re-pin, so record what was checked, including that the
poryscript URL, sha256 check and kit/.cache destination are unchanged.
Only `why` changes; the gate does not read it.
Co-authored-by: BearHuddleston <bear@bearhuddleston.dev>
rom-studio's 0.3.0 re-pin (#157487) changed kit/kit.ts (new pixel, codes and
plugin subcommands, help text), so its allowlist row no longer matches by
sha256 and the self-updater gate rejects the entry. The flagged download is
unchanged: the fixed poryscript 3.6.1 release URL checked against the same
SCRIPT_TOOL_SHA256 and unpacked into kit/.cache. Nothing fetches or replaces
rom-studio's own files. Add a row for the reviewed pin; the old row stays for
the listed pin.
The hermes_state_wal -> sqlite_support MOVES key makes the CI guards read
sqlite_support.py under its oldest name, hermes_state_wal.py
(classify_changes maps every changed path through original_path). The
literal "sqlite_support.py" prefix in the e2e lane then matched nothing:
test_every_slow_lane_path_matches_a_tracked_file went red, and a change to
sqlite_support.py would no longer start the WAL/durability e2e suites on a
pull request (classify(["sqlite_support.py"])["e2e"] was False).
The entry is now spelled through original_path, the way the guards compare
paths, so it follows the table instead of hard-coding either name.
The case-folded scan dropped the old is_file() check, so a directory
contributors/emails/<email>/ passed the gate while the release-notes
loader (which reads files only) skipped it. Keep is_file() in both the
CI gate and the local audit.
A commit stamped `Kesuek@users.noreply.github.com` fails the contributor
check even though `contributors/emails/kesuek@users.noreply.github.com`
maps that author. Adding the other spelling is not an option: the two
files are one file on macOS/Windows, so the case-collision guard fails the
repo, and `add_contributor.py` refuses to write it.
The check now folds case for the directory and the legacy map, in the CI
gate (`scripts/ci/check_contributor_emails.py`, where the workflow's shell
check moved), its local twin `scripts/audit_pr_attribution.py`, and the
release-notes resolver (`scripts/releases/authors.py::mapped_login`).
Salvage of #126851 (the workflow hunk is dropped: that check now lives in
the Python script, which gets the same fold).
Co-authored-by: Brooklyn Nicholson <brooklyn.bb.nicholson@gmail.com>
The Web export templates land in Godot's own export_templates folder
outside HERMES_HOME, and on macOS with Homebrew the editor comes from the
unpinned cask instead of the checksum-pinned archive. The `why` text now
says both, so a maintainer reading the row when the pin moves sees every
route. The key fields are unchanged.
Co-authored-by: BearHuddleston <BearHuddleston@users.noreply.github.com>
swarm-studio (#154007) fails the self-updater gate on five files that fetch
from GitHub and write files, none of them the plugin's own code:
- engine/godotinstall.mjs: installs the Godot 4.7.2 editor only when the
user asks in the game chat, from the pinned godotengine release, checked
against the release's published SHA-512, into the plugin data folder.
- engine/library.mjs: picture assets from the third-party assetrizz repo
pinned to one commit, every path confined to the plugin data folder.
- dyad/makers/MakerAppImage.ts and dyad/scripts/symbolicate-dump.mjs:
developer tools of the vendored dyad engine (an AppImage runtime checked
against a fixed sha256; Electron debug symbols into the user cache).
The plugin never runs either.
- tests/godotinstall.test.mjs: unit tests with an injected fake fetch.
Same class as the rom-studio exception (c711c2efe6): a checksum- or
commit-pinned third-party download that never replaces the plugin's own
files. Rows are keyed by repo, the reviewed sha and each file's sha256, so
a re-pin or any edit to one of these files is gated again.
Previously `scripts/bundles/linux_appimage_acceptance.py` held the x86-64
type 2 AppImage header + SHA-256 check (`check_image`), but CI ran
`scripts/bundles/appimage_checks.py` directly via
`scripts/ci/linux_x64_userland.sh accept` without the header check, leaving
`linux_appimage_acceptance.py` unused outside its own test import.
Move `check_image` into `scripts/bundles/appimage_checks.py`, invoke it in
`main()` before `--appimage-extract`, forward the producer digest from
`scripts/ci/linux_x64_userland.sh accept`, update `appimage_checks.py`'s
docstring, and drop the duplicate bubblewrap launcher.
The Ubuntu 22.04 acceptance container drops every capability and keeps
Docker's default seccomp profile. That profile refuses clone and unshare
with namespace flags without CAP_SYS_ADMIN, and chroot without
CAP_SYS_CHROOT. AppRun's `unshare -Ur true` probe therefore failed and it
launched Electron with --no-sandbox. The window and gateway checks still
passed, so the floor check accepted a desktop running without the
Chromium sandbox, which a 22.04 desktop with user namespaces never does.
The 22.04 run now uses moby/profiles seccomp v0.1.0's default.json
(Docker 29's builtin profile), unchanged, plus two rules appended. Its
upstream sha256 is
01536f1d1df938ae611eba20d6349e0de7a99b6ecdee1549427a0b01b8301e28.
clone and unshare may
create user, PID and network namespaces; mount, UTS, IPC and cgroup
namespaces stay refused. chroot is allowed, which needs a capability
only Chromium's own user namespace grants. --cap-drop ALL, --network
none and the non-root user are unchanged. The 24.04 run, which doesn't
start the desktop, keeps Docker's default.
check_execs now refuses any successful exec that carries --no-sandbox.
That covers AppRun's fallback and the app's own sandbox relaunch.
check_desktop fails first, naming the cause, when the container can't
create a user namespace.
On spark-0 (Ubuntu 24.04 arm64 host, apparmor_restrict_unprivileged_userns=1,
Docker 29.2.1), an Electron 44.9.3 arm64 AppImage was launched under the
leg's container flags in ubuntu:24.04:
- Docker's default profile: AppRun added --no-sandbox, and the window
and gateway still came up.
- This profile: no exec carried --no-sandbox. The sandboxed zygote and
the renderer ran in their own user namespace (uid_map 1000 1000 1)
and nested PID namespaces. The real check_desktop accepted the run.
- Without the chroot rule: no window within 380 s.
- check_desktop under Docker's default profile: refused with the
user-namespace cause. With that precondition bypassed, it refused
the trace instead: "Chromium ran without its sandbox".
Not run: the x64 AppImage and the Blacksmith runner.
Review: https://github.com/NousResearch/hermes-agent/pull/154545#discussion_r4623972093
Actions rejects matrix expressions in step.shell before any job starts. Give the four shared steps a literal shell and select their existing x64 container or native arm64 Bash via the matrix label in job env.
Verify locked CUDA and ROCm payloads on Ubuntu 24.04; refuse to select or execute them below their ABI floor. Build the desktop on Ubuntu 22.04 with a pinned bootstrap interpreter and check desktop startup, offline CPU inference and both packaged GPU probes against one producer digest.
A store opens under its own profile folder as the Hermes home, so the connection settings it reads at open are that profile's. The binding compares the store's folder with the current home first, a home read the guard refuses unless it is listed with its reason; it is listed now.
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.
hermes_state_loop_guard.py wraps the backend holder's _read_ctx and _execute_write (StoreHolder is the store's choke point once SessionDB forwards to it), so it imports persistence.sqlite._holder like the other legacy modules the guard already allows until the removal.
The text prefilter skipped any file without "persistence.sqlite" or "import sqlite" before the AST check, so `from persistence import core, sqlite`, the two-space form and the parenthesised multi-line form a formatter writes passed the guard.
The prefilter now only skips files that never mention "sqlite"; the AST check decides the rest, and the tree stays clean under it.
New guard cases pin the three forms.
Evals, the end-to-end and conformance suites, scripts and CI reach the store through the interface.
scripts/ci/check_backend_imports.py, run by scripts/check, refuses an import of persistence.sqlite outside persistence/ and persistence_assembly.py (tests excepted). The two evals that instrumented the backend now reach it through the interface: the failure-ownership probe patches the message repository class of the store it opens, and the attachment bench meters whole-blob reads at the gateway attachment store.
The Hermes Marketplace replaces them and the portal already redirects both
routes there. The published feeds (plugins.json, skills.json, skills-index.json)
and their generators stay.
tools/ holds model tools. These six files register none: they snapshot and
restore a working directory for the agent loop, /rollback, /undo's
changed-files line and `hermes checkpoints`. They move next to the agent
loop that takes the checkpoints:
tools/checkpoint_manager.py -> agent/checkpoints/manager.py
tools/checkpoint_maintenance.py -> agent/checkpoints/maintenance.py
tools/checkpoint_pruning.py -> agent/checkpoints/pruning.py
tools/checkpoint_refs.py -> agent/checkpoints/refs.py
tools/checkpoint_undo_hint.py -> agent/checkpoints/undo_hint.py
tools/checkpoint_manager_profile_rename.py -> agent/checkpoints/manager_profile_rename.py
agent/checkpoints/__init__.py is a docstring only. Nine test files move to
tests/agent/checkpoints/. Every importer changes its import line in place,
inside the same function. Nothing stays at the old paths: none of the six
names is on the plugin API list, the shipped-release list or the
old-updater list.
Behaviour is unchanged. The four loggers keep their tools.checkpoint_*
names, so the lines stay under `hermes logs --component tools`. The folder
is not a root checkpoints/ package because the checkpoint store is
HERMES_HOME/checkpoints, which is the same directory as such a package on an
install whose checkout root is HERMES_HOME. agent.* is already packaged, so
pyproject.toml and the lists of root packages do not change.
The import and docs rewrites were made by scripts/move/rewrite_imports.py
and rewrite_docs.py.
utils.py held three subjects in one 871-line file. It is now a package with
one module per subject: utils/files.py (atomic writes, temp files, file mode
and owner, signatures and digests, JSON and YAML file helpers), utils/urls.py
(the base_url helpers) and utils/env.py (truthy values, env numbers, proxy
env helpers). utils/__init__.py re-exports every public name, so no importer
changes. Function bodies are unchanged, no function-level import moved, and
the logger keeps the name "utils".
Tests patch a name in the module that now defines it. Patches stay on the
package where production reads the name through a function-level
"from utils import". The tests of utils itself move to tests/utils/.
A root module that becomes a folder drops out of anything that copies root
*.py files plus a fixed list of packages, so the fixtures that build a partial
source tree now list utils, as do pyproject's packages.find, three check
scripts and the CI change classifier.
The _git() helper ran git with text=True but no encoding=, which the
footgun checker rejects (locale codec on Windows); pass encoding='utf-8',
errors='replace', and the same in the test file's git() helper.
pr_head() checked for the commit only before each fetch, so a head that
only the final fetch retrieved still resolved to "" (PR head unavailable).
Resolve it once after the loop instead.
Refs #128930
Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
A pull_request checkout is refs/pull/N/merge, whose first parent is main's
tip, so merge-base origin/main HEAD always succeeded and the gate could never
reject. The step now gets github.event.pull_request.head.sha, fails closed
when that commit cannot be resolved, and also rejects a head whose root
commits are not all already in main (a main-descended branch that merged an
unrelated history).
Fixes#128930
Co-authored-by: beardthelion <56458543+beardthelion@users.noreply.github.com>
update_cmd_force_stop now imports tools/process_registry.py (the left-behind
sweep) and gateway/host_topology.py (served homes), so a change to either can
break `hermes update` and must start e2e_upgrade (test_update_ci_routing).
`python -m hermes_cli.main update` from releases before update_cmd.py was split
out runs cmd_update/_cmd_update_impl as `__main__`, so in_historical_update()
did not see them and e.g. bc747001eec5's post-pull update_managed_uv() import
raised instead of handing off, leaving the update half-done. A `__main__` frame
now counts when its code was compiled from this checkout's hermes_cli/main.py;
the current tree's own entry points stay live code via the sentinel local.
The shim runtime tests discovered shims by parsing source (banned in tests).
The shim list is now data (tests/fixtures/retired_updater_shims.json, 63 shims,
generated from the former scan); scripts/ci/check_retired_shims_manifest.py runs
the AST scan as a repo-guards step and fails on drift or an empty scan.
The probe's stdout is appended to $GITHUB_OUTPUT, so a CR/LF in the
fetched generated_at, a skill's source key, or a JSON decode error
would start a new key=value line and could forge status=ok, silencing
the watchdog. Flatten those remote-derived values before formatting.
Fixes#108382
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.
The AGENTS.md chain cap is 30,600 so a chain at the cap still loads whole after the loader's per-file headers.
`from hermes_agent import <moved published module>` is no longer reported as a private import.
Code health pairs a module moved a second time with its last path, not the generated file at its first path.
The lint matched only tools.lazy_deps. The move gives the package one new name under hermes_agent,
so the lint drops that prefix before matching; this also holds in a tree whose MOVES does not list
tools/ yet (the commit before the move, a test fixture). The script stays stdlib-only.
boundary_lint, check_agents_md_size and the old-updater audit take a root that can be a fixture or
another checkout; they map paths through that tree's moves.py. resolve_in_tree reads a moved module
where it lives, not the forwarder at its old path (scouts 07, 08 and 12 each carried a copy of this).
boundary-lint reports targets under their original name, as its baseline keys them.