Review (Greptile P2 4729422888): indentation alone was not the guard for
plugin-controlled report text; every '::' is now broken up as well, so no
part of a printed check or warning can be parsed as a workflow command.
Review (Greptile P2 4729395304): the --json run kept only the failed check
names, so a capped pin's caution scan findings and private-import/Desktop
warnings never reached the reviewer. Each check and warning is printed, one
indented line each so plugin-controlled text cannot start a workflow command.
Review (Greptile P1 4729331907): skipping hermes plugins validate outright
for a pin capped below this core also skipped its file-based checks
(manifest, loadable entrypoint, install scanner, core overrides, private
imports, Desktop SDK use), and none of the other gates replaces them. For a
capped entry the gate now runs validate --json --install-deps and refuses
the entry when any check other than the capability probe (the one that
imports the pin on this core) fails, or when no report can be read.
`pinned-source-validate` ran `hermes plugins validate` for every changed
entry on the PR's own Hermes, even when the entry's own requires_hermes
excludes that Hermes. An entry can legitimately be capped below main: its
pin imports core modules a newer release dropped, and only the older Hermes
it names will ever install it. hermes-tag is the case: its pin imports
plugins.platforms.dingtalk, which left core with #159638. Loading that pin
on main can only fail.
The gate now reads requires_hermes through the isolated field reader. A
malformed value is refused the same way the structural validator refuses
it. When the spec excludes the running core (as an install by catalog name
compares it), the load step is skipped, with a ::notice and the reason on
the PASS line. Clone, reachability, confinement, self-updater, attestation
and payload gates still run on the pin, because older Hermes installs it.
The Feishu / Lark gateway platform and its feishu_doc / feishu_drive document-comment tools move to
NousResearch/hermes-labs-plugins (`feishu/`, history kept): built by Nous Research, not supported.
- Removed: plugins/platforms/feishu/**, tools/feishu_{doc_tool,drive_tool,lark}.py, the adapter's tests,
Platform.FEISHU, the hermes_cli/platforms.py row, toolsets feishu_doc / feishu_drive / hermes-feishu
and the hermes-gateway include, platform.feishu.* locale strings in every locale, env/config-key list
entries, the dashboard env fallback rows, the cron home-target / webhook deliver / startup allowlist /
/update allowlist / messaging order rows, the ACP kind-map tool names.
- Name-keyed core tables become PlatformEntry traits the plugin sets: binds_port_fn (port binding only in
webhook mode, was PORT_BINDING_CONDITIONAL_MODES), listen_port (dashboard topology readout),
thread_reply_anchor (reply-in-thread anchors for replies, progress and interim sends), opus_voice
(auto-TTS .ogg). gateway.platform_registry.registered_trait reads them.
- Migration: LEFT_CORE row `feishu` built with platform_in_use: env FEISHU_APP_ID + FEISHU_APP_SECRET
(core's EnvCred row) or a platforms.feishu block carrying app_id (core's is_connected), or the
feishu_doc / feishu_drive / hermes-feishu toolset selected elsewhere; plugins.disabled
platforms/feishu / feishu-platform is not use. secret_env/private_env keep the child-process strip set
identical to main (9 FEISHU_* names); legacy_toolsets keep a disabled hermes-feishu / hermes-gateway
disabling the tools; off_platforms derived.
- Telemetry: feishu_* tools and feishu_doc / feishu_drive / hermes-feishu toolsets are retired names.
- Docs: messaging/feishu.md (+ zh-Hans) is a short "moved to the Labs plugin" page; tool/toolset
references and the messaging index mark it as a plugin.
The bundled QQ Bot platform (plugins/platforms/qqbot) leaves core for the
`qqbot` plugin in NousResearch/hermes-labs-plugins. Its platform name, every
QQ_*/QQBOT_* env var, the platforms.qqbot keys and QQBOT_HOME_CHANNEL stay
the same; the plugin's PlatformEntry carries the env bridge, authz env names,
cron home env and the default allow_update_command.
Removed from core: the plugin dir and its tests (they moved to the plugin),
Platform.QQBOT (Platform("qqbot") resolves once the plugin registers), the
hermes-qqbot bundle and its hermes-gateway include, the platforms.py,
tools_config, dump, setup home-channel and web messaging rows, the QQ_*
OPTIONAL_ENV_VARS / _EXTRA_ENV_KEYS entries, the webhook deliver and startup
allowlist entries, /update's built-in list entry, the shipped
platform_toolsets row, the compat required-name rows for the deleted folder
and the qqbot boundary-baseline lines. Tests that exercised the deleted
adapter drop only those cases.
Kept: the shared own-policy helpers (comments only), cron's home-target order
and the QQ_HOME_CHANNEL legacy alias, doctor's rename warning, the QQ_ env
prefix alias for profile channel ownership, the session_rules route enum,
desktop/TUI source lists. hermes-qqbot stays a valid retired telemetry
toolset value for rows older releases saved.
hermes_cli/left_core_migration.py (1951 lines) was at the 2,000-line file cap with two approved
platform moves (QQ Bot, Feishu) still to add rows to it. Per the root AGENTS.md rule, the topic
becomes a folder: the facade (__init__.py) names each module's job and re-exports the public
surface in __all__; the code moves unchanged into homes, platform_use, feature_use, provider_use,
rows, hints, locks, notices and migrate. Topic modules import one another, never the facade.
Pure move: every top-level def/assign is AST-identical to the original except that hints and
migrate read the table as table.LEFT_CORE (rows imported as table), so one patch of
rows.LEFT_CORE reaches every reader. Private-name importers (default_plugins, catalog_platforms,
catalog_platform_listing) import from the owning module; tests patch where a name is looked up
(migrate._install_into, migrate._attempted, rows.LEFT_CORE, ...). The module path
hermes_cli.left_core_migration keeps working (it is the facade), so running updaters that import
migrate_all_homes from it are unaffected.
Dropping the *.yml glob made the CI structural job (which validates the
whole plugin-catalog/ directory) silently skip a .yml entry, so it still
passed admission and never loaded at runtime — the #160206 symptom.
Directory mode now collects *.yml again so validate_file rejects it with
"catalog entry files must use the .yaml extension".
plugins/google_meet and plugins/teams_pipeline leave core for the opt-in
official plugins google-meet and teams-pipeline (hermes-official-plugins).
- LEFT_CORE rows: a home whose plugins.enabled names the bundled key
(google_meet; teams_pipeline or teams-pipeline) and whose plugins.disabled
does not gets the catalog plugin installed and enabled on `hermes update`
and at agent/gateway start. Keys alone are not use (both were opt-in).
The old keys stay aliases (plugin_key), so pinned lists keep working.
- Core's by-name wiring of the pipeline is gone (gateway/run.py
_teams_pipeline_plugin_enabled / _wire_teams_pipeline_runtime and the
runner fields): the plugin binds itself to the msgraph_webhook adapter
through ctx.register_platform_handler, which msgraph_webhook.connect()
already runs inside the owning profile's scope.
- The Teams platform's summary writer no longer imports another plugin: it
takes a graph_client_factory (the pipeline passes its Graph client) and,
without one, Graph delivery fails with a message naming the plugin while
incoming-webhook delivery keeps working.
- The google-meet extra (playwright, websockets) is removed; uv.lock drops
playwright, pyee and greenlet. nix checks use the mistral group instead.
- Profile export keeps excluding teams_pipeline_store.json and
workspace/meetings/node_token.json: no plugin-declared secret-file seam
exists and migrated homes still hold those stores.
- Docs (en + zh-Hans) point at the catalog plugins.
Weixin (personal WeChat via iLink) now ships as the `weixin` plugin in
NousResearch/hermes-official-plugins (official, installed by default). The
platform name, WEIXIN_* env vars and platforms.weixin config keys are
unchanged; Platform("weixin") resolves once the plugin registers it.
Removed: plugins/platforms/weixin/**, the four weixin-only test files,
Platform.WEIXIN and its PLATFORM_TOKEN_ENV_NAMES row, the hermes_cli/platforms
row, the hermes-weixin bundle and its hermes-gateway include, the
platform.weixin.voice_as_attachment locale strings, the WEIXIN_* env/config-key
list entries (config, dump, run, run_startup, webhook_targets, cron delivery,
dashboard order/env fallbacks, TUI source list), the weixin special cases in
gateway/outbound/send.py (.env pconfig synthesis, WEIXIN_HOME_CHANNEL read,
weixin-first standalone route; the plugin's EnvCred env_overrides with
home=WEIXIN_HOME_CHANNEL and its StandaloneSendPolicy cover them), the three
plugins/platforms/weixin rows in hermes_agent/compat/required_names.py, and the
weixin boundary-baseline lines. Docs: weixin.md (+ zh-Hans) is a short
moved-to-plugin page; messaging index and toolset references mark it a plugin.
Kept: session_rules/route_entries.Platform.WEIXIN (no plugin lookup there;
YUANBAO stayed too), hermes_cli/profiles.py weixin/accounts export path (the
plugin writes the same dir), Desktop references, shared helpers (comments
only). Telemetry: hermes-weixin is a retired toolset name.
The WEIXIN_* child-env strip set shrinks with the config.py entries; the
LEFT_CORE row's secret_env/private_env restores it (tests/tools/
test_local_env_blocklist.py and the MCP identity test stay red until then).
Both WeCom platforms (AI Bot `wecom`, self-built-app `wecom_callback`) move to
NousResearch/hermes-labs-plugins `wecom/`. Two LEFT_CORE rows (one per
platform, one shared plugin, installed once) whose platform_in_use predicates
replicate core's enable gates per mode. Stacked on the DingTalk removal
(#159638): the platform lists both PRs edit are resolved once here.
Folded from the earlier branch (one commit per step, in order):
331094ca15a3 Teknium test(gateway): a named profile's port-binder is served only on a default listener, live reconcile too
The live reconcile builds a named profile's platforms through the same prepare step as startup, so the
"not served" refusal holds there as well: a LINE secondary with neither api_server nor webhook on the
default stays unstarted and names the remedy instead of reading as connected. The two LINE named-profile
reconcile tests now give the default a webhook listener, so their LINE is served at /p/b/ as in a real
setup; their assertions are unchanged.
bedc93176b93 Teknium fix(left-core): off-platforms derive from the LEFT_CORE rows; left-core routes name the install
Same hunk as the QQ Bot (#159640) and Feishu (#159651) PRs, so merge order cannot leave a stale entry.
- A row whose tools lived in its own hermes-<platform> bundle only (Yuanbao) sets own_platform_only;
_derive_off_platforms fills off_platforms with every platform core knows plus every platform a
LEFT_CORE row moved out. The hand list _YUANBAO_OFF_PLATFORMS (which this PR had extended with
wecom/wecom_callback) is gone. The WeCom rows carry no toolsets (hermes-wecom and
hermes-wecom-callback bundled core tools only), so they need no off-platforms.
- Webhook routes: is_known_platform accepts any platform a LEFT_CORE row moved out, so a saved wecom or
wecom_callback route stays loaded before a secondary profile's plugin registers; without the plugin
the send fails naming the install.
- Cron: a deliver route naming a left-core platform whose plugin is not loaded reports the install
command (delivery error and preflight). tests/cron/test_cron_left_core_platform_route.py runs for
wecom and wecom_callback.
05d04a49ccc3 Teknium refactor(wecom): drop the one-install-per-home copy; the installer-race PR carries it generically
296e4a152f99 Teknium fix(gateway): a secondary port-binder with no default listener is not served, not "connected"
Under multiplex a secondary profile's port-binding adapter (WeCom callback, LINE, SMS, Teams, ...)
binds nothing: its app is published for /p/<profile>/ on the default profile's api_server or
webhook listener. With neither running on the default, connect() still returned True and the
runner logged "✓ wecom_callback connected (profile: b)" while nothing listened anywhere.
- Runner: such an adapter is not started; it is stamped `<profile>:<platform>` disabled with
error_code multiplex_no_shared_listener and a WARNING naming the remedy.
- Migration preflight: a secondary whose own gateway serves a port-binder today is refused when
the default enables neither listener (it would be served nowhere after the fold); a secondary
with no gateway gets the same text as a notice.
- bind_listener publishes the port it actually bound (`listener_base`); the dashboard topology
reads that instead of resolving a plugin platform's listen_port in the profile's plugin
registry, so a parked or cold profile's callback port is reported and no deferred loader runs.
26cde0b03cdc Teknium refactor(wecom): WeCom moves to the Hermes Labs wecom plugin, opt-in
WeCom is now a Hermes Labs plugin (NousResearch/hermes-labs-plugins), not an
official default one. Only homes that used WeCom get it installed, once; a new
home installs nothing.
- Both LEFT_CORE rows (bot and callback) carry the labs notice, like Yuanbao
and DingTalk, merged with the plugins.disabled 'wecom' sentence.
- Docs pages say "moved to the wecom Hermes Labs plugin" with the labs
warning (en + zh-Hans); no default-install wording is left.
- The one-automatic-install-per-plugin seam between default_plugins and the
left-core migration stays: it is general (any plugin that is both a catalog
default and a LEFT_CORE row) and now has its tests in test_default_plugins
with a stand-in plugin instead of the wecom-named ones.
9c82896ffee9 Teknium fix(wecom): migration preflight and dashboard read plugin capabilities in the owning profile
- platform_serves_profile_prefix(value, home) reads the adapter class in the
owning profile's plugin scope, like platform_binds_port: a port-binding
plugin only a secondary installed is a URL-change notice, not a blocker.
- A parked profile's plugins are never discovered for either check, nor for the
dashboard's port readout (read-only probe).
deb0661c69ea Teknium fix(wecom): review findings on the core removal
- One automatic install per plugin across both installers: left-core
`_pending` skips a plugin `_default_plugins_installed` records, and
default_plugins skips one `_left_core_installed` records, so a removed
WeCom stays removed whichever ran first.
- `listen_port` is read in the owning profile's plugin scope: a multiplexed
secondary (shared-listener routing), migration preflight (per profile home)
and the dashboard topology (discovers that home's plugins; preflight never
does, a parked profile's plugins must not run here).
- `hermes-wecom-callback` keeps resolving: a `hermes-<a-b>` bundle falls back
to platform `a_b`, and toolset validation accepts it.
- StandaloneSendPolicy.media_via_adapter moves after reply_file_over so
positional callers keep their meaning.
- cron home-target priority keeps wecom (the plugin platform keeps it).
- `_BUNDLED_ENV_SIBLINGS` removed with its readers' prefix branch.
c3ec8edb3cc4 Teknium refactor(wecom): WeCom leaves core for the official wecom plugin
Both WeCom platforms (AI Bot `wecom`, self-built-app `wecom_callback`) move to
NousResearch/hermes-official-plugins `wecom/`, installed by default on every
home (catalog `default: true`). Existing users get it automatically: two
LEFT_CORE rows (one per platform, one shared plugin, installed once) whose
platform_in_use predicates replicate core's enable gates per mode.
Generic seams added for the plugin, never a name check left in core:
- PlatformEntry.listen_port: a plugin platform that binds a host port
(platform_binds_port, multiplex shared listener, migration blockers,
dashboard topology). Replaces the wecom_callback rows.
- StandaloneSendPolicy.media_via_adapter: send_message media through the live
adapter route. Replaces the _CHUNKED_ROUTES["wecom"] row.
- cron: a registered plugin platform without a cron env var (home channel from
config.yaml only) is a valid delivery target. Replaces the wecom_callback row.
Child-env strip set unchanged: _ADAPTER_SECRET_ENV also carries the
left-core platform rows' secret_env.
DingTalk (Stream Mode adapter, AI Cards, the QR device-flow login in
hermes_cli/dingtalk_auth.py) now ships as the `dingtalk` plugin in
NousResearch/hermes-labs-plugins: built by Nous Research, not supported.
Same platform name, DINGTALK_* env vars and platforms.dingtalk keys.
Removed: plugins/platforms/dingtalk/**, hermes_cli/dingtalk_auth.py and
its tests, Platform.DINGTALK, the hermes_cli/platforms.py row, the
hermes-dingtalk toolset and its hermes-gateway include, the dingtalk PM
extra (+ uv.lock, nix groups), the platform.dingtalk.emotion locale
strings, builtin-list entries (update allowlist, allowlist env platforms,
webhook/cron deliver sets, dump, dashboard env rows) and the shim rows
for a folder that no longer exists. Comments that named DingTalk as a
core adapter now describe the capability flag instead; no core code
branched on the name. Docs: messaging/dingtalk.md (+ zh-Hans) is a
"moved to the Labs plugin" page.
Kept: DINGTALK_CLIENT_ID/SECRET on the hermes-owned env list (a plugin
manifest cannot claim them), tip t159 (tips are numbered contiguously),
the desktop/TUI session-source names (the plugin keeps the platform name).
hermes-dingtalk stays valid as a retired telemetry toolset name.
Nobody took over NousResearch/hermes-plugin-byterover or hermes-plugin-retaindb by the
Oct 15 2026 deadline (D12), so both bundled providers are deleted instead of moved to the
catalog.
- Delete plugins/memory/byterover/, plugins/memory/retaindb/ and the tests that only
exercised them (provider, multiplex contract, thread-profile and identity-scope files whose
every case was one of the two; the retaindb secret-scope pair; the two bundled-precedence
tests that used byterover as the bundled sample).
- memory_provider_migration: a `_REMOVED` name -> label table. A home whose memory.provider
names one gets "<Label> was removed from Hermes because no one took over maintaining it.
External memory is off; run `hermes memory setup` to choose another provider." at agent
start (CLI, Desktop notice, chat platform first reply), on `hermes update`, in
`hermes memory status`, `hermes memory setup <name>` and `hermes doctor`. No catalog lookup
and no install for those names; memory.provider is never rewritten. Both names leave
_LEFT_CORE (no unattended install consent for a plugin that does not exist).
- Drop RETAINDB_API_KEY / RETAINDB_BASE_URL / BRV_API_KEY from OPTIONAL_ENV_VARS, the
"Bundled providers" help line, ~/.brv-cli/bin from the memory-setup PATH, the two
boundary-lint baseline lines, and the docs (EN + zh-Hans).
- Kept: agent/redact.py's retaindb_/brv_ key patterns (a leaked key is still a secret).
The empty `honcho: {}` config root was already removed on main (6933155eaf).
render() hands the child HOME as tempfile returns it, while the child
masks the resolved home. Where the temp dir sits behind a symlink (on
macOS both /tmp and $TMPDIR do), prompt text built from the unresolved
HOME is left unmasked, so the render never matches the committed
snapshot.
Resolve the temp dir once in render() so both sides use one spelling.
(cherry picked from commit 982d5ddbf686c3721d17df5cb04de0e39be57608)
Addresses Greptile review feedback and the macOS CI test failure on PR #160796:
- pm/plugin_eviction.py: keep the full fitting package-declaring plugin set in _EvictingUpdate.kept and derive workspace members via select_workspace_members() across the full proposed set (enabled + statically rejoining + retried plugins) at each trial and commit, fingerprinting against the surviving package-declaring baseline so retried plugins cannot drop core-satisfied enabled constraints.
- pm/plugin_declarations.py & scripts/ci/catalog_default_plugin_lint.py: introduce WorkspaceMembershipAssessment + assess_workspace_membership() as the single source of truth, derive needs_workspace_member() directly from it, and move catalog platform sampling and rebuild warning guidance into scripts/ci/catalog_default_plugin_lint.py.
- tests/ci/test_catalog_default_plugin_rebuild_lint.py: mark the subprocess tests that invoke catalog_validate_pinned_entries.py (GNU timeout/grep/xargs) as platforms('linux') to match test_plugin_catalog_ci_confinement.py, while keeping unit tests and GHA escape tests cross-platform.
The script is a by-hand author build step that regenerates desktop/plugin.js;
Hermes never runs it. Row pinned to the reviewed sha and file hash (PR #160009).
channelBuildRequest re-ran the authoritative Python validator (a fresh
interpreter importing hermes_cli.release_channels and
scripts.bundles.desktop_prepare) on every call, including repeated calls with
byte-identical request JSON. verifyBundleStamp admits the channel request on
each call, so the tests-js "channel smoke binds the complete admitted request"
test started 59 Python interpreters; on a loaded runner that alone passed its
15 s budget (CI run 45707403899: 17.2 s, timed out on a PR with no JS changes).
Remember the exact (interpreter, request bytes) pairs the validator accepted
in this process and skip only those repeats. Rejections are never cached, and
every distinct request (and every fresh CLI process) is still validated.
Measured locally, tests-js/bundle-smoke-metadata.test.mjs, channel smoke test:
idle: 3426 ms -> 811 ms
taskset -c 0 + 4 cpu0 spinners: 16705-18642 ms (timeout) -> 3708 ms
The new contract test proves one validator run per distinct accepted request
and one per rejected attempt; it fails on the base (2 runs for 2 identical
admissions).
Conflict:
- scripts/bundles/payload.py: main (79c00f3aa2, 1b39ecabee) moved the git
archive call out of snapshot() into _write_git_archive(). That lets it
archive scripts/whatsapp-bridge back in after the exclude, and it adds a
timeout. This PR (fea697d62c) had added -c core.autocrlf=false
-c core.eol=lf to the old inline call, so that a Windows builder's
autocrlf doesn't rewrite the payload's bytes. Main's snapshot() body is
taken as is, and the PR's flags and comment move into _write_git_archive().
That also covers main's new runtime-tree archive, which ships to the same
payload.
Auto-merged without conflict: scripts/render-builds-table.py (the PR's
shutil.which("gh") lookup survives main's rewrite and still feeds both
gh calls), tests/ci/test_stable_release_graph.py,
tests/scripts/test_bundle_payload.py, tests/scripts/test_release_artifacts.py
and tests/scripts/test_render_builds_publication.py. Every line the PR added
in those files is present in the merge.
_verify_macos_dmg returned early when the root held neither a DMG nor a
*-mac.yml, so a tagged, channel or signedDmg commit-claim record whose
root carried only the update ZIP passed with no outer DMG check at all.
The workflow's own guards (the feed rename's test -s, the commit-claim
DMG count) keep that shape out of CI today, but the recorder is the gate
publish trusts, so it now fails closed on its own inputs: whenever the
outer check applies, exactly one *-mac-<arch>.dmg must be present.
The feed stays required only for tagged releases. Channel builds write
latest-mac.yml, but their staging step never stages or publishes a feed,
so requiring one would gate on a file nothing downstream reads; a feed
that is present is still checked.
The existing ZIP-only fixtures gain the DMG, blockmap and (tagged) feed a
real build produces. _write_mac_feed now streams its hashes, since the
Squirrel-limit fixture is a sparse 1 GiB ZIP.
Address CI failure and validated review findings on outer macOS DMG
signing, notarization, recording, and smoke verification:
- Update tests/ci/test_protected_canary_publication.py's darwin transport
fixture to write a real gzipped .dmg.blockmap and parse_mac_feed-valid
canary-mac.yml matching the recorded ZIP and DMG bytes.
- Reuse the exact certificate identity and keychain selected for the .app
by recording them in apps/desktop/scripts/mac-sign.mjs (getAppSigningResult)
instead of re-querying security find-identity in notarize-dmg.mjs.
- Share one combined 300-minute notarization budget across afterSign and
notarize-dmg.mjs (with a 15-minute reserve for verification/metadata) so
DMG waiting cannot outlast the 330-minute CI step.
- Require .dmg.blockmap presence and validate tagged *-mac.yml feeds via
parse_mac_feed (exact ZIP + single DMG entries) in
scripts/bundles/release_artifacts.py, keeping the no-feed path explicit
for commit and channel builds.
- Align commit-claim outer DMG verification across release_artifacts.py
and tests/install/macos-bundle-smoke.sh via a sealed signedDmg: true
field in darwin bundled install-stamp.json: releases, canaries,
channels, and signedDmg commit claims enforce outer DMG verification,
while older pre-PR and legacy commit claims still verify the inner .app.
List hermes_platform/resolver/git.py alongside resolver/core.py in _UPDATE_DEPENDENCIES so changes to the macOS CLT git guard route to the upgrade suite.
The Solstice transport imported three core internals: the SSE event iterator and the
bounded streaming error-body reader from the native Gemini adapter, and the model-id
prefix rule. The plugin guide allows only published names, ctx methods or discovery,
and the lint baseline carried the three as exceptions.
The model-id rule now comes from its published home, agent.reasoning_effort. The two
stream helpers come from the gemini plugin's own client module, found the same way as
its interactions wire (the package the registered gemini profile was loaded from), so
the transport uses exactly the helpers the gemini client streams with. Their baseline
lines are gone. The base client and its error type stay as imported on main: Solstice
subclasses the client at import and raises the error when no gemini plugin is loaded.
The Solstice client turned long decode off through three class flags on the
gemini provider's GeminiClient (LONG_DECODE, SAMPLING_PARAMS,
REQUIRE_COMPLETED_STREAM). It capped max_tokens before the shared request
builder ran, so the builder still decided whether the request was stored, and
the gemini continuation loop carried Solstice-only branches.
GeminiClient is back to its pre-Solstice code path. SolsticeClient now
subclasses GeminiNativeClient and has its own single-request path: it builds
the request with the shared Interactions builder, caps the final
max_output_tokens at one request's (65536), forces store: false on the built
request, sends one request and reads one stream with no checkpoint, resume or
hop logic. A stream that ends before interaction.completed still raises
GeminiAPIError; temperature/top_p are still dropped; URL, headers, timeout
and the key-guidance-free Interactions error mapper are unchanged.
Adds a test that a request the shared builder would store (a 262144 cap and a
long-decode budget) still goes out with store: false and a 65536 cap.
Solstice called the v1alpha generateContentPerUserQuota methods. It now
posts every request to the per-user-quota Interactions method on v1beta
(interactions:createPerUserQuota) with store: false. This brings thought
summaries, per-request thinking levels and signed thought-step replay.
SolsticeClient now subclasses the gemini plugin's GeminiClient and always
uses its Interactions wire, through new hooks whose defaults keep the
gemini provider unchanged:
- every request posts to <host>/v1beta/interactions:createPerUserQuota,
replacing any stored version segment (credential rows minted earlier
hold the v1alpha base);
- long decode is off: one request capped at 65536 output tokens, never
stored and never continued, because this method rejects stored
interactions;
- temperature and top_p are never sent;
- headers are the bearer token, content type and a hermes-agent
User-Agent only, never an API key, user-project or DPoP header;
- requests default to a 3600 s read timeout; an explicit per-call timeout
still wins;
- a stream that ends before interaction.completed raises instead of
returning the partial turn, because nothing stored can resume it;
- HTTP errors go through the Interactions error mapper without API-key
remedies.
The Solstice profile imported agent.reasoning_effort.gemini_top_thinking_level and the private
agent.transports.chat_completions._build_gemini_thinking_config, neither on the published plugin API;
the boundary-lint baseline carried both as exceptions.
Switch Solstice to agent.reasoning_effort.gemini_thinking_config, published for provider plugins in
the preceding seam commit, and drop its two baseline entries. The helper keys the mapping on the id
the native client sends, so a gemini/ or google/ prefixed model id keeps its effort too.
test_solstice_published_api.py checks that the profile imports only published names and sends what
the helper returns.
The Solstice profile had no build_extra_body, so reasoning fell through to
the generic extra_body.reasoning, which the native Gemini client drops. No
thinkingConfig ever went on the wire: the title pass's thinking-off never
applied, Gemini 4 Neon thought at its default level, and that thinking used
up the 512-token title cap in about two of three calls, leaving an empty
reply and the truncated first-message title. Main-turn reasoning efforts
were ignored the same way.
Translate reasoning to native thinking_config with the shared Gemini helpers,
as the gemini and vertex profiles do. Log a warning when a title reply comes
back empty at the output cap, which was previously silent.
The boundary-lint baseline records the profile's imports of the shared Gemini thinking helpers
(gemini_top_thinking_level, _build_gemini_thinking_config), which the gemini and vertex profiles
also import, so Solstice maps efforts the same way.
A sealed snapshot still puts the WhatsApp bridge back when the revision has it. Fixture repos without that path were failing git archive, and the new archive helper had no timeout.
Excluding scripts/ also dropped scripts/whatsapp-bridge, so Store and desktop builds parked WhatsApp. Archive that runtime tree back in after the exclude.
34e19902d0's help named the bare `python -m scripts.releases.sequencer`
command. Run directly, that skips the workflow's stable-release lock. The
help now names the Stable Release Publication workflow.
537e99ed6e refused the stable role after parsing, so --help still offered
`stable` as a choice. The role now accepts only `canary`, and its help
says stable publication runs only through the Stable Release Publication
sequencer. `stable` still exits 2 before publish_release
(test_channel_releases_cli_publishes_canary_and_refuses_stable).
When the stable page already described a newer release, b1469d1641 left
it in place but still read it back through the public origin. If the
public copy was still catching up, the read-back failed after the feeds
and DMG alias had moved and before the head advanced, over a page this
promotion never wrote.
_check_stable_page_state now returns None for the page bytes in that
case. publish_page then neither writes nor reads back. A page this
promotion writes, or finds already in place, is still verified. In
test_stable_promotion_rejects_stale_order_for_dmg_and_page the
page-ahead case now serves a stale public page; it failed on 86ba6e6244
with "Channel read-back differs" and passes now.
`python -m scripts.releases.channel_releases stable` called
publish_release("stable-release") directly. That skipped advance_stable's
check of the candidate digest against the final release receipt and ran
outside the stable-release concurrency group. It reached the same stable
feeds, and with this PR the DMG alias and downloads page, that
ff616309d5 closed off in the release_artifacts CLI. No workflow, test or
doc uses that role; stable-release.yml calls only `channel_releases
canary`.
The CLI now refuses `stable` with the reason (exit 2) and publishes
canary as before. test_channel_releases_cli_publishes_canary_and_refuses_stable
did not raise on f4785e7bee and does now.
b1469d1641 left the stable downloads page alone whenever supersedes()
said the promoted tag could not replace it. supersedes() also says no
when the page at the stable key records a canary build, so that wrong
page was kept, with only a warning, while the stable head advanced.
The skip now applies only to a newer stable release, the renderer's
page-ahead case. A canary marker at the stable key fails closed before
any write. test_stable_promotion_refuses_a_canary_page_at_the_stable_key
did not raise on a906c2b033 and does now.
copy_source kept whatever ETag the source HEAD returned, and copy_object
sent x-amz-copy-source-if-match only when there was one. A HEAD without
an ETag therefore made the copy unconditional, and a same-size
replacement of the source would pass the destination's size check.
copy_source now refuses a source with no ETag. CopySource.etag is always
set, and copy_object always sends the condition. The no-ETag case in
test_copy_object_sends_signed_server_side_copy_and_verifies_destination
did not raise on b1469d1641 and does now.
The stable downloads page has a second writer on main: render-builds-table
in stable-release.yml's `complete` step renders a full-desktop release's
page before the ordered publication pass runs. If an older published
release's advance was still pending, that step put the page ahead of it.
The sequencer advances oldest first, so StableDownloads.prepare for the
older release then refused with "Refusing to move the stable downloads
page backward", on every rerun. Since the standalone CLI no longer
promotes stable, nothing could clear it.
Feed order is checked before promotion, so a page describing a newer
release can only be that renderer's. _check_stable_page_state now leaves
it as it is with a warning, as the renderer's own write_channel_page does,
and returns the bytes that should be live plus the write conditions (None:
no write). The older advance moves the feeds and the DMG alias, and the
public read-back checks the page that is actually live. The page is still
never moved backward.
In test_stable_promotion_rejects_stale_order_for_dmg_and_page, the
page-only-ahead case raised on 274bc33a78 and now promotes the older
release while leaving the newer page alone. stable-releases.md no longer
says the page changes only with promotion.
Sign, notarize, staple, and Gatekeeper-verify the outer macOS .dmg
container in an electron-builder artifactBuildCompleted hook while
keeping inner .app notarization (afterSign) intact for Squirrel.Mac .zip
updates.
- Reuse notarize.mjs auth resolution and 4h LOST_CONTACT / CloudKit
retry logic in apps/desktop/scripts/notarize-dmg.mjs, signing the
outer .dmg with Developer ID Application + --timestamp (which
dmg-builder's built-in dmg.sign omits) using the packager's active
codeSigningInfo keychain.
- Verify codesign, stapler validate (with LOST_CONTACT retries), and
spctl -a -vv -t open --context context:primary-signature, then rebuild
.dmg.blockmap and update event.updateInfo before artifactCreated fires
so PublishManager writes post-staple sha512/size to *-mac.yml.
- Enforce outer DMG codesign, team match, .dmg.blockmap size, and
*-mac.yml consistency in scripts/bundles/release_artifacts.py, and
verify outer DMG signature, stapler ticket, Gatekeeper policy, and
team match before mounting in tests/install/macos-bundle-smoke.sh.
StableDownloads.prepare HEADed the source DMG and compared its size, but
the 5 GiB single-copy limit was applied only inside copy_object, which
ran after finalize had moved the macOS feed. A DMG over the limit would
stop promotion with the feed already pointing at the new release.
copy_object also HEADed the source again and copied against that fresh
ETag rather than the object prepare had checked.
r2.copy_source now runs every source check once: the path, the
single-copy limit, existence and receipt size. It returns a CopySource
holding the key, size and ETag. prepare calls it before any write, and
copy_object takes the CopySource and copies on its ETag, so a source
that changed after the check fails with 412 instead of being copied.
With the limit below the staged DMG's size, the new stable promotion
test fails on c1494b2ff2 (feed PUTs were sent before the error) and
passes now.
python -m scripts.bundles.release_artifacts promote checked the pinned
candidate digest but neither required the published release nor ran
inside the stable-release concurrency group. A manual replay could
therefore pass the stable DMG alias's order check and then overwrite a
newer alias that a concurrent controller promotion had just copied. R2's
CopyObject takes no destination If-Match, so the copy itself cannot be a
compare-and-swap. Promoting a staged draft needed no race at all.
The CLI now refuses a stable candidate, payload tag or attempt ref,
before it reads anything. Stable promotion runs only through the Stable
Release Publication sequencer (channel_releases.advance_stable ->
publish_release -> promote_stable_feeds), which already requires the
published release and serializes every stable writer. Canary candidates
still promote through the CLI. The renderer harness test now promotes
through promote_stable_feeds, as the sequencer does, instead of the CLI.
stable-releases.md says only the controller promotes stable, and that a
partial publication is repaired by running Stable Release Publication
again.
r2.read_object, added for StableDownloads.prepare, repeated the scoped,
authenticated GET that R2ChannelStore.get already makes: it returns the
raw bytes and ETag, None on 404, and refuses a response without an ETag.
prepare now reads releases/stable/index.html through R2ChannelStore.get,
the same reader the protected channel records use before their ETag CAS
writes, and read_object is gone. r2.get_object is left as it is: it
returns text and maps errors differently for the pruner and handoff.
render-builds-table.py imported recorded_build only so three tests could
reach it through the script after it moved to downloads_page.py, and it
still imported smoke_rows, which nothing in the script uses. Both imports
are gone; test_render_builds_binding, test_render_builds_publication and
test_canary_page_history import recorded_build from downloads_page.