Repository navigation
fix(models): model pickers wait for or lose models while the catalog rebuilds - #173585
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
442a412 to
62029c9
Compare
|
Codex review: needs maintainer review before merge. What this changesKeeps unchanged published models visible during catalog rebuilds while promptly hiding providers whose relevant settings or credentials changed. Example: A picker has listed openai/gpt-5.4 when replacement catalog discovery stops answering.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR addresses a current catalog-rebuild failure, resolves the prior findings, and has no remaining actionable review findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway metadata lifecycle projects published catalog, configuration, and authentication facts into model-list responses consumed by pickers. flowchart TD
A[Configuration and auth changes] --> B[Catalog lifecycle owner]
B --> C[Published catalog]
C --> D[Metadata model-list projection]
A --> E[Retained provider eligibility]
D --> E
E --> F[Models list RPC]
F --> G[Model pickers]
Technical reviewBest possible solution: Retain eligible published responses within the existing metadata lifecycle while the catalog owner rebuilds and reacquires provisional providers. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the replacement wait and retired-owner rejection, supported by the supplied held-discovery regression and Gateway comparison; no target code was executed during this review. Is this the best way to solve the issue? The change uses the existing metadata and catalog owners, bounds retained request variants, reuses configured-model visibility dependencies, and preserves credential and final-response authority checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fe92b8e0bd20. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +212, Tests +197, Other +1. Total +410 across 11 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed October 15, 2026, 10:31 PM ET / October 16, 2026, 02:31 UTC (Revision 3). |
…g a retained list
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Landed in 204ff97.
|
…rebuilds (openclaw#173585) ## What Problem This Solves Fixes: model pickers wait for, fail on, or briefly lose models while the Gateway rebuilds its model catalog after a settings change, sign-in, sign-out, key removal or plugin reload. ## User Impact `models.list` now answers from the last published list while the catalog owner rebuilds, instead of waiting for the replacement owner or failing with "Chat metadata access changed while preparing its metadata". A provider whose config, credentials, configured models or owning plugin changed is removed from that list at once and returns when the new catalog has it. Additions may appear late; removals are never shown. Remaining limit (not fixed here): during a reload, synchronous plugin metadata rescans still block the Gateway main thread for 0.3–2 s, so any RPC (including a trivial `last-heartbeat`) is slow in that window. Tracked as a separate follow-up. ## Why This Change Was Made Two waits sat on the read path: - `chat-metadata-runtime.ts` `readCurrent` awaited the pending refresh, which awaits the model-runtime replacement gate. Added in openclaw#170805 to stop failures for healthy agents: "The existing model-runtime publication barrier owns replacement readiness; metadata follows it rather than constructing partial facts ahead of its commit." That PR states latency was not benchmarked. - `server-model-catalog.ts` `readPreparedGatewayModelCatalogOwnerSnapshot` awaits the same gate (openclaw#160274: "model/auth replacements use the existing publication barrier, which catalog reads await before reacquiring the current owner"). Both waits avoid errors; neither protects data the previous list cannot serve. Hot reloads also retire the previous owners immediately, so reads raced into retired owners and failed. Changes: 1. **Read side** (`chat-metadata-runtime.ts`, `chat-metadata-model-list.ts`): keep the last result per request shape. While a refresh, replacement, auth change or retired owner is pending, serve it minus providers whose identity changed (provider config slice, `auth.profiles`/order, runtime auth-store profiles, every configured model ref the visibility owner admits (primary, fallbacks, model maps, utility, image and PDF models), owning plugin entries). Any edit to the config `env` section hides every provider until the new catalog publishes, because it can hold any provider's key. A change to `agents.*.modelPolicy` does the same, since a policy can name any provider's models. A requester who now has personal-account links is never served the retained shared list; the read takes the existing personal-projection path. Superseded/unavailable read errors fall back to the same retained list; other errors still surface. 2. **Catalog owner** (`prepared-model-runtime.catalog-source.ts`): a rebuild keeps a provider's discovered rows when only the installed-plugin fingerprint changed and the provider's own source and credentials are unchanged. Those rows are marked provisional and reacquired by the post-commit changed-provider refresh. The owning plugin's package version and install-record hash join the provider source, so an upgraded provider plugin does not carry its old rows. Native harness rows keep the existing rule (dropped when any agent/plugin setting changes), because a harness may list models from any of those settings. State table used for the change: | Event | During rebuild | After commit | |---|---|---| | Model-neutral setting | previous list | same | | Provider P config/credentials changed, deleted, or signed out | previous − P | P returns when rediscovered | | Plugin config change (no provider change) | previous list | provisional rows until rediscovered | | Sign-in to new provider Q | previous list | Q added when known | | Remote catalog swap | previous list (not adopted yet) | atomic switch (openclaw#158000, openclaw#167178) | ## Evidence Regression test `server-chat-metadata-lifecycle.rebuild.test.ts`: holds the replacement owner's catalog build forever (a provider that never answers), then reads `models.list` with a 1 s budget. On main it fails with `models.list waited for the rebuild`; with this change it passes, and it checks that signing out, removing the configured model and editing the config `env` section each hide `openai/gpt-5.4` before the replacement publishes (the `env`, model-policy and primary-model steps each fail without their identity field). `chat-metadata-runtime.personal-accounts.test.ts` adds a case where a requester connects a personal account while the owner is retired; the read declines the retained shared list (fails without the link check). Two existing tests now assert the new contract: a retired owner without a published replacement serves its last list instead of rejecting (`models.prepared.test.ts`), and the readiness test holds the replacement's own list preparation after the refresh (`chat-metadata-model-list-readiness.test.ts`). UI guard `chat-loading-deadlines.e2e.test.ts`: an existing chat sends a message while `models.list` never answers (passes on main and here; no UI change needed). Isolated Gateway bench (real entry point, built `dist`, n = 12 per event): fake vLLM (healthy), Ollama that never answers, Codex app-server whose `model/list` never answers. Back-to-back `models.list {view: "configured"}` reads tagged *during* the triggering RPC. Times in ms. | Event (during) | main p50 / p99 / max | failed | this PR p50 / p99 / max | failed | |---|---|---|---|---| | settings change (model) | 1.5 / 323 / 344 | 0 | 1.5 / 235 / 322 | 0 | | plugin settings change | 1.6 / 366 / 1547 | 12 | 1.3 / 266 / 752 | 0 | | sign-in | 2.2 / 613 / 763 | 1 | 2.4 / 624 / 1196 | 0 | | sign-out | 1.6 / 781 / 907 | 12 | 1.9 / 378 / 537 | 0 | | provider deleted | 2.3 / 1169 / 1799 | 0 | 2.4 / 825 / 2297 | 0 | | plugin reload | 1.5 / 490 / 1080 | 12 | 2.0 / 470 / 818 | 0 | | catalog swap | 1.7 / 84 / 654 | 0 | 1.7 / 94 / 463 | 0 | | restart (first reads) | 1.5 / 131 / 335 | 0 | 1.6 / 105 / 281 | 0 | No read after a sign-out or provider deletion returned that provider (0 violations in both runs). Why p99 is still above 300 ms: a lag probe (`last-heartbeat` issued with each read) is as slow as `models.list` in every slow sample (for example 1453 vs 1445 ms), so the read path no longer waits. A Gateway `--cpu-prof` during sign-in / provider deletion / plugin reload attributes the busy main-thread segments to `loadPluginMetadataSnapshot` → installed plugin index rebuild with synchronous `lstat`/`read`/`realpath` (~26%), module compile/link of reloaded plugin code (~24%) and managed reload `publishRuntime` (~15%). Top callers: `resolveManifestPluginsForModelIdNormalization` and `resolveConfigWidePluginMetadataSnapshot`. That is the follow-up. Local checks: `tsgo:core`, oxfmt and type-aware oxlint on changed files, focused tests (rebuild, lifecycle integration, catalog renewal, chat-metadata runtime and refresh, scoped refresh, catalog owner, native demand: 119 passed), UI E2E case above. `prepared-model-runtime.catalog-retention.test.ts` fails locally before any product code with `gc is not defined` (the local runner does not expose `gc`); left to CI. Limits: other Pueue jobs shared the host during both bench runs. The remote catalog is adopted only at startup or every 6 h, so each catalog-swap rep restarts the Gateway with a new catalog URL. Co-authored-by: Ayaan Zaidi <[email protected]>
…ttings changes (#173626) Related: #173585, #169562 ## What Problem This Solves Fixes: the Gateway main thread blocks for hundreds of milliseconds after a sign-in, sign-out, key removal or plugin settings change, because runtime readers reload plugin metadata from disk although no plugin was installed. ## User Impact User impact: less main-thread blocking after account and plugin settings changes, so model pickers and other Gateway requests stall less. No config, state or plugin contract changes. ## Why This Change Was Made Config hot reload holds the plugin lifecycle lease (since #145484). The lease runs in a fresh operation plugin cache, so management sees what other processes committed while it waited. That isolation stays. But two kinds of work inside it reloaded plugin metadata on every event: 1. **A policy change rescanned the whole inventory.** Plugin activation (`enabled`) is the only config-owned fact in the installed plugin index. A changed policy hash (for example auto-enable after a sign-in) made the registry reader treat the persisted index as stale and run full discovery. Activation is now one projection over inventory records (`projectInstalledPluginIndexPolicy`), used by fresh builds and by the registry reader. When the persisted inventory passes its existing freshness checks and only the policy differs, the reader projects the new policy in memory. Install, uninstall, stale files, load paths and the other existing reasons still rediscover. Freshness checks tolerate missing files only for disabled records, so records the new policy enables are rechecked; if any is stale, the reader rediscovers. This matches the documented rule that enablement is evaluated from the current operation's policy, not stored with the facts. 2. **Post-commit Gateway readers could not see the published inventory.** The model-policy comparison (chat metadata lifecycle) and the prepared model runtime refresh inherit the lease's operation cache, so model-id normalization in `resolveDefaultModelForAgent` loaded a metadata snapshot from disk. As in #169562, the Gateway lifecycle owner now passes the snapshot it published. The chat metadata lifecycle hands `getPluginMetadataSnapshot()` to `modelSelectionPoliciesMatch`. The prepared runtime refresh forwards its existing `pluginMetadataSnapshot` option to the configured owner inputs. Readers without an explicit snapshot keep their current behavior. ## Evidence - Regression tests, each fails on `main` and passes here: - `plugin-registry.test.ts`, "projects a config policy change over the persisted inventory without rescanning": on `main` the extensions dir is rescanned. - `plugin-registry.test.ts`, "rediscovers when a policy enables a persisted plugin whose files are gone": a projection-only reader would return an enabled plugin with no files. - `operator-model-presentation.test.ts`, two tests run inside an operation cache like the reload lease: the policy comparison and prepared runtime input collection load no plugin metadata. On `main` they load 2 and 1 snapshots. - Focused suites pass: plugin registry, index and cache; capability generation; model selection; operator model policy; chat metadata lifecycle; prepared model runtime; agent database startup. Two kinds of local failure, neither CI-relevant: - 4 tests in `plugin-registry` and `installed-plugin-index` fail on macOS on both `main` and this branch (temp-dir environment). - One agent-database-startup test timed out at host load ~60 and passes alone. - Isolated Gateway on a packaged layout (built dist, no `.git`, `src` or `extensions`), compared with the `main` it merges. CPU profile over 20 events (4 each of sign-in, sign-out, key removal, plugin reload and plugin settings change), two interleaved rounds: | Main-thread CPU | main (round 1 / 2) | this PR (round 1 / 2) | |---|---|---| | model-id normalization metadata loads | 22555 / 20521 ms | 2 / 0 ms | | plugin inventory rediscovery | 16873 / 16489 ms | 3638 / 1518 ms | | all plugin metadata snapshot loads | 31650 / 29862 ms | 10194 / 8281 ms | | busy segments ≥ 150 ms | 57 / 67 | 31 / 14 | What remains is `resolveConfigWidePluginMetadataSnapshot`: the explicit plugin reload, which is the owner's refresh path, plus startup config preflight. - `last-heartbeat` lag probe during the event, n = 12 events each, runs interleaved base/PR. Host load was 30–101, so absolute values are inflated: | Event (during) | main p50 / p99 | this PR p50 / p99 | |---|---|---| | sign-in | 1.8 / 698 ms | 2.6 / 329 ms | | sign-out | 3.2 / 790 ms | 4.2 / 489 ms | | key removal | 4.1 / 1009 ms | 2.0 / 359 ms | | plugin reload | 1.4 / 710 ms | 1.0 / 489 ms | | plugin settings change | 0.8 / 157 ms | 0.8 / 138 ms | No run showed a removed provider after its removal (0 violations). Not covered: plugin reload still blocks, from the reload's own metadata refresh, plugin module re-import and runtime publication. That needs a separate change. ## Notes A source checkout (`pnpm-workspace.yaml`, `src` and `extensions` at the package root) cannot measure this. There, `isBundledPluginInsideDevSourceRoot` and the private QA plugins make `requiresDerivedRegistryValidation` reject the persisted index on every read, so local dev Gateways still rescan. Packaged installs do not. ## Merge danger Two-way door: a revert restores the reloads. Nothing is persisted or migrated, and lease isolation is unchanged. Blast radius if wrong: - Plugin activation as seen by Gateway runtime reads after a config change. The projection uses the same rule and inputs as a fresh index build. - Model-id normalization in the post-commit policy comparison and prepared runtime refresh. These use the inventory the Gateway published, which is what other runtime readers already use. Co-authored-by: Ayaan Zaidi <[email protected]>
…ttings changes (openclaw#173626) Related: openclaw#173585, openclaw#169562 ## What Problem This Solves Fixes: the Gateway main thread blocks for hundreds of milliseconds after a sign-in, sign-out, key removal or plugin settings change, because runtime readers reload plugin metadata from disk although no plugin was installed. ## User Impact User impact: less main-thread blocking after account and plugin settings changes, so model pickers and other Gateway requests stall less. No config, state or plugin contract changes. ## Why This Change Was Made Config hot reload holds the plugin lifecycle lease (since openclaw#145484). The lease runs in a fresh operation plugin cache, so management sees what other processes committed while it waited. That isolation stays. But two kinds of work inside it reloaded plugin metadata on every event: 1. **A policy change rescanned the whole inventory.** Plugin activation (`enabled`) is the only config-owned fact in the installed plugin index. A changed policy hash (for example auto-enable after a sign-in) made the registry reader treat the persisted index as stale and run full discovery. Activation is now one projection over inventory records (`projectInstalledPluginIndexPolicy`), used by fresh builds and by the registry reader. When the persisted inventory passes its existing freshness checks and only the policy differs, the reader projects the new policy in memory. Install, uninstall, stale files, load paths and the other existing reasons still rediscover. Freshness checks tolerate missing files only for disabled records, so records the new policy enables are rechecked; if any is stale, the reader rediscovers. This matches the documented rule that enablement is evaluated from the current operation's policy, not stored with the facts. 2. **Post-commit Gateway readers could not see the published inventory.** The model-policy comparison (chat metadata lifecycle) and the prepared model runtime refresh inherit the lease's operation cache, so model-id normalization in `resolveDefaultModelForAgent` loaded a metadata snapshot from disk. As in openclaw#169562, the Gateway lifecycle owner now passes the snapshot it published. The chat metadata lifecycle hands `getPluginMetadataSnapshot()` to `modelSelectionPoliciesMatch`. The prepared runtime refresh forwards its existing `pluginMetadataSnapshot` option to the configured owner inputs. Readers without an explicit snapshot keep their current behavior. ## Evidence - Regression tests, each fails on `main` and passes here: - `plugin-registry.test.ts`, "projects a config policy change over the persisted inventory without rescanning": on `main` the extensions dir is rescanned. - `plugin-registry.test.ts`, "rediscovers when a policy enables a persisted plugin whose files are gone": a projection-only reader would return an enabled plugin with no files. - `operator-model-presentation.test.ts`, two tests run inside an operation cache like the reload lease: the policy comparison and prepared runtime input collection load no plugin metadata. On `main` they load 2 and 1 snapshots. - Focused suites pass: plugin registry, index and cache; capability generation; model selection; operator model policy; chat metadata lifecycle; prepared model runtime; agent database startup. Two kinds of local failure, neither CI-relevant: - 4 tests in `plugin-registry` and `installed-plugin-index` fail on macOS on both `main` and this branch (temp-dir environment). - One agent-database-startup test timed out at host load ~60 and passes alone. - Isolated Gateway on a packaged layout (built dist, no `.git`, `src` or `extensions`), compared with the `main` it merges. CPU profile over 20 events (4 each of sign-in, sign-out, key removal, plugin reload and plugin settings change), two interleaved rounds: | Main-thread CPU | main (round 1 / 2) | this PR (round 1 / 2) | |---|---|---| | model-id normalization metadata loads | 22555 / 20521 ms | 2 / 0 ms | | plugin inventory rediscovery | 16873 / 16489 ms | 3638 / 1518 ms | | all plugin metadata snapshot loads | 31650 / 29862 ms | 10194 / 8281 ms | | busy segments ≥ 150 ms | 57 / 67 | 31 / 14 | What remains is `resolveConfigWidePluginMetadataSnapshot`: the explicit plugin reload, which is the owner's refresh path, plus startup config preflight. - `last-heartbeat` lag probe during the event, n = 12 events each, runs interleaved base/PR. Host load was 30–101, so absolute values are inflated: | Event (during) | main p50 / p99 | this PR p50 / p99 | |---|---|---| | sign-in | 1.8 / 698 ms | 2.6 / 329 ms | | sign-out | 3.2 / 790 ms | 4.2 / 489 ms | | key removal | 4.1 / 1009 ms | 2.0 / 359 ms | | plugin reload | 1.4 / 710 ms | 1.0 / 489 ms | | plugin settings change | 0.8 / 157 ms | 0.8 / 138 ms | No run showed a removed provider after its removal (0 violations). Not covered: plugin reload still blocks, from the reload's own metadata refresh, plugin module re-import and runtime publication. That needs a separate change. ## Notes A source checkout (`pnpm-workspace.yaml`, `src` and `extensions` at the package root) cannot measure this. There, `isBundledPluginInsideDevSourceRoot` and the private QA plugins make `requiresDerivedRegistryValidation` reject the persisted index on every read, so local dev Gateways still rescan. Packaged installs do not. ## Merge danger Two-way door: a revert restores the reloads. Nothing is persisted or migrated, and lease isolation is unchanged. Blast radius if wrong: - Plugin activation as seen by Gateway runtime reads after a config change. The projection uses the same rule and inputs as a fresh index build. - Model-id normalization in the post-commit policy comparison and prepared runtime refresh. These use the inventory the Gateway published, which is what other runtime readers already use. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes: model pickers wait for, fail on, or briefly lose models while the Gateway rebuilds its model catalog after a settings change, sign-in, sign-out, key removal or plugin reload.
User Impact
models.listnow answers from the last published list while the catalog owner rebuilds, instead of waiting for the replacement owner or failing with "Chat metadata access changed while preparing its metadata". A provider whose config, credentials, configured models or owning plugin changed is removed from that list at once and returns when the new catalog has it. Additions may appear late; removals are never shown.Remaining limit (not fixed here): during a reload, synchronous plugin metadata rescans still block the Gateway main thread for 0.3–2 s, so any RPC (including a trivial
last-heartbeat) is slow in that window. Tracked as a separate follow-up.Why This Change Was Made
Two waits sat on the read path:
chat-metadata-runtime.tsreadCurrentawaited the pending refresh, which awaits the model-runtime replacement gate. Added in fix(gateway): keep chat metadata available during model reloads #170805 to stop failures for healthy agents: "The existing model-runtime publication barrier owns replacement readiness; metadata follows it rather than constructing partial facts ahead of its commit." That PR states latency was not benchmarked.server-model-catalog.tsreadPreparedGatewayModelCatalogOwnerSnapshotawaits the same gate (perf(gateway): retain prepared state across channel config reloads #160274: "model/auth replacements use the existing publication barrier, which catalog reads await before reacquiring the current owner").Both waits avoid errors; neither protects data the previous list cannot serve. Hot reloads also retire the previous owners immediately, so reads raced into retired owners and failed.
Changes:
chat-metadata-runtime.ts,chat-metadata-model-list.ts): keep the last result per request shape. While a refresh, replacement, auth change or retired owner is pending, serve it minus providers whose identity changed (provider config slice,auth.profiles/order, runtime auth-store profiles, every configured model ref the visibility owner admits (primary, fallbacks, model maps, utility, image and PDF models), owning plugin entries). Any edit to the configenvsection hides every provider until the new catalog publishes, because it can hold any provider's key. A change toagents.*.modelPolicydoes the same, since a policy can name any provider's models. A requester who now has personal-account links is never served the retained shared list; the read takes the existing personal-projection path. Superseded/unavailable read errors fall back to the same retained list; other errors still surface.prepared-model-runtime.catalog-source.ts): a rebuild keeps a provider's discovered rows when only the installed-plugin fingerprint changed and the provider's own source and credentials are unchanged. Those rows are marked provisional and reacquired by the post-commit changed-provider refresh. The owning plugin's package version and install-record hash join the provider source, so an upgraded provider plugin does not carry its old rows. Native harness rows keep the existing rule (dropped when any agent/plugin setting changes), because a harness may list models from any of those settings.State table used for the change:
Evidence
Regression test
server-chat-metadata-lifecycle.rebuild.test.ts: holds the replacement owner's catalog build forever (a provider that never answers), then readsmodels.listwith a 1 s budget. On main it fails withmodels.list waited for the rebuild; with this change it passes, and it checks that signing out, removing the configured model and editing the configenvsection each hideopenai/gpt-5.4before the replacement publishes (theenv, model-policy and primary-model steps each fail without their identity field).chat-metadata-runtime.personal-accounts.test.tsadds a case where a requester connects a personal account while the owner is retired; the read declines the retained shared list (fails without the link check). Two existing tests now assert the new contract: a retired owner without a published replacement serves its last list instead of rejecting (models.prepared.test.ts), and the readiness test holds the replacement's own list preparation after the refresh (chat-metadata-model-list-readiness.test.ts).UI guard
chat-loading-deadlines.e2e.test.ts: an existing chat sends a message whilemodels.listnever answers (passes on main and here; no UI change needed).Isolated Gateway bench (real entry point, built
dist, n = 12 per event): fake vLLM (healthy), Ollama that never answers, Codex app-server whosemodel/listnever answers. Back-to-backmodels.list {view: "configured"}reads tagged during the triggering RPC. Times in ms.No read after a sign-out or provider deletion returned that provider (0 violations in both runs).
Why p99 is still above 300 ms: a lag probe (
last-heartbeatissued with each read) is as slow asmodels.listin every slow sample (for example 1453 vs 1445 ms), so the read path no longer waits. A Gateway--cpu-profduring sign-in / provider deletion / plugin reload attributes the busy main-thread segments toloadPluginMetadataSnapshot→ installed plugin index rebuild with synchronouslstat/read/realpath(~26%), module compile/link of reloaded plugin code (~24%) and managed reloadpublishRuntime(~15%). Top callers:resolveManifestPluginsForModelIdNormalizationandresolveConfigWidePluginMetadataSnapshot. That is the follow-up.Local checks:
tsgo:core, oxfmt and type-aware oxlint on changed files, focused tests (rebuild, lifecycle integration, catalog renewal, chat-metadata runtime and refresh, scoped refresh, catalog owner, native demand: 119 passed), UI E2E case above.prepared-model-runtime.catalog-retention.test.tsfails locally before any product code withgc is not defined(the local runner does not exposegc); left to CI.Limits: other Pueue jobs shared the host during both bench runs. The remote catalog is adopted only at startup or every 6 h, so each catalog-swap rep restarts the Gateway with a new catalog URL.