Skip to content

fix(models): apply a changed catalog source at once without breaking turns - #202583

Merged
obviyus merged 5 commits into
mainfrom
obviyus/fix1-catalog-url-order
Nov 20, 2026
Merged

obviyus merged 5 commits into
mainfrom
obviyus/fix1-catalog-url-order

Conversation

@obviyus

@obviyus obviyus commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Changing models.catalogRefresh.url (or .enabled) on a running Gateway waited up to six hours for the next scheduled catalog check, so a model the new catalog describes stayed unlisted and its turns were priced at $0.

The obvious fix, re-arming the catalog check from the config listener (part 3 of #202490, reverted), broke worse. The check ran inside the hot reload that published the config. The Gateway scheduler keeps the async context of whoever schedules a job, and the reload runs inside a plugin lifecycle operation with its own plugin cache, which retires when the reload ends. The catalog adoption then built its plugin generation from that short-lived inventory:

  • inventory retired during the build: PluginInventoryRetiredError ("check failed") or a rejected candidate ("superseded"), then a 6-hour wait;
  • inventory retired after the adoption committed: the published owner was retired with it, and every later turn failed with UNAVAILABLE: prepared reply dispatch runtime owner was not published for main until restart;
  • every later scheduled check chained from the same retired context and failed again. In the reverted branch this showed up as the 10-second retry failing with an AbortError.

Timeline of one wedged run

Probe build (main plus the naive re-check), one Gateway, URL change at t=10.49 s:

t (s) Step Source (main 569c60b)
10.49 The config.patch reload runs in the plugin lifecycle lease, which installs an operation-scoped plugin cache gateway/config-reload.ts:1007, plugins/plugin-lifecycle-lease.ts:356
10.498 The runtime config is set and sessionChanges.emit fires inside that context. The update owner's listener re-arms the catalog check. GatewayScheduler snapshots the registrant's context config/runtime-snapshot.ts:272, infra/update-startup-scheduler.ts:90, infra/gateway-scheduler.ts:190
10.499 / 10.504 Reload commit marks prepared runtimes stale (R1), then its refresh supersedes R1 with R2 gateway/server-reload-hot.ts:280, :596 → agents/prepared-model-runtime.ts:519
11.197 The fetch is done; the adoption waits for R2 agents/prepared-model-runtime.configured-refresh.ts:97-101
11.271 The reload commits R2 and reply dispatch publishes main (generation 5) agents/prepared-model-runtime.ts:580
11.272 The adoption claims generation 5 and builds candidates. Their plugin metadata belongs to the reload's operation cache configured-refresh.ts:256-298, plugins/plugin-cache.ts:315
12.791 The reload operation ends; its cache retires gateway/config-reload.ts:470, plugins/plugin-lifecycle-lease.ts:128
14.336 The adoption commits generation 6: "remote model catalog applied" configured-refresh.ts:363-373
after Cache retirement retires the published owner (needs refresh, no plugin generation). No recovery runs, because it was not a Gateway loan agents/prepared-model-runtime.plugin-lifetime.ts:390, :407-425
41.858 Turn: owner mismatch → UNAVAILABLE ... runtime owner was not published for main agents/prepared-reply-dispatch-runtime.ts:179-188

The stale mark and the pending replacement were not the cause. The adoption waited correctly for R2 and claimed fresh owners. What broke it was where the check ran, not when.

Fix

One owner: the update-check scheduler.

  • When models.catalogRefresh changes, the config listener re-arms the existing catalog check. It does not add a second scheduler.
  • Re-arms from the listener run in the update owner's own context, taken from AsyncLocalStorage.snapshot() at start(), not in the publishing reload's context. The catalog check and every later re-arm use the Gateway's plugin inventory, the same one the startup check uses.

No change to the adoption, the stale mark or reply dispatch. The four symptom patches from #202490 (10-second superseded retry, PluginInventoryRetiredError → superseded, captured cancel signal, docs) stay reverted. None of them is needed, and none was added back.

Accepted edge case: an unrelated model-affecting reload that lands while an adoption is building still defers that adoption to the next scheduled check, as on main (#168981 removed adoption retries on purpose). A further catalogRefresh change re-arms at once.

Evidence

Regression tests (src/agents/prepared-model-runtime.catalog-source-change.test.ts) run the real update owner, the real scheduler and the real adoption. The config notification fires inside a reload-style plugin operation, and each test retires that operation's inventory at the point where production failed. Explicit gates, no sleeps.

Case main main + naive re-check this PR
reload operation ends during the build red: no re-check red: superseded green
reload operation ended before the check ran red: no re-check red: Plugin inventory has retired; begin a new plugin operation. green
reply dispatch after the operation ends red: no re-check red: prepared reply dispatch runtime owner was not published for default green
next scheduled check after the operation ends red: no re-check red: superseded green

Real Gateway (isolated state, loopback catalog and Together mock, cadence2: Gateway running on catalog A, then the URL is changed to catalog C, which describes together/zz-lab/zz-day0-live):

This PR (exact head 11ac3c2d), 20 of 20 runs: the catalog was adopted 0.6–13.9 s after the URL change (host load average around 70), the new row was listed, every turn succeeded with a price, and no run showed UNAVAILABLE.

run URL change → outcome (s) catalog check Together listing turn cost UNAVAILABLE
1 2.5 remote model catalog applied listed ok $0.00006 no
2 2.1 remote model catalog applied listed ok $0.00006 no
3 13.9 remote model catalog applied listed ok $0.00006 no
4 1.8 remote model catalog applied listed ok $0.00006 no
5 1.3 remote model catalog applied listed ok $0.00006 no
6 2.9 remote model catalog applied listed ok $0.00006 no
7 8.6 remote model catalog applied listed ok $0.00006 no
8 5.0 remote model catalog applied listed ok $0.00006 no
9 3.4 remote model catalog applied listed ok $0.00006 no
10 3.5 remote model catalog applied listed ok $0.00006 no
11 0.7 remote model catalog applied listed ok $0.00006 no
12 0.7 remote model catalog applied listed ok $0.00006 no
13 0.6 remote model catalog applied listed ok $0.00006 no
14 0.9 remote model catalog applied listed ok $0.00006 no
15 0.7 remote model catalog applied listed ok $0.00006 no
16 0.7 remote model catalog applied listed ok $0.00006 no
17 6.8 remote model catalog applied listed ok $0.00006 no
18 0.8 remote model catalog applied listed ok $0.00006 no
19 1.3 remote model catalog applied listed ok $0.00006 no
20 1.1 remote model catalog applied listed ok $0.00006 no

main (569c60bc), 5 runs: no check after the URL change; the next check comes in 6 h. The row stayed unlisted and turns cost $0.

run URL change → outcome (s) catalog check Together listing turn cost UNAVAILABLE
1 - no check within 120 s (next check in 6 h) "NOT LISTED (count=2)" ok $0.00000 no
2 - no check within 120 s (next check in 6 h) "NOT LISTED (count=2)" ok $0.00000 no
3 - no check within 120 s (next check in 6 h) "NOT LISTED (count=2)" ok $0.00000 no
4 - no check within 120 s (next check in 6 h) "NOT LISTED (count=2)" ok $0.00000 no
5 - no check within 120 s (next check in 6 h) "NOT LISTED (count=2)" ok $0.00000 no

main + naive immediate re-check (the reverted approach), 5 runs: 2 of 5 runs wedged every later turn; the other 3 deferred the change by 6 h.

run URL change → outcome (s) catalog check Together listing turn cost UNAVAILABLE
1 0.7 remote model catalog check failed "NOT LISTED (count=2)" ok $0.00000 no
2 1.7 remote model catalog check superseded; deferred to the next check "NOT LISTED (count=2)" ok $0.00000 no
3 4.6 remote model catalog applied "NOT LISTED (count=0)" failed - yes
4 3.6 remote model catalog applied "NOT LISTED (count=0)" failed - yes
5 3.9 remote model catalog check failed "NOT LISTED (count=2)" ok $0.00000 no

Live service PID and config hash were unchanged before and after every batch.

Gates: tsgo:core, tsgo:core:test, tsgo:test:root, tsgo:extensions:test; oxlint and oxfmt on changed files; consumer suites (update-startup*, server-startup-update-check, server-startup-post-attach, prepared-model-runtime, models-list.remote-catalog.integration). Under host load, models-list.remote-catalog.integration timed out once and update-startup.test.ts failed once. Both pass on rerun, and on base.

Merge danger and blast radius

  • New behavior: a models.catalogRefresh edit triggers one immediate catalog GET.
  • Config-driven re-arms of update.check also run in the update owner's context now, instead of the reload's. That is the same context as their startup and scheduled runs.
  • No config, schema, protocol, SDK or storage change.

@clawsweeper

clawsweeper Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime agents Agent runtime and tooling size: M labels Nov 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 20, 2026
@clawsweeper

clawsweeper Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR promptly reschedules catalog checks after source changes while preserving the update owner's async context.

Example: A running Gateway switches catalogs to one describing together/zz-lab/zz-day0-live.

  • Before: The model can remain unlisted until the next six-hour catalog check.
  • After: The existing scheduler checks the changed source promptly using its startup context.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused implementation has credible regression coverage and no identified defect, but completed shipped-entry-point proof is absent.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Changing a running Gateway’s catalog source can leave new model details and prices unavailable until the next scheduled check.
Reason: The maintainer-authored direction closes an explicitly deferred gap using the existing scheduler and publication owners.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it addresses a source-supported catalog refresh gap through the existing scheduler, and no concrete introduced defect was found.

Priority: P2
Reviewed head: 11ac3c2de85811fa237fb610f888024b94b9d645

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide completed, redacted reviewed-head Gateway output showing a catalog URL change, successful model-and-price publication, and a successful agent/model turn after the reload operation ends.
Agent review details

How this fits together

Gateway config publication notifies the update scheduler, which downloads catalog metadata and invokes the prepared-runtime owner to publish matching model rows, prices, and reply dispatch.

flowchart TD
  A[Config publication] --> B[Update scheduler]
  B --> C[Catalog refresh]
  C --> D[Prepared runtime publication]
  E[Gateway plugin inventory] --> D
  D --> F[Model rows and prices]
  D --> G[Reply dispatch]
Loading

Technical review

Best possible solution:

Keep source-change scheduling in the existing update owner and preserve its startup context without adding adoption retries or another scheduler.

Do we have a high-confidence way to reproduce the issue?

Current-main source directly shows that changing catalogRefresh does not re-arm the catalog job, and the earlier merged PR confirms this remaining limitation; no target code was executed during this review.

Is this the best way to solve the issue?

The patch fixes scheduling at its existing owner and preserves atomic publication, memory-pressure deferral, shutdown handling, and the intentional no-retry policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 918d83996b98.

Provenance checked

  • Config-driven update scheduling keeps the original intent (50ca1f4: Configurable automatic-update schedules reused one scheduler and a config-publication listener.)
  • Hosted catalog check cadence changes intended behavior with a stated reason (bde7033: Hosted metadata refreshed at startup and on a six-hour cadence; this PR explains why an explicit source edit should trigger an additional check.)
  • Memory-constrained background refresh keeps the original intent (67ecf6b: Optional background catalog work defers under memory pressure to preserve foreground capacity; the relocated callback retains this behavior.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +14, Tests +238, Docs +2. Total +254 across 4 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 53 39 +14
Tests 1 238 0 +238
Docs 2 8 6 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 299 45 +254

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test LOC Production +53/-39; tests +238/-0 Production growth largely relocates the existing callback for reuse; tests exercise retirement before execution, during preparation, after publication, and before later scheduled checks.

Labels

Label changes:

  • add P2: The current bug delays model metadata and pricing after an advanced catalog-source edit; the demonstrated persistent turn failures belong to the reverted naive approach.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The current bug delays model metadata and pricing after an advanced catalog-source edit; the demonstrated persistent turn failures belong to the reverted naive approach.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 20, 2026, 11:52 AM ET / 16:52 UTC.

@obviyus
obviyus merged commit 4332e9a into main Nov 20, 2026
146 checks passed
@obviyus
obviyus deleted the obviyus/fix1-catalog-url-order branch November 20, 2026 17:45
@obviyus

obviyus commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as 4332e9a.

  • Bug: re-checking the catalog after a models.catalogRefresh change ran inside the hot reload's plugin operation. Its plugin inventory retired when the reload ended. Result: PluginInventoryRetiredError, a "superseded" 6-hour deferral, or a published owner retired under every later turn (UNAVAILABLE ... runtime owner was not published).
  • Fix: the update owner re-arms the catalog check when the source changes, and runs that re-arm in its own context.
  • Proof: 4 regression tests, red on main and on main with the naive re-check, green here. Real Gateway: 20/20 runs adopted the new catalog within 0.6–13.9 s, listed the new model, and priced every turn. main waited 6 h (5/5 runs). The naive re-check wedged 2 of 5 runs.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 21, 2026
…turns (openclaw#202583)

## What Problem This Solves

Changing `models.catalogRefresh.url` (or `.enabled`) on a running Gateway waited up to six hours for the next scheduled catalog check, so a model the new catalog describes stayed unlisted and its turns were priced at $0.

The obvious fix, re-arming the catalog check from the config listener (part 3 of openclaw#202490, reverted), broke worse. The check ran inside the hot reload that published the config. The Gateway scheduler keeps the async context of whoever schedules a job, and the reload runs inside a plugin lifecycle operation with its own plugin cache, which retires when the reload ends. The catalog adoption then built its plugin generation from that short-lived inventory:

- inventory retired during the build: `PluginInventoryRetiredError` ("check failed") or a rejected candidate ("superseded"), then a 6-hour wait;
- inventory retired after the adoption committed: the published owner was retired with it, and every later turn failed with `UNAVAILABLE: prepared reply dispatch runtime owner was not published for main` until restart;
- every later scheduled check chained from the same retired context and failed again. In the reverted branch this showed up as the 10-second retry failing with an `AbortError`.

## Timeline of one wedged run

Probe build (main plus the naive re-check), one Gateway, URL change at t=10.49 s:

| t (s) | Step | Source (main ab79858) |
|---|---|---|
| 10.49 | The `config.patch` reload runs in the plugin lifecycle lease, which installs an operation-scoped plugin cache | `gateway/config-reload.ts:1007`, `plugins/plugin-lifecycle-lease.ts:356` |
| 10.498 | The runtime config is set and `sessionChanges.emit` fires inside that context. The update owner's listener re-arms the catalog check. `GatewayScheduler` snapshots the registrant's context | `config/runtime-snapshot.ts:272`, `infra/update-startup-scheduler.ts:90`, `infra/gateway-scheduler.ts:190` |
| 10.499 / 10.504 | Reload commit marks prepared runtimes stale (R1), then its refresh supersedes R1 with R2 | `gateway/server-reload-hot.ts:280`, `:596` → `agents/prepared-model-runtime.ts:519` |
| 11.197 | The fetch is done; the adoption waits for R2 | `agents/prepared-model-runtime.configured-refresh.ts:97-101` |
| 11.271 | The reload commits R2 and reply dispatch publishes `main` (generation 5) | `agents/prepared-model-runtime.ts:580` |
| 11.272 | The adoption claims generation 5 and builds candidates. Their plugin metadata belongs to the reload's operation cache | `configured-refresh.ts:256-298`, `plugins/plugin-cache.ts:315` |
| 12.791 | The reload operation ends; its cache retires | `gateway/config-reload.ts:470`, `plugins/plugin-lifecycle-lease.ts:128` |
| 14.336 | The adoption commits generation 6: "remote model catalog applied" | `configured-refresh.ts:363-373` |
| after | Cache retirement retires the published owner (needs refresh, no plugin generation). No recovery runs, because it was not a Gateway loan | `agents/prepared-model-runtime.plugin-lifetime.ts:390`, `:407-425` |
| 41.858 | Turn: owner mismatch → `UNAVAILABLE ... runtime owner was not published for main` | `agents/prepared-reply-dispatch-runtime.ts:179-188` |

The stale mark and the pending replacement were not the cause. The adoption waited correctly for R2 and claimed fresh owners. What broke it was where the check ran, not when.

## Fix

One owner: the update-check scheduler.

- When `models.catalogRefresh` changes, the config listener re-arms the existing catalog check. It does not add a second scheduler.
- Re-arms from the listener run in the update owner's own context, taken from `AsyncLocalStorage.snapshot()` at `start()`, not in the publishing reload's context. The catalog check and every later re-arm use the Gateway's plugin inventory, the same one the startup check uses.

No change to the adoption, the stale mark or reply dispatch. The four symptom patches from openclaw#202490 (10-second superseded retry, `PluginInventoryRetiredError` → superseded, captured cancel signal, docs) stay reverted. None of them is needed, and none was added back.

Accepted edge case: an unrelated model-affecting reload that lands while an adoption is building still defers that adoption to the next scheduled check, as on `main` (openclaw#168981 removed adoption retries on purpose). A further `catalogRefresh` change re-arms at once.

## Evidence

Regression tests (`src/agents/prepared-model-runtime.catalog-source-change.test.ts`) run the real update owner, the real scheduler and the real adoption. The config notification fires inside a reload-style plugin operation, and each test retires that operation's inventory at the point where production failed. Explicit gates, no sleeps.

| Case | main | main + naive re-check | this PR |
|---|---|---|---|
| reload operation ends during the build | red: no re-check | red: `superseded` | green |
| reload operation ended before the check ran | red: no re-check | red: `Plugin inventory has retired; begin a new plugin operation.` | green |
| reply dispatch after the operation ends | red: no re-check | red: `prepared reply dispatch runtime owner was not published for default` | green |
| next scheduled check after the operation ends | red: no re-check | red: `superseded` | green |

Real Gateway (isolated state, loopback catalog and Together mock, `cadence2`: Gateway running on catalog A, then the URL is changed to catalog C, which describes `together/zz-lab/zz-day0-live`):

**This PR** (exact head `11ac3c2d`), 20 of 20 runs: the catalog was adopted 0.6–13.9 s after the URL change (host load average around 70), the new row was listed, every turn succeeded with a price, and no run showed `UNAVAILABLE`.

| run | URL change → outcome (s) | catalog check | Together listing | turn | cost | UNAVAILABLE |
|---|---|---|---|---|---|---|
| 1 | 2.5 | remote model catalog applied | listed | ok | $0.00006 | no |
| 2 | 2.1 | remote model catalog applied | listed | ok | $0.00006 | no |
| 3 | 13.9 | remote model catalog applied | listed | ok | $0.00006 | no |
| 4 | 1.8 | remote model catalog applied | listed | ok | $0.00006 | no |
| 5 | 1.3 | remote model catalog applied | listed | ok | $0.00006 | no |
| 6 | 2.9 | remote model catalog applied | listed | ok | $0.00006 | no |
| 7 | 8.6 | remote model catalog applied | listed | ok | $0.00006 | no |
| 8 | 5.0 | remote model catalog applied | listed | ok | $0.00006 | no |
| 9 | 3.4 | remote model catalog applied | listed | ok | $0.00006 | no |
| 10 | 3.5 | remote model catalog applied | listed | ok | $0.00006 | no |
| 11 | 0.7 | remote model catalog applied | listed | ok | $0.00006 | no |
| 12 | 0.7 | remote model catalog applied | listed | ok | $0.00006 | no |
| 13 | 0.6 | remote model catalog applied | listed | ok | $0.00006 | no |
| 14 | 0.9 | remote model catalog applied | listed | ok | $0.00006 | no |
| 15 | 0.7 | remote model catalog applied | listed | ok | $0.00006 | no |
| 16 | 0.7 | remote model catalog applied | listed | ok | $0.00006 | no |
| 17 | 6.8 | remote model catalog applied | listed | ok | $0.00006 | no |
| 18 | 0.8 | remote model catalog applied | listed | ok | $0.00006 | no |
| 19 | 1.3 | remote model catalog applied | listed | ok | $0.00006 | no |
| 20 | 1.1 | remote model catalog applied | listed | ok | $0.00006 | no |

**main** (`ab798580`), 5 runs: no check after the URL change; the next check comes in 6 h. The row stayed unlisted and turns cost $0.

| run | URL change → outcome (s) | catalog check | Together listing | turn | cost | UNAVAILABLE |
|---|---|---|---|---|---|---|
| 1 | - | no check within 120 s (next check in 6 h) | "NOT LISTED (count=2)" | ok | $0.00000 | no |
| 2 | - | no check within 120 s (next check in 6 h) | "NOT LISTED (count=2)" | ok | $0.00000 | no |
| 3 | - | no check within 120 s (next check in 6 h) | "NOT LISTED (count=2)" | ok | $0.00000 | no |
| 4 | - | no check within 120 s (next check in 6 h) | "NOT LISTED (count=2)" | ok | $0.00000 | no |
| 5 | - | no check within 120 s (next check in 6 h) | "NOT LISTED (count=2)" | ok | $0.00000 | no |

**main + naive immediate re-check** (the reverted approach), 5 runs: 2 of 5 runs wedged every later turn; the other 3 deferred the change by 6 h.

| run | URL change → outcome (s) | catalog check | Together listing | turn | cost | UNAVAILABLE |
|---|---|---|---|---|---|---|
| 1 | 0.7 | remote model catalog check failed | "NOT LISTED (count=2)" | ok | $0.00000 | no |
| 2 | 1.7 | remote model catalog check superseded; deferred to the next check | "NOT LISTED (count=2)" | ok | $0.00000 | no |
| 3 | 4.6 | remote model catalog applied | "NOT LISTED (count=0)" | failed | - | yes |
| 4 | 3.6 | remote model catalog applied | "NOT LISTED (count=0)" | failed | - | yes |
| 5 | 3.9 | remote model catalog check failed | "NOT LISTED (count=2)" | ok | $0.00000 | no |

Live service PID and config hash were unchanged before and after every batch.


Gates: `tsgo:core`, `tsgo:core:test`, `tsgo:test:root`, `tsgo:extensions:test`; oxlint and oxfmt on changed files; consumer suites (`update-startup*`, `server-startup-update-check`, `server-startup-post-attach`, `prepared-model-runtime`, `models-list.remote-catalog.integration`). Under host load, `models-list.remote-catalog.integration` timed out once and `update-startup.test.ts` failed once. Both pass on rerun, and on base.

## Merge danger and blast radius

- New behavior: a `models.catalogRefresh` edit triggers one immediate catalog GET.
- Config-driven re-arms of `update.check` also run in the update owner's context now, instead of the reload's. That is the same context as their startup and scheduled runs.
- No config, schema, protocol, SDK or storage change.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant