Commit Graph

3432 Commits

Author SHA1 Message Date
BearHuddleston
c7895b733d fix(release): keep an unreadable desktop attempt image from aborting the sequencer
631b9d18c9's stable-desktop recovery check read the attempt's -desktop image through
_version_digest, which raises on any registry error. A failed read there, with the pointer
and the slim alias current, aborted the whole production pass before it could plan anything
newer. Either image failing to read is now inconclusive (not behind), like the alias itself;
promote_stable still reads both strictly when it actually moves them.
2026-11-20 11:28:21 -06:00
BearHuddleston
f6afe23f13 fix(release): never move stable aliases whose owner cannot be read
9bf56ac5a9 counted an unreadable `stable` alias as current. When the head read and the
recovery read both fail, a stale desktop pointer then got the full advance, whose Docker
promotion can move a newer Docker-only release's aliases back. An unreadable alias now leaves
the owner unknown, and like a newer owner it gets only the desktop-only `finish`.

Production always has the `stable` alias, so "unreadable" is a registry error there. A
registry where the alias was never created gets no Docker promotion from recovery either,
as on main, where channel_head counted the desktop head as done in that case.
2026-11-20 11:28:21 -06:00
BearHuddleston
477f1bd187 fix(release): pick a stale stable pointer's repair by alias ownership too
631b9d18c9 checked alias ownership only when the pointer was current. With a stale or
missing pointer the pass returned the desktop head straight away, and plan() chose a full
advance because the head read matched it, which it can only do after a registry error
dropped a newer Docker-only release out of the head. That advance repeats the Docker
promotion and moves the aliases back to the older release.

_unfinished_desktop_head now returns the step itself. While a newer release owns the
aliases (it holds the channel head, or the alias carries its digest) a stale pointer gets
the desktop-only `finish`; otherwise a stale pointer or provably behind aliases get the
full `advance`.
2026-11-20 11:28:21 -06:00
BearHuddleston
7097e7eaa8 fix(release): judge stable alias recovery on ownership and the desktop variant
4e8b5fd31b's alias check probed the registry a second time and compared the slim `stable`
alias with the desktop head's digest. Two gaps:

- A registry error on the head probe drops the combined head back to the desktop release;
  if the second probe then succeeds with a newer Docker-only release's digest, that digest
  read as a stopped promotion and the pass moved the aliases back to the older release.
- promote_stable moves the slim aliases before the desktop ones, so a slim alias that
  carries the release says nothing about stable-desktop/latest-desktop.

The aliases now count as behind only when the alias read succeeds, its digest belongs to no
newer published release, and either the slim alias misses the head's digest or the
stable-desktop alias misses the attempt's desktop image (docker.stable_desktop_alias_behind).
An unreadable alias proves nothing and is left alone.
2026-11-20 11:28:21 -06:00
BearHuddleston
41d337f084 fix(release): finish an unfinished stable head's Docker step and repair it under a newer head
91fbd83fc8 re-advanced the desktop head only when its candidate pointer was wrong. Two cases
still read as done: the pointer PUT landed but its read-back failed, or the Docker promotion
itself failed, so the next pass saw a matching pointer and the Docker vX.Y.Z tag and
stable/latest aliases never moved. And with a newer release at the combined head the pass
refused outright, leaving the stale pointer for an operator.

While the desktop head is also the channel head, a Docker-carrying release whose stable alias
does not carry its digest now counts as unfinished too, and advances again through the normal
production advance. Under a newer head only the desktop advance repeats (a new `finish` step,
advance_stable alone), so that release's aliases stay where the newer release put them.
2026-11-20 11:28:21 -06:00
BearHuddleston
4e99fdec97 fix(release): refuse to prune when a new canary head has no retention pointer
The pruner compared the canary pointer with the protected canary head only when the pointer
existed, and found the head by the record name `canary`. The first canary after today's legacy
v<stable>+canary.<stamp> head has no pointer until its write lands, so if that write failed the
live canary's archive was protected by nothing but its age; and a canary channel bootstrapped
under another name read as no head at all, so every prune refused with no way to fix it.

