Skip to content

fix(models): avoid reloading plugins on catalog refresh - #193903

Merged
vincentkoc merged 3 commits into
mainfrom
fix/catalog-remote-registration-lifetime-20261106
Nov 6, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/catalog-remote-registration-lifetime-20261106

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Model catalog refreshes reload unchanged provider plugins and retain redundant configuration graphs when a shared catalog worker alternates between workspaces.

User Impact

Remote model rows and pricing refresh without rerunning unchanged plugin registrations. Workspace configuration, source provenance, and current or removed credentials remain isolated. No configuration changes or operator action are required.

There is no final-candidate RSS or latency claim. The retained-root census is not complete heap accounting; earlier intermediate RSS measurements did not establish a consistent saving.

Why This Change Was Made

Separate registration identity from remote catalog identity, regenerate remote-derived descriptors using the existing registry, and keep one immutable runtime/source config pair per worker generation. Publication owns its detached capture so inactive captures can collect. This removes remote-driven registration rebuilds and moves immutable memoization out of the shared capture primitive; live input keys no longer pin retired publication captures through that memo. Request auth facts bind the decoded, generation-owned, and actual published config identities; existing closed scopes propagate through policy overlays and registration captures before plugin registration.

The repair preserves config, environment, workspace, inventory, provenance and source invalidation. Scope expansion acquires replacement resources before retiring predecessors and rolls back failed work. It adds no product configuration, public API, cache, or private Node-cache mutation.

Evidence

  • Compiled worker regressions cover remote rows/prices, metadata-elided requests, failed scope expansion, borrowed callbacks, and collection of retired snapshots/captures. Remote changes reuse registrations; config changes replace them. Registration and capture counts are 1, 1, 2, 2 across remote/config changes.
  • Two workspaces with 256 configured models exercise aliased and distinct runtime/source pairs, policy overlays, immutable values, changed provenance, equal-valued publication deduplication, and changed/removed credentials. Both runtime.config.current() and api.config observe current facts with zero external worker auth probes. The retained callback also performs real local provider HTTP after resolving auth through the production model-auth path; the matrix below covers allowed requests and denial before egress.
  • Explicit config census plateaus at 674,736 estimated bytes / 4,694 objects / 8 roots for aliased pairs and 899,768 / 6,260 / 10 for distinct pairs; both are untruncated. These are enumerated-root estimates, not RSS or complete heap measurements.
  • The baseline-combined candidate passed the focused compiled-worker regressions, all nine secrets cases, 71 config publication/projection/value-fact tests, and five retained-census tests. A stale Claws-to-Templates fixture call found after integration was repaired; its two failed cases passed on the focused rerun. The repaired two-case runner took 22.43s; the four config/census files took 11.04s. Compiled-worker tests exercise real registration, worker transport and GC ownership that isolated mocks cannot establish.
  • Core, agents-root and plugins-platform typechecks; targeted type-aware lint; changed-file formatting; the test-line ratchet; and git diff --check passed. The full combined pnpm build passed in 212.92s, including declarations and SDK exports. Emitted-worker parsing, cold emitted-registry import guards and both source import-boundary tests passed. The build reported nonfatal UI boot gzip warnings (chat 1265.9 KiB versus 1265.6; new-session 784.3 versus 783.7). UI and budget sources are unchanged, but without a matched baseline build their attribution remains unknown. Exact-head CI passed: https://github.com/openclaw/openclaw/actions/runs/42154694852. The current-head ClawSweeper review accepted the local HTTP proof, found no actionable defects, and lists no pre-merge actions: fix(models): avoid reloading plugins on catalog refresh #193903 (comment).
  • Fresh P0–P3 autoreview and separate owner-boundary review found no remaining actionable source defect. The integrated baseline preserves removed configured projections, immutable admission, published-source ownership, Templates provenance and asynchronous registry/SQLite inspection.

