Skip to content

fix: let resumed parents collect children stopped by restart - #201460

Merged
steipete merged 1 commit into
mainfrom
steipete/perf-micro-resumed-agents-wait-on-restart-interrupted-children-20260919
Nov 18, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/perf-micro-resumed-agents-wait-on-restart-interrupted-children-20260919

Conversation

@steipete

@steipete steipete commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

After a Gateway restart, a resumed parent using agents_wait(awaitResults: true) can wait forever for children that shutdown already stopped. The wait ends only when the parent's stall watchdog aborts it.

User Impact

Resumed parents can collect each stopped child's recorded outcome alongside successful results, including when the child ended before the new wait began. Children keep their retired execution authority and do not run again. No configuration, schema, or run-status changes are required.

Why This Change Was Made

Shutdown can record a running collector as terminal before its waitable collector result publishes. Restored execution authority is retired, so the normal kill reconciliation cannot finish that result; the restart sweep also skips executions that already ended. The existing registry restore pass now freezes the missing collector result from the saved terminal outcome and captured payload through the existing durable mutation owner. agents_wait already subscribes before reading persisted results, so it needs no alternate polling or event path.

The production change is eight net lines. That growth supplies the missing recovery operation; it adds no scan, cache, or execution authority. Captured completion delivery addressed in #198905 remains with its existing owner.

Evidence

The real Gateway subprocess regression starts three collectors, saves one success, leaves two running, starts the parent's unbounded wait, and stops/restarts the Gateway. It fails its 12-second recovery bound on base fe83a7e0afa56; it passes with this change, preserving the saved result and recording both stopped outcomes without re-executing either child. A real SQLite owner regression also fails on the base and passes with the fix, including late waiters and retired authority.

Focused proof: two new owner cases, one Gateway restart E2E, 44 existing waiter cases, and nine persistence/restart sibling cases pass. One local test command was interrupted by a log-write ENOSPC; the affected waiter suite was rerun successfully. Codex autoreview of the final local snapshot against fe83a7e0afa56: scoped-clean through P2, no actionable findings.

Synthetic owner measurement uses 10,800 sessions, 4,300 retained collectors, 62,000 workspace files (18,432 bytes each), and a 35.04 GiB agent database on btrfs. The database contains synthetic, compressible identity-encoded archives in the existing archive table; no production data or schema changes. This measures registry restoration and its real worker commit, not transcript scanning or disk pressure. A1/B1/A2/B2 ran serially with five warm samples per arm; allocation and CPU-profile runs are separate.

Linux warm owner metric A1 / A2 baseline B1 / B2 candidate
Waitable retained results 4,284 / 4,284 4,300 / 4,300
Median wall time 6.61 / 6.65 ms 12.18 / 11.70 ms
p95 wall time (five samples/arm) 6.72 / 9.16 ms 15.68 / 12.74 ms
Median process CPU 26.45 / 25.66 ms 34.04 / 34.30 ms
Median sampled allocation (separate arm) 9.54 MB 10.64 MB

Completing the previously missing 16 durable outcomes adds about 5–6 ms warm owner time and 1.1 MB sampled allocation. Already-completed controls remain comparable: 6.47 → 6.98 ms median wall and 25.00 → 25.94 ms process CPU, all 4,300 results waitable. The first standalone owner call includes cold source-module writer bootstrap: 7.81/7.97 ms baseline versus 5.48/5.44 s candidate. Those cold calls are reported separately, not folded into warm medians. The real built-Gateway restart test passes its 12-second recovery bound. This is a correctness repair, not a claim of faster restoration.

Independent macOS controls agree: 5.74 → 5.67 ms wall, 23.19 → 22.69 ms CPU for an already-completed cohort. Initial exploratory timings with incorrect fixture archive deadlines were discarded before comparison.

pnpm check:changed passed, including typechecks, lint, static ratchets, and dead-code checks. Reproduction: pnpm test src/agents/subagents/registry/subagent-registry-restart-collector.test.ts test/gateway-collector-restart.e2e.test.ts --maxWorkers=1. The committed scripts/perf/subagent-collector-restart-measure.ts documents baseline overrides, controls, allocation sampling, and CPU profiles.

Complete missing waitable collector results during registry restoration from the recorded terminal outcome, preserving captured output and retired child authority. A resumed agents_wait can then read stopped children alongside successes without waiting for a new lifecycle event.
@clawsweeper

clawsweeper Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: M labels Nov 18, 2026
@steipete
steipete marked this pull request as ready for review November 18, 2026 21:12
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T21:14:29.850526Z be5f0e9 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

Please review head be5f0e97b38058335cf98a75332959b74be1d911 with the completed restart and synthetic btrfs evidence in the PR body. Focus on recovery of terminal collectors without reviving retired execution authority, preservation of captured results, and late agents_wait reads. Local Codex autoreview is scoped-clean through P2; pnpm check:changed and the focused regressions pass.

@clawsweeper

clawsweeper Bot commented Nov 18, 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-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. 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 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR completes missing collector results during startup so resumed parents can collect children stopped by restart.

Example: A parent waits for three collectors when the Gateway restarts: one has saved CAPTURED_COLLECTOR_RESULT and two are stopped.

  • Before: agents_wait(awaitResults: true) keeps waiting because the stopped children lack collector results.
  • After: The parent receives the saved success and both killed outcomes without executing the children again.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct recovery repair with concrete Gateway output and verified existing-format compatibility; live-provider behavior is not claimed.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): Public runtime output exercises the built Gateway subprocess, real agent/tool execution, SQLite persistence, shutdown, restart, and resumed parent collection against a deterministic HTTP model fixture; saved success survives, stopped children become collectable, and child reexecution is rejected.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A resumed parent can wait indefinitely for children shutdown already stopped.
Reason: The maintainer-authored direction restores collection of existing outcomes while preserving the established restart authority boundary.

Merge readiness

✅ Ready for maintainer review

This PR repairs a current restart-recovery bug without reviving child execution authority. No actionable defects remain; the new evidence resolves the earlier compatibility concern, and required CI is still queued.

Priority: P2
Reviewed head: be5f0e97b38058335cf98a75332959b74be1d911

Before merge

None.

Findings

None.

Agent review details

How this fits together

The subagent registry restores persisted child records at Gateway startup; agents_wait reads their durable collector results under the existing requester ownership checks.

flowchart TD
  A[Gateway shutdown] --> B[Persist terminal child outcomes]
  B --> C[Registry startup restoration]
  C --> D[Existing collector completion writer]
  D --> E[Durable registry mutation]
  E --> F[Resumed parent agents_wait]
Loading

Technical review

Best possible solution:

Complete missing terminal collector results through the existing restore pass and durable writer while retaining saved output and retired execution authority.

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

Current source exposes the missing terminal-result repair, and the supplied regressions reportedly fail on the pinned base and pass on this head; this read-only review did not execute them.

Is this the best way to solve the issue?

This is the smallest complete runtime repair: reuse the collector writer inside restoration instead of adding polling, another recovery owner, or child execution.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Registry metadata restoration keeps the original intent (4e90d15: Select changed resident metadata before hydrating payloads and recompute through the existing FIFO mutation owner.)
  • Recorded subagent ownership keeps the original intent (5bb035b: Require recorded identities and prevent ambiguous cross-owner subagent operations.)
  • Restart execution retirement keeps the original intent (9344233: Resume root conversations through ordinary input while keeping children stopped and historical authority retired.)
  • Database-worker test routing keeps the original intent (test(agents): trim and fold low-value regression suites #198916: Keep consequential regression coverage while removing low-value agent tests and maintaining their execution metadata.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +8, Tests +308, Docs +6, Other +175. Total +497 across 6 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 1 9 1 +8
Tests 3 308 0 +308
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 1 175 0 +175
Total 6 498 1 +497

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 +9/-1 lines; tests +307/-0 lines The small owner repair has distinct SQLite crash/shutdown and late-reader coverage plus a Gateway subprocess restart regression.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: A restart can strand a parent's collector wait, but the failure is limited to interrupted delegated work.
  • 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 (1 earlier review cycle)
  • reviewed 2026-11-18T21:22:01.951Z sha be5f0e9 :: blocked before merge. :: none

Reviewed November 18, 2026, 4:35 PM ET / 21:35 UTC (Revision 2).

@steipete

Copy link
Copy Markdown
Contributor Author

Addressing every item in the latest review at unchanged head be5f0e97b38058335cf98a75332959b74be1d911.

  1. Data-model compatibility proof. This patch does not introduce a data-model change. It completes a missing existing field using the existing writer. Published stable is 2026.11.5; the collector writer in v2026.11.5 is byte-for-byte identical to this PR's writer (git diff of that file between those heads is empty). Stable already defines the same optional collectorCompletion and done | failed | killed | timeout statuses in its persisted read contract. No schema, serializer, status, or config changes are in this diff. The repair at lines 33–49 only fills terminal collectors lacking that field, through the existing durable mutation owner. Existing complete results remain intact.

The real SQLite regression writes and reloads the existing record format, invokes the actual shutdown producer, then reloads again. The late waiter and retired-authority assertions exercise compatibility at the stored-result reader. This is persisted-row compatibility proof plus comparison to the stable contract, not a claim that a full stable-to-main package upgrade was run. I disagree with the report's unsupported assertion that existing stored data may stop loading: the changed path supplies existing metadata rather than changing its format.

The test note requesting concrete runtime output is also addressed below. This was captured from the actual Gateway subprocess restart and real SQLite/tool regressions, using temporary stdout instrumentation around the committed assertions. Production source stayed at the reviewed head; the instrumentation has been removed and the checkout is clean. The model server is a deterministic local HTTP fixture, not a live provider. The Gateway, agent/tool execution, shutdown, disk persistence, restart recovery, and resumed parent are real.

Command (exit 0, all three cases passed):

pnpm test src/agents/subagents/registry/subagent-registry-restart-collector.test.ts test/gateway-collector-restart.e2e.test.ts --maxWorkers=1

Actual synthetic runtime output follows. stopped is read from the SQLite rows after Gateway shutdown, before restart; recovered is read after the resumed parent's successful collection. The captured success survives unchanged; the two null collector results become killed outcomes. first and late are actual agents_wait return objects. No child may execute after restart: the provider-side assertion fails on any such request. The Gateway assertions bound resumed collection to 12 seconds.

RESTART_PROOF crash first={"completed":[{"runId":"captured","status":"done","result":"saved result","sessionKey":"agent:main:subagent:captured","runtimeMs":1},{"runId":"interrupted-1","status":"failed","result":"","error":"The Gateway stopped before this subagent finished. Its run did not survive the restart; inspect its saved work before retrying.","sessionKey":"agent:main:subagent:interrupted-1","runtimeMs":7204},{"runId":"interrupted-2","status":"failed","result":"","error":"The Gateway stopped before this subagent finished. Its run did not survive the restart; inspect its saved work before retrying.","sessionKey":"agent:main:subagent:interrupted-2","runtimeMs":7204}],"pending":[]}
RESTART_PROOF crash late={"completed":[{"runId":"captured","status":"done","result":"saved result","sessionKey":"agent:main:subagent:captured","runtimeMs":1},{"runId":"interrupted-1","status":"failed","result":"","error":"The Gateway stopped before this subagent finished. Its run did not survive the restart; inspect its saved work before retrying.","sessionKey":"agent:main:subagent:interrupted-1","runtimeMs":7204},{"runId":"interrupted-2","status":"failed","result":"","error":"The Gateway stopped before this subagent finished. Its run did not survive the restart; inspect its saved work before retrying.","sessionKey":"agent:main:subagent:interrupted-2","runtimeMs":7204}],"pending":[]}
RESTART_PROOF crash retiredAuthority=3/3
RESTART_PROOF shutdown first={"completed":[{"runId":"captured","status":"done","result":"saved result","sessionKey":"agent:main:subagent:captured","runtimeMs":1},{"runId":"interrupted-1","status":"killed","result":"","error":"Gateway stopped","sessionKey":"agent:main:subagent:interrupted-1","runtimeMs":8020},{"runId":"interrupted-2","status":"killed","result":"","error":"Gateway stopped","sessionKey":"agent:main:subagent:interrupted-2","runtimeMs":8028}],"pending":[]}
RESTART_PROOF shutdown late={"completed":[{"runId":"captured","status":"done","result":"saved result","sessionKey":"agent:main:subagent:captured","runtimeMs":1},{"runId":"interrupted-1","status":"killed","result":"","error":"Gateway stopped","sessionKey":"agent:main:subagent:interrupted-1","runtimeMs":8020},{"runId":"interrupted-2","status":"killed","result":"","error":"Gateway stopped","sessionKey":"agent:main:subagent:interrupted-2","runtimeMs":8028}],"pending":[]}
RESTART_PROOF shutdown retiredAuthority=3/3
RESTART_PROOF stopped=[{"execution":{"status":"terminal","startedAt":1795037349989,"lifecycleGeneration":"70a8ab80-d395-4a30-bdcb-8fb9d05ca084","acceptedAt":1795037349612,"endedAt":1795037350357,"outcome":{"status":"ok","startedAt":1795037349989,"endedAt":1795037350357,"elapsedMs":368}},"collectorCompletion":{"status":"done","usage":{"inputTokens":1,"outputTokens":1}},"result":"CAPTURED_COLLECTOR_RESULT"},{"execution":{"status":"terminal","startedAt":1795037350258,"lifecycleGeneration":"70a8ab80-d395-4a30-bdcb-8fb9d05ca084","acceptedAt":1795037349706,"suppressSessionEffects":true,"endedAt":1795037350456,"outcome":{"status":"error","error":"Gateway stopped","startedAt":1795037350258,"endedAt":1795037350456,"elapsedMs":198}},"collectorCompletion":null,"result":null},{"execution":{"status":"terminal","startedAt":1795037350250,"lifecycleGeneration":"70a8ab80-d395-4a30-bdcb-8fb9d05ca084","acceptedAt":1795037349769,"suppressSessionEffects":true,"endedAt":1795037350456,"outcome":{"status":"error","error":"Gateway stopped","startedAt":1795037350250,"endedAt":1795037350456,"elapsedMs":206}},"collectorCompletion":null,"result":null}]
RESTART_PROOF recovered=[{"execution":{"status":"terminal","startedAt":1795037349989,"lifecycleGeneration":"70a8ab80-d395-4a30-bdcb-8fb9d05ca084","acceptedAt":1795037349612,"endedAt":1795037350357,"outcome":{"status":"ok","startedAt":1795037349989,"endedAt":1795037350357,"elapsedMs":368}},"collectorCompletion":{"status":"done","usage":{"inputTokens":1,"outputTokens":1}},"result":"CAPTURED_COLLECTOR_RESULT"},{"execution":{"status":"terminal","startedAt":1795037350258,"lifecycleGeneration":"70a8ab80-d395-4a30-bdcb-8fb9d05ca084","acceptedAt":1795037349706,"suppressSessionEffects":true,"endedAt":1795037350456,"outcome":{"status":"error","error":"Gateway stopped","startedAt":1795037350258,"endedAt":1795037350456,"elapsedMs":198}},"collectorCompletion":{"status":"killed"},"result":null},{"execution":{"status":"terminal","startedAt":1795037350250,"lifecycleGeneration":"70a8ab80-d395-4a30-bdcb-8fb9d05ca084","acceptedAt":1795037349769,"suppressSessionEffects":true,"endedAt":1795037350456,"outcome":{"status":"error","error":"Gateway stopped","startedAt":1795037350250,"endedAt":1795037350456,"elapsedMs":206}},"collectorCompletion":{"status":"killed"},"result":null}]
RESTART_PROOF parent=ALL_RESTART_RESULTS_COLLECTED childrenSeen=["COLLECTOR_CHILD_0","COLLECTOR_CHILD_2","COLLECTOR_CHILD_1"] noChildReexecution=true

All identifiers and result text above are synthetic. Exact production incident rows were not accessed, so the PR does not claim conclusively to explain those particular warning lines.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Nov 18, 2026
@steipete
steipete enabled auto-merge (squash) November 18, 2026 21:43
@steipete
steipete merged commit b5c1277 into main Nov 18, 2026
239 of 244 checks passed
@steipete
steipete deleted the steipete/perf-micro-resumed-agents-wait-on-restart-interrupted-children-20260919 branch November 18, 2026 22:13
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
…w#201460)

Complete missing waitable collector results during registry restoration from the recorded terminal outcome, preserving captured output and retired child authority. A resumed agents_wait can then read stopped children alongside successes without waiting for a new lifecycle event.
RomneyDa added a commit that referenced this pull request Nov 19, 2026
Complete missing waitable collector results during registry restoration from the recorded terminal outcome, preserving captured output and retired child authority. A resumed agents_wait can then read stopped children alongside successes without waiting for a new lifecycle event.

(cherry picked from commit b5c1277)

Partial backport: retain the existing collector owner, focused regression and lane registration; omit performance tooling and new E2E. Adapt the stale crash fixture to an already-recorded terminal failure under the intentionally lossy #185730 crash contract.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 169b3175851ca722e8df0e23068e84f5a295d2de)
tideclaw-bot added a commit that referenced this pull request Nov 24, 2026
Baseline adaptation: Settle terminal collector rows through the .33 metadata-restore transaction and prove durable visibility from agents_wait in the real worker shard.

(cherry picked from commit b5c1277)

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 08bacfd51309006562aab5d38f6e6987b77455b6)
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 docs Improvements or additions to documentation gateway Gateway runtime 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: 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