The pruner now picks the protected channel the way publication does
(channel_releases.select_channel): the one listed record whose policy is canary-release,
refusing when two claim it. It reads that head whenever the record exists, refuses when a
canary.<stamp>-vX.Y.Z head has no pointer, and fails closed on an unreadable record or head
manifest. A legacy head with no pointer prunes as before.
2026-11-20 11:28:21 -06:00
BearHuddleston
804de4b266 fix(release): advance an unfinished stable head again, Docker aliases included
The pointer repair from 196d082b74 ran after the pass, against the combined publication head,
and called only advance_stable. Two gaps: production_advance moves the Docker vX.Y.Z tag and
stable/latest aliases after advance_stable, so a pointer write that failed after the head
moved also skipped them and the repair never ran them; and a newer Docker-only release could
become the combined head and hide the desktop head's stale pointer.

The pass now asks, before planning, whether the protected desktop head's candidate pointer
names it. If not, plan() advances that release again ahead of anything newer, through the
normal production advance (idempotent desktop advance, then the Docker promotion), so a
newer release can never run before it finishes. If a newer release already holds the head,
the pass refuses instead of moving that release's aliases back.
2026-11-20 11:28:21 -06:00
BearHuddleston
f20c23e065 refactor(release): tag release images with claim-tag again; drop the identity docker_tag
docker_tag() turned a retired vX.Y.Z+canary.<stamp> tag's `+` into `-`. Since canaries are
canary.<stamp>-vX.Y.Z claims it returns its input, yet admit still emitted it as a separate
docker-tag output that three stable-release.yml consumers read, with comments describing the
old conversion. The docker and publish-docker calls and the canary alias step take claim-tag
again, as they did on main, and the helper and output go.
2026-11-20 11:28:21 -06:00
BearHuddleston
1ebd9b864e test(termux): run build_deb.sh for its payload version instead of slicing its heredoc
The pinned-commit version test found an exact heredoc opener in build_deb.sh, cut its Python
body out and ran that fragment: a source-reading test (tests/AGENTS.md) that breaks on a
harmless shell refactor and still passes if the fragment sits in the wrong branch.