The HTTP fixture uses a real local socket server and native fetch, with no mocked auth or fetch. Its callback is created during plugin registration and resolves api.config on each invocation. The server counts every request before validating the current fake bearer; a rejected HTTP request still fails a zero-egress assertion. Every response and denial is awaited.

Retained callback case Observed effect
Initial registration with key A Authorized HTTP; checked response marker
Remote refresh to key B Same callback and registration count; HTTP accepts only key B
Neighboring workspace, otherwise identical Auth-scope error; zero HTTP
Authoritative credential removal, including metadata-elided repeat Missing-auth error; zero HTTP
Equal-valued publication reused in another workspace Correct workspace reaches HTTP; authored-workspace mismatch sends zero HTTP

Both aliased and distinct config cases passed using node scripts/run-vitest.mjs src/agents/prepared-model-catalog-worker.config.integration.test.ts --maxWorkers=1 (2 tests; runner 40.79s). This is real local provider HTTP through compiled workers and production auth paths, not a vendor-live test.

Runtime changes: +143/-64 lines (net +79), necessary for registration/config lifetime ownership, publication provenance, request auth-scope derivations and explicit roots. Diagnostics: +99/-13 (net +86). Tests/helpers/routing: +1238/-79 (net +1159). The scoped 1,158-line test allocation matches the ratchet's actual LF growth and covers distinct refresh, rollback, collection, provenance and credential-consumer regressions, including real local HTTP; the shared scalar is unchanged.

Follow-ups outside this change: prepared-descriptor reuse with weak registry provenance; installer-context worker heap sizing; and releasing temporary foreign-publication auth bindings after complete request/resource settlement. Existing auth scopes can retain the latest facts for historical workspace identities while a publication owner survives. This change shares those scope objects without increasing map cardinality; the explicit census does not traverse weak auth maps.

@vincentkoc vincentkoc self-assigned this Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 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 scripts Repository scripts agents Agent runtime and tooling size: XL labels Nov 6, 2026
Baseline-Refresh: 980b94916802b2c089b67bc8cbe79e67b8e9e918
@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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR reuses unchanged provider registrations and immutable configuration pairs while refreshing remote model catalogs.

Example: Four catalog preparations change remote revisions twice, then configuration once.

  • Before: Plugin registration counts advance through 1, 2, 3, 4.
  • After: Registration counts are 1, 1, 2, 2 while remote model rows and prices refresh.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, source-consistent repair with real transport proof at the changed worker boundary and no actionable findings; broader exact-head CI remains pending.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The exact-head author report records successful compiled-worker runs for aliased and distinct configuration pairs. Source inspection verifies registration-created callbacks use production model-auth and native fetch against a real local server, retain identity across credential refresh, and deny neighboring workspaces and removed credentials before any HTTP request, including metadata-elided and equal-publication cases. This satisfies the requested production-path authority harness; it establishes neither vendor-live behavior nor an RSS or latency improvement.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Background catalog refreshes repeat unchanged plugin setup and retain redundant configuration graphs across workspaces.
Reason: The maintainer-authored direction removes source-confirmed waste while preserving catalog freshness, configuration provenance, and credential isolation.

Merge readiness

✅ Ready for maintainer review

This PR addresses catalog-refresh waste still present on main; review of the pinned head found no actionable introduced defect.

Priority: P2
Reviewed head: 044a0c2cefffc320763705e9a3f2a680314725d5

Before merge

None.

Findings

None.

Agent review details

How this fits together

The prepared catalog worker receives workspace configuration, plugin inventory, remote catalog metadata, and request credentials, then returns model rows and authentication facts using lifecycle-owned plugin registrations.

flowchart TD
Host[Prepared catalog host] --> Worker[Catalog worker]
Worker --> Config[Immutable configuration pair]
Worker --> Registry[Retained plugin registry]
Worker --> Remote[Remote catalog snapshot]
Registry --> Auth[Current scoped authentication]
Auth --> Provider[Provider HTTP]
Remote --> Result[Published model rows]
Provider --> Result
Loading

Technical review

Best possible solution:

Reuse registrations by their loader inputs, refresh remote-derived catalog facts separately, and retain current workspace-scoped credentials through the existing owners.

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

Current-main source demonstrates remote revisions invalidating registrations, and the existing regression's baseline expectations record increasing registration counts; this read-only review ran no target code.

Is this the best way to solve the issue?

The patch fixes identity and lifetime at their existing owners, preserves scope-growth custody, and retains distinct invalidation for configuration and provenance without introducing a competing registration manager.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Catalog registration reuse and scope-growth custody keeps the original intent (11d36eb: Share registrations for matching configuration, environment, metadata, and workspace while keeping credentials request-local; later scope-growth repair retained registration resources through existing lifecycle owners.)
  • Registration configuration capture changes intended behavior with a stated reason (b26eb54: Use the publication owner's immutable capture to avoid repeated configuration copies while remote revisions still rebuild registrations.)
  • Immutable capture memo placement changes intended behavior with a stated reason (b739f78: Reuse isolated captures for deeply immutable aliased inputs with matching provenance; this PR preserves standalone reuse while giving publications detached captures that can collect.)
  • Closed worker authentication scopes keeps the original intent (2640154: Keep worker authentication closed to supplied facts and preserve request authority; derived registration views now share those scopes so refreshed and removed credentials reach retained callbacks.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 68b8bf7 adds src/agents/prepared-model-catalog.worker.ts:146 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 68b8bf711324; files: src/agents/prepared-model-catalog.worker.ts)
  • Peter Steinberger: Raw commit 11d36eb adds src/agents/prepared-model-catalog.worker.ts:184 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 11d36ebc2583; files: src/agents/prepared-model-catalog.worker.ts)
  • Ayaan Zaidi: Raw commit 504d290 adds src/agents/prepared-model-catalog.worker.ts:189 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 504d2905d69c; files: src/agents/prepared-model-catalog.worker.ts)

PR surface

Source +79, Tests +1159, Other +89. Total +1327 across 25 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 10 143 64 +79
Tests 12 1238 79 +1159
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 102 13 +89
Total 25 1483 156 +1327

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 regression coverage Runtime +143/-64; tests/helpers/routing +1238/-79 Production growth serves registration identity, configuration lifetime, and closed authentication scopes; regression coverage exercises distinct refresh, rollback, collection, provenance, and credential-consumer failures.
Diagnostic flags 2 benchmark-only flags --refresh-rounds and --process-memory extend the existing measurement script without adding Gateway configuration or changing product defaults.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Repeated catalog refreshes perform unnecessary plugin registration and retain redundant configuration graphs, with limited impact on long-running worker efficiency.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-06T02:54:30.120Z sha 64ede4e :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-06T03:14:58.011Z sha 044a0c2 :: needs maintainer review before merge. :: none

Reviewed November 5, 2026, 10:21 PM ET / November 6, 2026, 03:21 UTC (Revision 3).

@vincentkoc
vincentkoc marked this pull request as ready for review November 6, 2026 03:08
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 044a0c2cefffc320763705e9a3f2a680314725d5. The previous retained-credential proof gap is addressed in src/agents/prepared-model-catalog-worker.config.integration.test.ts and the updated PR evidence.

Both aliased/distinct cases passed through compiled workers and the production auth path: registration-created callbacks perform real local provider HTTP with the current fake bearer, retain callback identity across credential refresh, and reject neighboring workspaces or removed credentials before HTTP. Metadata-elided removal and equal-valued publication reuse are covered. The server counts all requests before credential validation, every denial is asserted, and all work is awaited. No mocked auth/fetch or vendor-live claim.

The combined candidate also passed focused lifetime/config/secret tests, targeted types/lint/format, full build, emitted/source import proof, fresh full-PR autoreview and independent source review. Exact-head hosted CI is pending. Census remains explicit-root accounting, not RSS; historical workspace-auth retention is a named follow-up.

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 6, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 6, 2026
@vincentkoc
vincentkoc merged commit b43ad0a into main Nov 6, 2026
285 of 286 checks passed
@vincentkoc
vincentkoc deleted the fix/catalog-remote-registration-lifetime-20261106 branch November 6, 2026 03:32
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
)

* fix(models): avoid reloading plugins on catalog refresh

* fix: refresh the reviewed correction baseline

Baseline-Refresh: 980b94916802b2c089b67bc8cbe79e67b8e9e918

* test(catalog): prove retained auth callbacks before provider HTTP

Co-authored-by: Vincent Koc <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 17, 2026
…9192)

## Problem

After saving a provider key in the Control UI (`models.authSetApiKey`), a live Gateway logged `[plugins] typesafe invalid config: apiKey: must be object` once per prepared model runtime rebuild. The TypeSafe plugin's `apiKey` is a SecretRef object, and its manifest declares it as a secret input, so validation must compare against the authored source, not the resolved string.

Call chain:

1. The auth mutation rebuilds existing prepared-runtime owners (`prepared-model-runtime-auth-publication.ts` → `publishPreparedModelRuntimeOwnerBatch`).
2. Each owner rebuilds from the config it was admitted with, an older runtime generation (`prepared-model-runtime.build.ts`).
3. `projectConfigOntoRuntimeSourceSnapshot` maps that old config onto the current source snapshot. The config write added a top-level `meta` key that the old config lacks, so the projection returns the resolved config as its own source.
4. `loadAgentRuntimePluginRegistryHandle` passes that as `activationSourceConfig`, and plugin config validation sees the resolved string.

## Fix

The runtime snapshot publisher (`publishRuntimeConfigSnapshot`) now records the authored source it publishes with each runtime config object, in a separate map next to the existing captures (`recordPublishedRuntimeConfigSource`). Every publication overwrites it (with the runtime itself when no source is published), so a source republished for the same runtime object (`setRuntimeConfigSourceSnapshotIfCurrent`) stays authoritative. `projectConfigOntoRuntimeSourceSnapshot` uses that record for configs that are not frozen captures, so an older runtime generation projects its own source instead of failing open against a newer one. The record is not a capture: the config keeps its identity, and `captureRuntimeConfig` still freezes an isolated runtime/source pair for rebuilds.

## User impact

Saving a provider key no longer produces false invalid-config errors for plugins with secret inputs, and those plugins validate against their real authored config during rebuilds.

## Proof

- `src/config/runtime-source-projection.test.ts`:
  - "keeps an older runtime generation on its own published source": a held generation still projects its SecretRef after a newer generation adds `meta`, and `captureRuntimeConfig` still returns a frozen copy. Fails on `main` (projects the resolved string).
  - "follows a newer source republished for the same runtime object": republishing the same runtime object with a new source wins, also after the next generation. Fails on the previous head of this PR.
- An isolated Gateway reproduction (TypeSafe with an env SecretRef, bundled plugins on, then `models.authSetApiKey` for `particle`) logged `typesafe invalid config` before the fix and zero after, with `models.list` succeeding. The scratch harness is not committed: it needs a 15 s wait.
- Projection, runtime snapshot, owner, inbound-registry, sources and loader-shared suites pass. `pnpm check:changed` passes. `pnpm check:madge-import-cycles` reports 0 cycles.

Known remaining: `plugins/loader-load-context.ts` (context-engine owner capture) and `decisions/registry-adoption.ts` use the same projection on held configs. They produced no warnings in the reproduction after this fix.

No overlap with Pash/Sarah changes.

## Merge danger

Two-way door: a revert fully undoes it. No state, config or contract change. Blast radius: prepared model runtime rebuilds after config writes.

Co-authored-by: Ayaan Zaidi <[email protected]>

Release adaptation: clean -x backport onto 82f1197; production and regression hunks unchanged. Add a separate 38-line test-budget allocation for the two upstream regression tests; shared scalar unchanged. Preserve baseline e13cf15 and audit pin bd692e9.

Companion dispositions at pinned audit:
- #193903 / b43ad0a: not-applicable; independent catalog/capture-memo optimization, no prerequisite for the source association.
- #196984 / b8980ca: present-equivalent; current reader already follows equivalent runtime copies.
- #199956 / ea69fcb: not-applicable; independent live-reader ownership retention; authored-source association unchanged.
- No later #189192 mention. Existing publication, capture, runtime-plugin, loader and decision consumers retain their interfaces; no generated/registry companion needed. Workflow optimizations excluded from this product-only scope.

Release proof: unmocked production publication/projection regression boundary fails on parent (2 failed, 4 passed) and passes after pick; projection plus snapshot suites 50 passed; retained-runtime plugin consumer suites 18 passed. Targeted type-aware lint (4 files), format and diff checks pass. Upstream live Gateway proof above is historical; this lane does not claim a fresh live Gateway/model run or full release qualification.

Self-review/pr-simplify: retain the minimal separate weak association because raw publication identity and frozen captures have distinct lifetimes. Delta: 27 production and 38 regression lines, plus the 3-line budget record.

(cherry picked from commit 8ca9161)

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 7ddb9e2a14671b47081bec40224e1f6f7316690d)
maplel pushed a commit to maplel/openclaw that referenced this pull request Nov 24, 2026
)

* fix(plugins): portable plugin-state keys for PostgreSQL

Use an exclusive SQL lower bound for Doctor pagination instead of a NUL-suffixed cursor. Reject new NUL keys in test-only plugin-state fixtures while retaining legacy SQLite adoption reads.

Add real PostgreSQL Doctor regression coverage and register it in conformance and database-worker lanes. Refs openclaw#184862 openclaw#188642.

* test: account for rebased plugin-state coverage

* test(clickclack): import legacy revocations before adoption

(cherry picked from commit 395cac7)

Release adaptation: Only exclusive SQL lower bound in kernel and Doctor pagination; preserve legacy SQLite keys and public validation. Regression exercises real Doctor paging and inspected executed SQL bindings; no NUL-key fixture policy, schema or unrelated tests.

Follow-up dispositions: 8253356 fix: preserve child results after source lifecycle changes (openclaw#202708); f3f89c7 fix: show saved child results when completion delivery fails (openclaw#202664); c45faa8 fix: align CI tests with admitted tool calls (openclaw#202655); 5c9389a fix: make channels add report required plugin install failures (openclaw#202091); 52b9188 fix: show hosted model details in `models list` without a Gateway (openclaw#202490); d248a76 fix: show an outcome when kept child chats return no answer (openclaw#202423); 5148804 fix(discord): check a queued message's access again when its turn starts (openclaw#202330); 2470d62 fix: let setup use account models with a fresh catalog (openclaw#202019); 9fa0b92 fix: let PostgreSQL Gateways start with plugin-backed secrets (openclaw#201063); c180824 fix(plugins): Talk and plugin-loading requests fail on PostgreSQL Gateways (openclaw#201976); cb5cfb2 fix: keep a doubtful killed-update recovery on the repair path (openclaw#201361); 17c5fb0 fix(state): PostgreSQL state created before Template bootstrap deferral is refused as schema drift (openclaw#197425); b5c1277 fix: let resumed parents collect children stopped by restart (openclaw#201460); f920a7e chore(postgres): qualify cron completion during graceful shutdown (openclaw#201246); 1680f54 fix(openai): new ChatGPT subscription models missing until an OpenClaw release (openclaw#201130); 0d8820a fix(media): image descriptions use the ChatGPT OAuth route when OpenAI has no API key (openclaw#199299); ee3e16e test(agents): trim and fold low-value regression suites (openclaw#198916); b8029b4 test(agents): qualify PostgreSQL simple-completion acquisition (openclaw#200956); 703c82d fix(sessions): record queued input end causes and recover them across crashes (openclaw#200533); 23fca1a fix: let the next update continue after a killed update when nothing is left to repair (openclaw#200680); d565e17 fix(ci): retire deleted session fork test from inventory (openclaw#200611); 4cf12c6 chore(postgres): qualify prompt refresh and rebalance CI (openclaw#200488); d460273 fix(templates): release earlier Template-managed agents (openclaw#200303); ff75829 fix(update): --no-restart update fails when the Gateway restarts itself during Doctor's stop (openclaw#200181); 0b2ad60 chore(postgres): cover compaction watched-session prompts (openclaw#200117); b90c573 test: consolidate redundant coverage (198795 recut) (openclaw#198943); a042363 test: consolidate redundant coverage (198793, part 2) (openclaw#198936); 9bfad2b test: consolidate suites while retaining recovery owners (openclaw#198933); 4e9812c test: consolidate redundant coverage (198789, part 2) (openclaw#198932); 90814f5 fix(subagents): stops a finished sub-agent's chat being deleted before its parent reads the result; 799bc0b fix(ci): stabilize hourly fixtures and retire unused exports (openclaw#199851); e4a3093 perf(update): replace the candidate canary with a runtime contract check (openclaw#198268); a4cc2ad fix: undo cold-session compaction CPU and latency regressions (openclaw#199561); 55fec79 fix(agents): stop divergent mid-turn overflow recovery (openclaw#199636); 2c4413a fix: reduce Gateway stalls under filesystem pressure (openclaw#197510); 37d977f fix: output reducers are skipped in headless and Code Mode runs (openclaw#199434); c9ee264 fix(compaction): concurrent sessions wait for each other's summaries during compaction (openclaw#196550); 2471ddc feat: let agents review generated images before delivery (openclaw#198227); 21f7dc6 fix(github): publication fails with PostgreSQL session or state stores (openclaw#193749); 63d9e57 fix(ci): new PostgreSQL suites are omitted from conformance (openclaw#198390); 466a4b6 fix(telegram): steered answers quote the wrong input (openclaw#178124); 87b6f52 fix(delivery): resend routed Telegram finals after an ambiguous network failure (openclaw#192779); 68a839b fix: isolate held agent databases until explicit restoration (openclaw#198180); cff99b2 fix(agents): keep provider history append-only across runs (openclaw#197874); 8a328bf feat: add an opt-in usage-ranked tool index (openclaw#197128); 097e648 fix(ci): plan only executable infra tests (openclaw#197911); 76385fd fix(models): discovered models become "Unknown model" after restart or an ended sign-in (openclaw#197784); 89d4177 fix(plugin-state): guarded calls fail until Gateway restart after an unknown write outcome (openclaw#197790); baca36e fix(sessions): commit selected invitations with original messages (openclaw#184512); 699e538 fix(sessions): drain passive notices on sessions_send resumes; d6ded18 chore(ci): drop retired test-lines allocation records (2/3) (openclaw#197656); e0dd020 fix(agents): collect process results at suspended-run capacity; 4897740 feat(auth): preserve delegated OCE user profiles and permissions (openclaw#196856); 7197ce1 feat(templates): install bundled plugins through native management (openclaw#196349); 9c6ee9b feat: let Template automations start paused for onboarding (openclaw#196323); 79a6214 fix(message): retain local final replies in conversation history (openclaw#187795); caa978c feat(templates): open durable chat before verified setup (openclaw#196392); 78e73aa fix(sessions): cold PostgreSQL conversations fail after idle readers close (openclaw#189991); b6ed907 perf(sessions): persist active transcript facts for hydration (openclaw#193682); 1595dd2 feat(plugins): reauthorize accepted session work (openclaw#176886); b43ad0a fix(models): avoid reloading plugins on catalog refresh (openclaw#193903); 0947d02 fix(ci): avoid unrelated PostgreSQL runs and admit owned tests (openclaw#193870); 428ca7d feat(openclaw-id): add Gateway membership authority and publication behind the Labs flag (openclaw#192335); c718583 fix(update): repair refuses forever after a verified update fails a later step (openclaw#193132); 3f64174 fix: deliver background replies after a reload retires the turn registry (openclaw#193130); 982f3b1 fix(imessage): report Automation failures after Gateway updates (openclaw#186117); 31b28e9 fix(agents): wait for a peer OAuth refresh before failing request auth (openclaw#192906); cf50d4a feat(storage): support read-only PostgreSQL standby inspection (openclaw#192645); 82fd4e6 fix(agents): retain stale session target refusal reasons (openclaw#192681); 8ac4e19 fix(worktrees): reserve capacity on PostgreSQL (openclaw#192537); 718b349 fix: reduce session startup stalls under storage contention; 08f4a19 refactor(skills): move Skill Workshop into its bundled plugin (openclaw#192471); 837402a fix(clawrouter): keep upstream credit failures off the shared key (openclaw#192575); f38495f fix(plugins): reject late routing from canceled runs (openclaw#192492); dc5d61a improve(sessions): reduce unnecessary maintenance query rows (openclaw#192023); c4bf0dc fix(sessions): avoid extra maintenance scans for embedded archives (openclaw#184507); e44b3d6 fix(team-reports): recover after database connection loss (openclaw#192020); 991fb33 fix(logbook): recover after database connection loss (openclaw#192011); e6d0d2e fix(test): include omitted PostgreSQL conformance suites (openclaw#191962); da5ff0f fix(codex): reject native hooks from a previous run (openclaw#191788); 09f0b0b feat(plugins): add skill usage runtime for plugins (openclaw#191661); 00b2ff4 fix: parent sessions miss child approvals with a custom session store (openclaw#189827); be44b10 fix: stop completed session writes retaining request data (openclaw#191197); d40aa7c fix(sessions): replay creation requests across Gateway restarts (openclaw#190862); d894035 fix: await Doctor shared-state repair preparation (openclaw#190875); b515cc7 feat: fork threaded conversations with Telegram support (openclaw#190783); def6349 feat(plugins): plugins can run a hidden forked turn of a session with their own tools (openclaw#190950); d983e34 feat(plugins): plugin commands can continue the agent with a replacement prompt, on every channel (openclaw#190908); ea3f0b8 fix(ci): provision Node test prerequisites and retain Baseten routing (openclaw#191050); 29503e1 fix(update): Gateway stays stopped after the updater process dies mid-update (openclaw#188497); fc8c2d0 fix(update): preserve unfinished handoff artifacts (openclaw#190571); 7c26e8c fix(ci): cover PostgreSQL managed update handoffs (openclaw#190336); 4913d41 fix(ci): prevent truncated PostgreSQL target listings (openclaw#189509); 8925f62 fix(gateway): start restored PostgreSQL homes on the first attempt (openclaw#190291); 177fe32 feat(models): preserve inference capabilities in opt-in catalog v3 (openclaw#189678); 7faf32d feat: retain repository disk authority through recovery (openclaw#189106); a658df3 feat(database): capture externally quiesced SQLite migrations; 0f9e7f7 feat(database): capture exact SQLite migration capsules; 4fb684e feat(backup): add PostgreSQL local companion checkpoints; c89a101 fix(doctor): migrate auth profiles on PostgreSQL stores (openclaw#189639); 799de09 fix(ci): split oversized workspace and setup files (openclaw#189356); 21ee847 fix(acp): keep completed run conversations resumable (openclaw#189273); fce0e56 perf(sessions): open cold history without restoring archives (schema 39) (openclaw#188397)

Validation: Baseline1 NUL-binding assertion failure/21passing; candidate22/22passes (188693-green.log). Real SQLite Doctor path and generated SQL proved; no native PostgreSQL server execution claimed.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 0895146d8c1493146f5c6461eee0b10c329bdd1e)
(cherry picked from commit f8ccaa70bc9773d6bbb569bc0e275eee0c544ead)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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