build_deb.sh now derives a tagged build's version once, through deb_version.py
--release-version, whether or not a commit is pinned; the heredoc keeps only the tagless
commit build's version_at read. It logs the payload version before its first post-version
gate. The tests run the real script against a throwaway git repo with docker, dpkg-deb and jq
stubbed, and stop at the missing --tui-product, so they see the version the stamp would carry
for each tag shape in both tag modes. Mutants caught: ${TAG#v}, the original ${TAG:1}, and
deriving the version only in tag mode.
2026-11-20 11:28:21 -06:00
BearHuddleston
aa68747abe refactor(release): fold the live Termux APT reader into r2
scripts/releases/r2_apt.py imported relative_artifact_path from r2 while r2.prune imported
live_pool_keys back from it, both through function-local imports, and it added a flat
<stem>_<topic>.py sibling the root AGENTS.md no longer allows. r2.prune is its only caller,
so the 40 lines move beside prune and the cycle is gone. The two module constants gain a
TERMUX_CANARY prefix so they read unambiguously in r2. No behaviour change.
2026-11-20 11:28:21 -06:00
BearHuddleston
e8d516cbf3 fix(release): recover a candidate pointer whose write failed after the head moved
publish_release now writes releases/<channel>/release-candidates.json only after the
protected head advances, so a failed pointer write leaves the head on the new release and
the pointer on the previous one. Nothing then repaired it: the sequencer's plan() treats a
published version at the head as done, and the canary's quiet-day _resume_canary returns as
soon as the head matches.

Stable: each production pass now compares the pointer with the archived candidate of the
release at the head and, when it differs or is missing, repeats that release's desktop
advance (advance_stable only; Docker aliases stay put). publish_release is idempotent once
the head is there, so the repeat ends at the pointer write. The stable pointer is the source
channel's update target and the next release's upgrade baseline.

Canary: the pointer's only reader is the R2 pruner, and _resume_canary runs without R2 write
credentials. The pruner now reads the protected canary head and refuses to prune while the
pointer names another canary, so a lagging pointer can no longer expose the live canary's
archive. A rerun of that canary's publish-canary job (or the next canary) rewrites it.
2026-11-20 11:28:21 -06:00
BearHuddleston
2513231c44 fix(release): harden canary Store identity and R2 pruner pointer validation 2026-11-20 11:28:21 -06:00
BearHuddleston
10491efa92 feat(release): keep non-gating Linux AppImage builds on canary Stable Release runs 2026-11-20 11:28:21 -06:00
BearHuddleston
e685402c5d fix(release): refuse resuming a canary claim with mismatched lanes or green policy 2026-11-20 11:28:21 -06:00
BearHuddleston
2cb2bed07e fix(release): refuse to roll Docker canary aliases back behind the live head 2026-11-20 11:28:21 -06:00
BearHuddleston
5d706890cd fix(release): write candidate retention pointers only after head promotion 2026-11-20 11:28:21 -06:00
Kevin Rajan
94dacafd8e fix(release): word the stale-canary refusal like the other stale refusals
The existing canary test matches the refusal with the case-sensitive
regex 'stale' (as the later feed/head checks word it), so the first
version's 'Stale canary publication ...' failed it before any pointer
assertion ran.

Red/green (local, py3.14): tests/scripts/test_release_channels.py 18
passed; with scripts/releases/channel_releases.py reverted to the PR head
the pointer assertion fails.

Refs: NousResearch/hermes-agent#142475
(cherry picked from commit 4d7049eaa22a96d6a68c331e8b74596e551bd1db)
2026-11-20 11:28:21 -06:00
Kevin Rajan
dbcd981789 fix(release): keep stale canary retries off the live retention pointer
Before overwriting the canary candidate pointer, compare the new claim's timestamp with the protected live head. A rejected older canary must never replace the retention pointer used by R2 pruning. Extend the existing end-to-end HTTP publisher regression to assert the pointer is unchanged after stale rejection.

Reported by alt-glitch in NousResearch/hermes-agent#152219.
Carrier work by ethernet8023 in NousResearch/hermes-agent#142475.
Counterexample identified by teknium1 in the carrier review.

(cherry picked from commit 2ffd4b1b05b533fb1dbfc3d5f3a04d4ac4128cfa)
2026-11-20 11:28:21 -06:00
ethernet
9a25b6a71d docs(release): clarify relaxed green policy still waits for suites
(cherry picked from commit ab34d83daecfa8794ba0860f0b02dd174de1563c)
2026-11-20 11:28:21 -06:00
ethernet
8789b42cb8 refactor(release): share Docker alias publication retries
(cherry picked from commit 79538b9efb2653ce3a526ad06a448c7ecfa42395)
2026-11-20 11:28:21 -06:00
ethernet
7064fc46a1 fix(release): retain packages referenced by live canary APT indices
(cherry picked from commit e524f7ec3fa0adf5d101a9a3be80e6ab09ecf679)
2026-11-20 11:28:21 -06:00
ethernet
302f080074 fix(release): advance pages from published legacy canaries
(cherry picked from commit cf6e20bd178fa8aaf3ff0c6cf4c31f2522a40f50)
2026-11-20 11:28:21 -06:00
ethernet
0c2ebe03af fix(release): canary Termux staging, stamp version, alias gating; one canary publisher
Review fixes for the canary-on-Stable-Release pipeline:

- Termux APT staging accepts a canary claim as its pool prefix
  (stage_apt_repo pool_subdir_suite): canary.<stamp>-vX.Y.Z stages
  hermes-canary, rc.N-vX.Y.Z stages hermes-stable, nothing else. Every default
  canary failed candidates-termux before this.
- build_deb.sh stamps the tag's release version on a pinned-commit build
  (release_version_for_tag) instead of the tag minus its first character.
- The canary Docker aliases move only after publish-canary succeeds, so they
  follow the claim's green policy and lanes like the other canary channels.
- One canary publisher: desktop-bundled-release.yml refuses release tags on a
  direct dispatch and loses its legacy publish-canary job; channel_releases
  accepts only the stable-release.yml controller for canary custody and always
  publishes the accepted candidate (the local-bytes path is gone).

Tests run the real boundaries: the workflow's own staging arguments into a real
stage_apt_repo run, the actual build_deb.sh version heredoc, a controller canary
advancing its head (narrowed claim refused, retry idempotent, next canary
advances, stale canary refused, stable pointer untouched), and the alias gate
with publish-canary held back.

[BearHuddleston: adapted to main 32dbc1dcda — kept #148651 desktop_targets without macos-intel/darwin-x64, kept Blacksmith runner/checkout (#157582), and updated #154545 test_tag_builds_summary.py after removing the legacy desktop-bundled-release publish-canary job]

(cherry picked from commit 8bee39d1b3626e67b68207b93b4fb266efb29693)
2026-11-20 11:28:21 -06:00
ethernet
1a211ae46e fix(release): canary prefix tags pass the isolated entrypoint, typecheck and checkout tests
- stable.py imports scripts.termux.deb_version lazily: release.py's isolated
  entrypoint copy carries scripts/releases alone (test_release_build_commit).
- msix-shared requireReleaseVersion keeps appIdentity.fileVersion a string.
- The protected-canary publication and checkout-source fixtures derive
  package versions from the tag with release_version/releaseTagVersion.

(cherry picked from commit f9d92eafd09f08e7651906146d914ec38df73144)
2026-11-20 11:28:21 -06:00
ethernet
e0bcf12dcc feat(release): canary tags are canary.<stamp>-vX.Y.Z claims with lanes and green policy
A canary tag now carries its kind as a prefix, canary.<UTC stamp>-v<stable>,
the same claim shape as a stable rc.N-v<stable>. It never matches v*, and it
is the canary's identity everywhere: GitHub prerelease, archive, stamped tag
and Docker image tag. The version it publishes stays <stable>+canary.<stamp>.
No installed canaries exist yet, so clients just switch to the new shape;
release tooling still reads the retired v<stable>+canary.<stamp> shape in
records published before (previous channel head, live macOS feed, pruning),
so the first new canary can replace them.

The tag message is now the canary's claim: the lanes it runs and whether a
red suite holds its publication. release.py --canary takes --only/--with/
--without (starting from every lane but the signed-package upgrade arms,
which a canary can never claim) and --require-green/--no-require-green
(default on; release refuses --no-require-green). Admission emits
require-green; publish-canary waits for acceptance when it is on, and
channel_releases custody re-requires acceptance (fail closed). The daily
scheduled canary passes --no-require-green; a manual dispatch defaults to
green. publish-canary needs the full desktop set the canary channel serves.

Tag-to-version derivation goes through one helper per language
(update_channel.release_version, msix-shared releaseVersion, desktop
releaseTagVersion, deb_version.py --release-version) instead of stripping a
leading v. Also fixes the Store-entrypoint test left stale by canary Store
packaging, and the canary git fixture's file:// remote on Windows.

[BearHuddleston: adapted to main 32dbc1dcda — preserved #154321 canary draft body cap and recovery tests, kept #148651 desktop_targets / omitted macos-intel, and updated #154545 test_linux_desktop_builds.py for canary.<stamp>-vX.Y.Z]

(cherry picked from commit c9e3831d3dad6965c7ddea3fa900a0ace0d45423)
2026-11-20 11:28:21 -06:00
ethernet
a572e89c46 refactor(release): drop the unused canary-to-canary upgrade planning
The canary no longer runs the signed-package upgrade arms, so the canary
baseline lookup and canary version tie-break in stable.py are dead; remove
them and their tests. The canary candidate pointer stays: the R2 pruner reads
it to keep the live canary.

(cherry picked from commit 86b272d6ad2dbc34472476077e1fb860c0c7ccc0)
2026-11-20 11:28:21 -06:00
ethernet
5e5591bac1 feat(release): canary skips signed-package upgrade arms; install-e2e covers old stable
The canary app (Hermes Canary) is its own package family, so no signed
package of it can upgrade a stable install, and an unsigned rehearsal cannot
drive App Installer or ShipIt either. lanes.CANARY now omits the upgrade lane
(transitions-* and *-packaged skip, and the gate expects that); install-e2e
still installs released stable tags and updates them to the canary commit.

[BearHuddleston: adapted to main 32dbc1dcda — omitted removed macos-intel/darwin-x64 references (#148622)]

(cherry picked from commit 16fb6a69d7c5f273edca203a42673f01fa9b93ca)
2026-11-20 11:28:21 -06:00
ethernet
667081be8e feat(release): canary runs the Stable Release pipeline with every lane
canary-release.yml now dispatches stable-release.yml on the canary tag, so a
canary runs exactly the stable job graph (CI, Docker, Nix, PM bundle, Termux,
Windows live, install/update E2E, bootstrap identity, every signed candidate
with smokes, signed-package upgrade acceptance) with every lane on, macOS
Intel and Termux included (lanes.CANARY). Nothing to keep in sync.

A canary differs only in policy:
- publish-canary (canary only) publishes the accepted candidate to the canary
  channels: feeds, Termux APT, GitHub prerelease, protected R2 head, canary
  upgrade baseline, canary Docker aliases. publish-bundles, the Store
  submission and the stable sequencer never run for a canary.
- publish-canary waits only for candidate-manifest (built + smoked); the
  other suites report red in the same run without holding it back.

The canary also builds and stages the Store bundle (Store-scheme version),
never submitted. Canary runs get their own concurrency group and are ignored
by the stable publication reconciler. The R2 pruner keeps the live canary's
archive and Termux pool however old.

[BearHuddleston: adapted to main 32dbc1dcda — omitted removed macos-intel/darwin-x64 references (#148622, #148651) and kept Blacksmith runner/checkout (#157582)]

(cherry picked from commit c6abe8e67fcfbdbd8a9177e976c5ced510a1e9d7)
2026-11-20 11:28:21 -06:00
Teknium
f998a982cb feat(ci): warn, never fail, naming each lost core name and the plugins' catalog records
Some checks failed
Deploy Site / deploy-vercel (push) Has been cancelled
Deploy Site / deploy-docs (push) Has been cancelled
Skills Index Freshness Check / check-freshness (push) Has been cancelled
Skills Index Freshness Check / check-catalog-cors (push) Has been cancelled
Docs Search Monitor / probe (push) Has been cancelled
Build Skills Index / build-index (push) Has been cancelled
Build Skills Index / trigger-deploy (push) Has been cancelled
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>
2026-11-20 08:06:29 -08:00
Teknium
509a92c0aa fix(ci): a module __getattr__ answers only the names it spells, plus guard tests
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>
2026-11-20 08:06:29 -08:00
Teknium
2f1e8f6010 fix(ci): keep a nested try's fallback inside the branch that holds it
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.
2026-11-20 08:06:29 -08:00
Teknium
04f2b88b70 fix(ci): judge a try's imports branch by branch, and re-read failed or moved index rows
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).
2026-11-20 08:06:29 -08:00
Teknium
d45aac385e feat(ci): name the pinned catalog plugins a core PR breaks, before it merges
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.
2026-11-20 08:06:29 -08:00
kshitijk4poor
0eeb0f4adf fix(vertex): send xhigh to Gemini 4 Hydrogen and Neon on Vertex too
The vertex profile never applied the gemini plugin's xhigh step, so xhigh/max/ultra
reached google/gemini-4-hydrogen and google/gemini-4-neon as thinking_level "high".
The model set and the step move to agent.reasoning_effort (next to
GEMINI4_THINKING_LEVELS) and both profiles call it; Argon and Carbon still cap at high.
2026-11-20 16:38:21 +05:30
Teknium
49b1b51375 docs(ci): rom-studio note also covers the kit status agent-link change
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>
2026-11-19 12:49:37 -08:00
Teknium
535049c202 docs(ci): rom-studio 0.3.0 allowlist note lists everything checked
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>
2026-11-19 12:49:37 -08:00
Teknium
fc6dbf30b5 ci(catalog): allow rom-studio 0.3.0's pinned poryscript download
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.
2026-11-19 10:59:15 -08:00
Teknium
aeb9189df5 fix(ci): the e2e lane still starts on sqlite_support.py changes after the alias
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.
2026-11-19 10:54:52 -08:00
Teknium
a44aca772e fix(ci): a folder named like an email is not a contributor mapping
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.
2026-11-19 10:49:56 -08:00
Brooklyn Nicholson
1605c3ee8c fix(ci): match contributor emails case-insensitively
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>
2026-11-19 10:49:56 -08:00
Teknium
bae361c3e5 ci(plugin-catalog): swarm-studio Godot row names the templates folder and the Homebrew route
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>
2026-11-19 10:37:52 -08:00
Teknium
2604b75092 ci(plugin-catalog): allow swarm-studio's pinned third-party downloads in the self-updater gate
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.
2026-11-19 10:37:52 -08:00
Maciej Lisiewski
bdc5ecd808 Merge pull request #157620 from NousResearch/salvage/154883-run-tests-named-account-store
fix(tests): keep faked-HOME test runs off the account's tool store
2026-11-19 14:30:16 +01:00
Maciej Lisiewski
cd60f7f25d fix(tests): refuse, with the right cause, a faked-HOME store path readlink cannot read
A failing readlink already refused the run, but no test pinned it (dropping the '|| return 1' let resolution continue from the link's parent), and the refusal blamed a link loop.
2026-11-19 13:05:24 +01:00
Maciej Lisiewski
5637797202 fix(tests): read link targets and store paths byte-exact on BSD readlink
macOS/FreeBSD readlink (stat.c) only appends its newline when the target
does not already end in one, so stripping one LF after $(...; printf x)
turned a link to 'x<newline>' into 'x' there: the macOS tests job failed
test_link_target_ending_in_a_newline_is_followed_as_named. Read the target
with readlink -n (GNU, BSD and busybox all take it) and strip only the
sentinel. The same $(...) capture dropped a resolved store's own final
newline in _avoid_account_stores; sentinel those too.

setup-hermes.sh stages its bootstrap uv into $HOME/.hermes/tools before pm
runs, so with that path linked to the account's store and HERMES_HOME
selecting another, the staging wrote into the account's store. Point
HERMES_RUNTIME_DIR at the store pm resolves in that case.

Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
2026-11-19 13:05:24 +01:00
BearHuddleston
b059196c59 docs(ci): fix inaccurate Linux diagnostic and glibc floor comments
- `scripts/render-builds-table.py`: drop "until smoke-tested" since
  `_UNLISTED_OS` hides Linux rows unconditionally.
- `.github/workflows/desktop-bundled-release.yml` and
  `scripts/bundles/glibc_floor.py`: name `glibc_floor.EXCEPTIONS` for the
  x64 CUDA and ROCm engines (GLIBC 2.38 / GLIBCXX 3.4.32) and state the
  glibc >= 2.38 requirement rather than Ubuntu 24.04+.

Review: https://github.com/NousResearch/hermes-agent/pull/154545#discussion_r4625655929
Review: https://github.com/NousResearch/hermes-agent/pull/154545#discussion_r4625655940
Review: https://github.com/NousResearch/hermes-agent/pull/154545#discussion_r4625655945
2026-11-19 02:35:54 -06:00
BearHuddleston
8c9be67bd5 fix(ci): verify x64 AppImage header and digest inside the CI acceptance worker
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.
2026-11-19 02:35:54 -06:00
BearHuddleston
39ddddb932 refactor(bundles): derive x64 pre-staged GPU tools from Package.minimum_glibc
`scripts/bundles/native.py::_tools_for_builder` and
`scripts/bundles/stage_x64_gpu.py` previously repeated the
`("llamacpp-cuda", "llamacpp-hip")` tuple already declared via
`Package.minimum_glibc` on `LlamaCppCuda` and `LlamaCppHip`.

Filter by `get_package(name).minimum_glibc.get(target)` in both places so
`Package.minimum_glibc` is the single declaration, and add a contract test
in `tests/scripts/test_bundle_glibc_floor.py` pinning `glibc_floor.EXCEPTIONS`
to `Package.minimum_glibc` while keeping `glibc_floor.py` stdlib-only.

Review: https://github.com/NousResearch/hermes-agent/pull/154545#discussion_r4625655955
2026-11-19 02:35:54 -06:00
BearHuddleston
9c15b7cf2c fix(ci): run the x64 floor desktop check with Chromium's sandbox
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
2026-11-19 02:35:54 -06:00
BearHuddleston
39c1fea47d fix(ci): select the Linux bundle userland outside the Actions shell field
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.
2026-11-19 02:35:54 -06:00