Skip to content

refactor: simplify SQLite worker lifecycle and test fixtures - #157458

Merged
steipete merged 2 commits into
mainfrom
codex/worker-lifecycle-deslop
Sep 24, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/worker-lifecycle-deslop

Conversation

@steipete

@steipete steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

SQLite worker lifecycle code and its tests repeated context capture, cleanup, command interception, and main-thread SQL observation. One copied maintenance-kind allowlist also dropped state-migrations errors crossing the worker boundary.

User Impact

State-migration failures retain their maintenance classification after worker transport. Hosted Doctor keeps using its process owner. This cleanup does not change database schemas, durability, lock authority, queue limits, or cancellation behavior.

Why This Change Was Made

Use the existing maintenance owner for error classification, share context capture and settlement cleanup, and remove the unused in-process Doctor injection. Consolidate repeated test fixtures and SQL observers while retaining native-method calibration, specialized probes, cleanup order, and lifecycle/admission arguments.

The cleanup removes 1,006 net lines, including all new helpers: 50 production lines and 956 test/fixture lines. Close-retry coverage remains a four-case matrix. The removed assertion-free reference-count smoke is covered more strongly by the retained tests of both release orders, native connection ownership, and final close.

Evidence

Final CI run passed on c3882a716065. The architecture job passed in 331s; 104 Node test jobs passed in 66–644s each (whole-job wall time, including setup).

  • 906 tests passed across 93 owner/consumer files using the repository wrapper with --maxWorkers=1; 19 fixture tests passed again after the lint-only cleanup.
  • Direct error-transport regression failed before the state-migrations repair and passed afterward. The 69-case error suite and metadata sibling passed.
  • The contention test observed continued main-loop progress while the worker waited for a native write lock; cold reads, concurrent task writes, retained snapshots, cancellation, and committed-result recovery also passed.
  • Changed-file validation passed production typechecking and all 25 selected test graphs. Lint initially found an unused fixture binding and an unbound fixture method; both were corrected. Final lint, the affected test-type graph, and every remaining changed-file guard passed (schema, storage, runtime loading, import cycles, webhook ordering, and pairing authorization).
  • Two isolated reviews of the full cleanup and a supplemental review of the later helper rename found no actionable P0–P2 findings.

CI caught the calibration helper being classified as production SQL. It now uses the existing .test-support.ts convention; all 77 test imports moved together and the helper body is byte-identical. The exact pnpm lint:kysely failure and final lint pass, and all 77 observer consumers passed 895 tests with four workers in 362.24s. No guard or allowlist was changed.

ClawSweeper reported no concrete code defects. Its data-model/config compatibility flags do not apply: the calibration opens only :memory:, closes it in finally, and changes no persisted tables, configuration schema, defaults, or upgrade contract.

The new native SQL-observer test took 5ms. Native process/SQLite tests ran locally on macOS/Node; this is not a live Gateway deployment or Windows-host proof.

Per-file test execution time for the original cleanup (one worker)

Totals below sum Vitest’s reported case durations; they exclude module import/setup. The two invocations took 35.96s and 855.33s wall time. Existing session-group and worker-store suites exceed 30s because they exercise native database ownership, reopen, cancellation, and recovery across multiple failure cases; the cleanup retains those contracts. No sleeps, retries, process boots, or serial test configuration were added.

Test file Test time
src/agents/agent-bundle-mcp-requester-connect.read.test.ts 0.468s
src/agents/mcp-oauth-provider.read.test.ts 2.324s
src/agents/sandbox/registry-read.test.ts 11.666s
src/agents/tools/transcripts-tool-read.test.ts 7.307s
src/agents/worktrees/registry-read.test.ts 3.447s
src/agents/worktrees/service.removal-recovery.windows.test.ts 12.225s
src/audit/audit-event-writer.worker.test.ts 1.411s
src/commands/agents.commands.list.worker.test.ts 3.263s
src/commands/doctor-db-bloat.worker.test.ts 3.017s
src/commands/doctor-device-pairing.worker.test.ts 2.294s
src/commands/doctor-skill-workshop-sqlite.readonly.test.ts 14.373s
src/cron/store.worker.test.ts 5.439s
src/fleet/registry-read.test.ts 11.160s
src/gateway/board-store.test.ts 5.653s
src/gateway/health/collector.session-row-projection.test.ts 5.804s
src/gateway/managed-image-record-store.test.ts 5.917s
src/gateway/operator-approval-store.worker.test.ts 7.424s
src/gateway/server-methods/audit.trim.store.test.ts 3.691s
src/gateway/server-methods/session-row-facts.test.ts 5.696s
src/gateway/server-methods/sessions-row-projection.sqlite.test.ts 11.013s
src/gateway/server-methods/update-status.test.ts 4.326s
src/gateway/server-methods/users-enumeration.worker.test.ts 1.378s
src/gateway/server-worker-placement-session-evidence.test.ts 14.467s
src/gateway/session-groups.test.ts 59.863s
src/gateway/session-row-projection.recovery.test.ts 21.646s
src/gateway/sessions-resolve.resident.test.ts 13.361s
src/gateway/worker-environments/placement-change-snapshot.test.ts 1.751s
src/gateway/worker-environments/placement-read-projection.worker.test.ts 3.025s
src/gateway/worker-environments/worker-turn-execution.test.ts 22.428s
src/infra/exec-approvals-store.read-worker.test.ts 5.603s
src/infra/session-delivery-queue.storage.test.ts 8.202s
src/infra/sqlite-coordinator.idle.test.ts 1.683s
src/infra/sqlite-coordinator.test.ts 0.997s
src/infra/sqlite-worker-broker-reply.cleanup.test.ts 0.073s
src/infra/sqlite-worker-broker.test.ts 8.033s
src/infra/sqlite-worker-input.test.ts 5.797s
src/infra/sqlite-worker-managed-task-link.test.ts 21.865s
src/infra/sqlite-worker-open-refusal.test.ts 1.768s
src/infra/sqlite-worker-preparation.test.ts 6.316s
src/infra/sqlite-worker-store.existing.test.ts 9.629s
src/infra/sqlite-worker-store.generation.test.ts 1.665s
src/infra/sqlite-worker-store.test.ts 30.681s
src/infra/sqlite-worker-task-flow-reconciliation.test.ts 7.985s
src/infra/sqlite-worker-task-flow-restore-admission.test.ts 4.003s
src/infra/sqlite-worker-task-run-lookup.test.ts 3.057s
src/infra/sqlite-worker-task-runtime.test.ts 23.777s
src/infra/sqlite-worker-terminal-admission.test.ts 5.797s
src/infra/sqlite-worker-transcripts.export-settlement.test.ts 0.636s
src/infra/sqlite-worker-transcripts.test.ts 10.676s
src/infra/sqlite-worker-transfer.test.ts 0.275s
src/infra/state-database-coordinator-delegate.test.ts 0.021s
src/infra/state-database-coordinator.test.ts 0.348s
src/infra/update-run-reader.test.ts 13.995s
src/node-host/config-read.test.ts 3.496s
src/plugins/conversation-binding.worker.test.ts 5.759s
src/plugins/official-external-plugin-catalog-snapshot-store.worker.test.ts 0.560s
src/plugins/plugin-metadata-state-worker.test.ts 6.817s
src/skills/library/resource-read.test.ts 7.660s
src/skills/runtime/embedded-run-entries.library-read.test.ts 2.424s
src/state/backup-run-records.test.ts 3.787s
src/state/openclaw-state-read.existing-schema.test.ts 6.822s
src/state/openclaw-state-worker-error.test.ts 0.211s
src/state/user-profile-writes.role.test.ts 4.565s
src/state/user-profiles.avatar-worker.test.ts 12.050s
src/system-agent/operations.tui.test.ts 0.020s
src/system-agent/rescue-message.test.ts 5.968s
src/tasks/task-registry-snapshot-read.test.ts 0.587s
src/tasks/task-registry.async-restore.test.ts 2.403s
src/tasks/task-status.worker.test.ts 6.462s
src/test-utils/main-thread-sql-spies.test.ts 0.005s

@clawsweeper

clawsweeper Bot commented Sep 24, 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.

@steipete
steipete marked this pull request as ready for review September 24, 2026 17:55
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime commands Command implementations agents Agent runtime and tooling fleet size: XL labels Sep 24, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 24, 2026, 2:28 PM ET / 18:28 UTC (Revision 2).

ClawSweeper review

What this changes

The branch consolidates SQLite worker lifecycle code and test fixtures, restores maintenance-error classification across worker transport, and routes System Agent Doctor through its hosted process.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open. Current main still drops the state-migrations maintenance identity during worker-error decoding, so the branch has a useful change to land. The earlier config-upgrade concern is unsupported by the inspected diff.

Priority: P2
Reviewed head: c3882a716065a5c082e9bd33c304bd5381c3d80a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The repair is coherent and has relevant native-worker validation, with no actionable defect found in the inspected patch.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: Repository State identifies the author as a member, so the external-contributor proof gate does not apply. The PR describes native Node/macOS SQLite and worker tests, including contention recovery, but no live Gateway or Windows run; the diff changes no stored-data contract.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository State identifies the author as a member, so the external-contributor proof gate does not apply. The PR describes native Node/macOS SQLite and worker tests, including contention recovery, but no live Gateway or Windows run; the diff changes no stored-data contract.
Evidence reviewed 9 items Current-main gap: The current-main decoder uses a copied maintenance-kind predicate that omits state-migrations, although the startup-maintenance owner defines that kind.
Introduced repair: The pinned PR head decodes maintenance errors using the startup-maintenance owner's predicate.
Regression coverage: The worker-error round-trip test includes state-migrations and checks its restored maintenance reason.
Findings None None.
Security None None.

How this fits together

OpenClaw sends state-database work from Gateway and agent callers to SQLite workers. The worker lifecycle coordinates database access and returns results or classified errors to those callers.

flowchart LR
  A[Gateway and agent callers] --> B[SQLite worker broker]
  B --> C[Lifecycle coordination]
  C --> D[SQLite worker]
  D --> E[Result or error]
  E --> F[Maintenance classification]
  F --> G[Caller response]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

None.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep worker-error classification tied to the startup-maintenance owner while preserving the existing coordinator path and hosted Doctor contracts.

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

Yes, at source level: current main produces a state-migrations maintenance kind that its worker-error decoder does not recognize. This read-only review did not execute a runtime reproduction.

Is this the best way to solve the issue?

Yes. Reusing the maintenance owner's kind predicate removes the copied list that caused the classification gap, and the inspected lifecycle refactor retains the existing path builder.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against ed96ab858b57.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded worker-error repair and lifecycle cleanup with limited demonstrated user impact.
  • 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. Not applicable: Repository State identifies the author as a member, so the external-contributor proof gate does not apply. The PR describes native Node/macOS SQLite and worker tests, including contention recovery, but no live Gateway or Windows run; the diff changes no stored-data contract.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-24T18:05:22.690Z sha 198ecfc :: blocked before merge. :: none

@steipete
steipete enabled auto-merge (squash) September 24, 2026 18:31
@steipete
steipete merged commit c447b87 into main Sep 24, 2026
220 of 221 checks passed
@steipete
steipete deleted the codex/worker-lifecycle-deslop branch September 24, 2026 18:39
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Sep 24, 2026
* commit '926bb1e1d75c6b102bcbf93114c690312c23cf18': (2027 commits)
  refactor(matrix): reuse startup verification account key (#157310)
  perf(config): avoid repeated environment scans during publication (#156457)
  chore(i18n): refresh native locales (#157495)
  fix(update): show quiet step progress and date recorded outcomes (#153407)
  feat(gateway): preserve browser sign-in requirements before connecting (#157454)
  test(scripts): await CLI admission fixture lifetimes (#157424)
  fix(ci): preserve consumer selection across core type stripes (#157373)
  fix(wizard): preserve typed plugin enum values (#127577) (#138090)
  fix(qa): title mock Code Mode fixture calls
  refactor: simplify SQLite worker lifecycle and test fixtures (#157458)
  test: prebuild run-node signal fixture (#157478)
  refactor(exec): reuse approval policy rule keys (#157198)
  fix(ci): reuse prepared runtime for changed-target E2E shards (#157365)
  fix(config): apply Gateway writes without waiting for file events (#157372)
  fix: count recorded nested tool operations once (#157438)
  fix(telegram): stop leaking raw file:// markdown links in messages (#137810)
  refactor(claws): share resource capability changes (#154680)
  improve(channels): reduce redundant preparation for button messages (#157050)
  fix(build): package preparation fails on unrelated test types (#157318)
  refactor(claws): share bounded document reading (#157436)
  ...
vincentkoc added a commit that referenced this pull request Sep 24, 2026
* refactor(config): share config doc wildcard traversal

* refactor(config): refresh wildcard traversal on frozen main

Integrate the frozen main baseline while preserving the documentation wildcard extraction and its public renderer coverage.

* chore: merge main for config doc validation

* commit '926bb1e1d75c6b102bcbf93114c690312c23cf18': (2027 commits)
  refactor(matrix): reuse startup verification account key (#157310)
  perf(config): avoid repeated environment scans during publication (#156457)
  chore(i18n): refresh native locales (#157495)
  fix(update): show quiet step progress and date recorded outcomes (#153407)
  feat(gateway): preserve browser sign-in requirements before connecting (#157454)
  test(scripts): await CLI admission fixture lifetimes (#157424)
  fix(ci): preserve consumer selection across core type stripes (#157373)
  fix(wizard): preserve typed plugin enum values (#127577) (#138090)
  fix(qa): title mock Code Mode fixture calls
  refactor: simplify SQLite worker lifecycle and test fixtures (#157458)
  test: prebuild run-node signal fixture (#157478)
  refactor(exec): reuse approval policy rule keys (#157198)
  fix(ci): reuse prepared runtime for changed-target E2E shards (#157365)
  fix(config): apply Gateway writes without waiting for file events (#157372)
  fix: count recorded nested tool operations once (#157438)
  fix(telegram): stop leaking raw file:// markdown links in messages (#137810)
  refactor(claws): share resource capability changes (#154680)
  improve(channels): reduce redundant preparation for button messages (#157050)
  fix(build): package preparation fails on unrelated test types (#157318)
  refactor(claws): share bounded document reading (#157436)
  ...

Co-authored-by: Vincent Koc <[email protected]>
vincentkoc added a commit that referenced this pull request Sep 24, 2026
* commit 'a0905dfe5c17053a3f0ef2aa0cf8f421bce9381c': (75 commits)
  fix: preserve conversation titles across split-pane agent switches (#157482)
  test(gateway): settle resumed work before checking announcement
  fix(update): avoid socket-arrival assumptions in deadline tests (#157504)
  fix(ci): include Android Access in release coordination
  refactor: share LINE message context test fixtures (#157488)
  refactor(matrix): reuse startup verification account key (#157310)
  perf(config): avoid repeated environment scans during publication (#156457)
  chore(i18n): refresh native locales (#157495)
  fix(update): show quiet step progress and date recorded outcomes (#153407)
  feat(gateway): preserve browser sign-in requirements before connecting (#157454)
  test(scripts): await CLI admission fixture lifetimes (#157424)
  fix(ci): preserve consumer selection across core type stripes (#157373)
  fix(wizard): preserve typed plugin enum values (#127577) (#138090)
  fix(qa): title mock Code Mode fixture calls
  refactor: simplify SQLite worker lifecycle and test fixtures (#157458)
  test: prebuild run-node signal fixture (#157478)
  refactor(exec): reuse approval policy rule keys (#157198)
  fix(ci): reuse prepared runtime for changed-target E2E shards (#157365)
  fix(config): apply Gateway writes without waiting for file events (#157372)
  fix: count recorded nested tool operations once (#157438)
  ...
vincentkoc added a commit that referenced this pull request Sep 24, 2026
* commit '926bb1e1d75c6b102bcbf93114c690312c23cf18': (1903 commits)
  refactor(matrix): reuse startup verification account key (#157310)
  perf(config): avoid repeated environment scans during publication (#156457)
  chore(i18n): refresh native locales (#157495)
  fix(update): show quiet step progress and date recorded outcomes (#153407)
  feat(gateway): preserve browser sign-in requirements before connecting (#157454)
  test(scripts): await CLI admission fixture lifetimes (#157424)
  fix(ci): preserve consumer selection across core type stripes (#157373)
  fix(wizard): preserve typed plugin enum values (#127577) (#138090)
  fix(qa): title mock Code Mode fixture calls
  refactor: simplify SQLite worker lifecycle and test fixtures (#157458)
  test: prebuild run-node signal fixture (#157478)
  refactor(exec): reuse approval policy rule keys (#157198)
  fix(ci): reuse prepared runtime for changed-target E2E shards (#157365)
  fix(config): apply Gateway writes without waiting for file events (#157372)
  fix: count recorded nested tool operations once (#157438)
  fix(telegram): stop leaking raw file:// markdown links in messages (#137810)
  refactor(claws): share resource capability changes (#154680)
  improve(channels): reduce redundant preparation for button messages (#157050)
  fix(build): package preparation fails on unrelated test types (#157318)
  refactor(claws): share bounded document reading (#157436)
  ...
vincentkoc added a commit that referenced this pull request Sep 24, 2026
* refactor(acp): consolidate scalar runtime option validation

* chore: merge main for ACP validation

* commit 'a0905dfe5c17053a3f0ef2aa0cf8f421bce9381c': (75 commits)
  fix: preserve conversation titles across split-pane agent switches (#157482)
  test(gateway): settle resumed work before checking announcement
  fix(update): avoid socket-arrival assumptions in deadline tests (#157504)
  fix(ci): include Android Access in release coordination
  refactor: share LINE message context test fixtures (#157488)
  refactor(matrix): reuse startup verification account key (#157310)
  perf(config): avoid repeated environment scans during publication (#156457)
  chore(i18n): refresh native locales (#157495)
  fix(update): show quiet step progress and date recorded outcomes (#153407)
  feat(gateway): preserve browser sign-in requirements before connecting (#157454)
  test(scripts): await CLI admission fixture lifetimes (#157424)
  fix(ci): preserve consumer selection across core type stripes (#157373)
  fix(wizard): preserve typed plugin enum values (#127577) (#138090)
  fix(qa): title mock Code Mode fixture calls
  refactor: simplify SQLite worker lifecycle and test fixtures (#157458)
  test: prebuild run-node signal fixture (#157478)
  refactor(exec): reuse approval policy rule keys (#157198)
  fix(ci): reuse prepared runtime for changed-target E2E shards (#157365)
  fix(config): apply Gateway writes without waiting for file events (#157372)
  fix: count recorded nested tool operations once (#157438)
  ...

Co-authored-by: Vincent Koc <[email protected]>
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
vincentkoc added a commit that referenced this pull request Sep 24, 2026
* refactor(agents): centralize tool description exclusions

* Merge main into refactor/tool-description-exclusions-20260915

* commit '84114b5a2711764e2ca333e327e808fd88316063': (40 commits)
  improve(sessions): reuse compiled transcript metadata queries (#148773)
  fix(ci): repair Copilot contracts and config failure diagnostics (#149001)
  test: align model auth and setup fixtures with current behavior (#149023)
  refactor: reuse web search request context (#148949)
  fix(ci): remove duplicate Copilot auth metadata (#149016)
  test(agents): align auth fixtures with runtime store reads (#149004)
  improve: reduce data fetched during reminder maintenance (#148996)
  fix(cron): skip availability checks when session pruning is idle (#148920)
  fix(auth): guard GitHub Copilot device flow authority (#148999)
  fix(agents): prevent early recovery aborts of foreground exec (#148959)
  fix(github-copilot): remove retired Raptor mini (#116505)
  improve(feishu): reduce preparation work for documents with tables (#148997)
  improve: reduce database work when recording participants (#148841)
  test: accept Bun error labels in plugin assertions (#148955)
  fix(models): clarify saved account health and catalog status (#148987)
  test(plugins): align Copilot auth-choice registry expectations (#148981)
  fix(channels): reject blank integer channel add options (#145534)
  fix(ui): preserve archive undo after chat navigation (#148831)
  feat: show cited source previews in macOS and iOS chat (#148906)
  fix: avoid redundant tab updates while chats stream (#148865)
  ...

* refactor(agents): consolidate tool description exclusions

* chore: merge main for tool summary validation

* commit '926bb1e1d75c6b102bcbf93114c690312c23cf18': (1903 commits)
  refactor(matrix): reuse startup verification account key (#157310)
  perf(config): avoid repeated environment scans during publication (#156457)
  chore(i18n): refresh native locales (#157495)
  fix(update): show quiet step progress and date recorded outcomes (#153407)
  feat(gateway): preserve browser sign-in requirements before connecting (#157454)
  test(scripts): await CLI admission fixture lifetimes (#157424)
  fix(ci): preserve consumer selection across core type stripes (#157373)
  fix(wizard): preserve typed plugin enum values (#127577) (#138090)
  fix(qa): title mock Code Mode fixture calls
  refactor: simplify SQLite worker lifecycle and test fixtures (#157458)
  test: prebuild run-node signal fixture (#157478)
  refactor(exec): reuse approval policy rule keys (#157198)
  fix(ci): reuse prepared runtime for changed-target E2E shards (#157365)
  fix(config): apply Gateway writes without waiting for file events (#157372)
  fix: count recorded nested tool operations once (#157438)
  fix(telegram): stop leaking raw file:// markdown links in messages (#137810)
  refactor(claws): share resource capability changes (#154680)
  improve(channels): reduce redundant preparation for button messages (#157050)
  fix(build): package preparation fails on unrelated test types (#157318)
  refactor(claws): share bounded document reading (#157436)
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…w#157458)

* refactor: simplify SQLite worker lifecycle and test fixtures

* test: classify native SQL observers as test support
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
* refactor(config): share config doc wildcard traversal

* refactor(config): refresh wildcard traversal on frozen main

Integrate the frozen main baseline while preserving the documentation wildcard extraction and its public renderer coverage.

* chore: merge main for config doc validation

* commit 'e0f58a77476acbe382bff5e55cd520e9d228d478': (2027 commits)
  refactor(matrix): reuse startup verification account key (openclaw#157310)
  perf(config): avoid repeated environment scans during publication (openclaw#156457)
  chore(i18n): refresh native locales (openclaw#157495)
  fix(update): show quiet step progress and date recorded outcomes (openclaw#153407)
  feat(gateway): preserve browser sign-in requirements before connecting (openclaw#157454)
  test(scripts): await CLI admission fixture lifetimes (openclaw#157424)
  fix(ci): preserve consumer selection across core type stripes (openclaw#157373)
  fix(wizard): preserve typed plugin enum values (openclaw#127577) (openclaw#138090)
  fix(qa): title mock Code Mode fixture calls
  refactor: simplify SQLite worker lifecycle and test fixtures (openclaw#157458)
  test: prebuild run-node signal fixture (openclaw#157478)
  refactor(exec): reuse approval policy rule keys (openclaw#157198)
  fix(ci): reuse prepared runtime for changed-target E2E shards (openclaw#157365)
  fix(config): apply Gateway writes without waiting for file events (openclaw#157372)
  fix: count recorded nested tool operations once (openclaw#157438)
  fix(telegram): stop leaking raw file:// markdown links in messages (openclaw#137810)
  refactor(claws): share resource capability changes (openclaw#154680)
  improve(channels): reduce redundant preparation for button messages (openclaw#157050)
  fix(build): package preparation fails on unrelated test types (openclaw#157318)
  refactor(claws): share bounded document reading (openclaw#157436)
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…#157446)

* refactor(acp): consolidate scalar runtime option validation

* chore: merge main for ACP validation

* commit 'a2532ef8d2eb80fd2fd391ef7ea645c051f8be9c': (75 commits)
  fix: preserve conversation titles across split-pane agent switches (openclaw#157482)
  test(gateway): settle resumed work before checking announcement
  fix(update): avoid socket-arrival assumptions in deadline tests (openclaw#157504)
  fix(ci): include Android Access in release coordination
  refactor: share LINE message context test fixtures (openclaw#157488)
  refactor(matrix): reuse startup verification account key (openclaw#157310)
  perf(config): avoid repeated environment scans during publication (openclaw#156457)
  chore(i18n): refresh native locales (openclaw#157495)
  fix(update): show quiet step progress and date recorded outcomes (openclaw#153407)
  feat(gateway): preserve browser sign-in requirements before connecting (openclaw#157454)
  test(scripts): await CLI admission fixture lifetimes (openclaw#157424)
  fix(ci): preserve consumer selection across core type stripes (openclaw#157373)
  fix(wizard): preserve typed plugin enum values (openclaw#127577) (openclaw#138090)
  fix(qa): title mock Code Mode fixture calls
  refactor: simplify SQLite worker lifecycle and test fixtures (openclaw#157458)
  test: prebuild run-node signal fixture (openclaw#157478)
  refactor(exec): reuse approval policy rule keys (openclaw#157198)
  fix(ci): reuse prepared runtime for changed-target E2E shards (openclaw#157365)
  fix(config): apply Gateway writes without waiting for file events (openclaw#157372)
  fix: count recorded nested tool operations once (openclaw#157438)
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…8966)

* refactor(agents): centralize tool description exclusions

* Merge main into refactor/tool-description-exclusions-20260915

* commit '4a994031abb1b54d51b76755a55ac8f6e918162d': (40 commits)
  improve(sessions): reuse compiled transcript metadata queries (openclaw#148773)
  fix(ci): repair Copilot contracts and config failure diagnostics (openclaw#149001)
  test: align model auth and setup fixtures with current behavior (openclaw#149023)
  refactor: reuse web search request context (openclaw#148949)
  fix(ci): remove duplicate Copilot auth metadata (openclaw#149016)
  test(agents): align auth fixtures with runtime store reads (openclaw#149004)
  improve: reduce data fetched during reminder maintenance (openclaw#148996)
  fix(cron): skip availability checks when session pruning is idle (openclaw#148920)
  fix(auth): guard GitHub Copilot device flow authority (openclaw#148999)
  fix(agents): prevent early recovery aborts of foreground exec (openclaw#148959)
  fix(github-copilot): remove retired Raptor mini (openclaw#116505)
  improve(feishu): reduce preparation work for documents with tables (openclaw#148997)
  improve: reduce database work when recording participants (openclaw#148841)
  test: accept Bun error labels in plugin assertions (openclaw#148955)
  fix(models): clarify saved account health and catalog status (openclaw#148987)
  test(plugins): align Copilot auth-choice registry expectations (openclaw#148981)
  fix(channels): reject blank integer channel add options (openclaw#145534)
  fix(ui): preserve archive undo after chat navigation (openclaw#148831)
  feat: show cited source previews in macOS and iOS chat (openclaw#148906)
  fix: avoid redundant tab updates while chats stream (openclaw#148865)
  ...

* refactor(agents): consolidate tool description exclusions

* chore: merge main for tool summary validation

* commit 'e0f58a77476acbe382bff5e55cd520e9d228d478': (1903 commits)
  refactor(matrix): reuse startup verification account key (openclaw#157310)
  perf(config): avoid repeated environment scans during publication (openclaw#156457)
  chore(i18n): refresh native locales (openclaw#157495)
  fix(update): show quiet step progress and date recorded outcomes (openclaw#153407)
  feat(gateway): preserve browser sign-in requirements before connecting (openclaw#157454)
  test(scripts): await CLI admission fixture lifetimes (openclaw#157424)
  fix(ci): preserve consumer selection across core type stripes (openclaw#157373)
  fix(wizard): preserve typed plugin enum values (openclaw#127577) (openclaw#138090)
  fix(qa): title mock Code Mode fixture calls
  refactor: simplify SQLite worker lifecycle and test fixtures (openclaw#157458)
  test: prebuild run-node signal fixture (openclaw#157478)
  refactor(exec): reuse approval policy rule keys (openclaw#157198)
  fix(ci): reuse prepared runtime for changed-target E2E shards (openclaw#157365)
  fix(config): apply Gateway writes without waiting for file events (openclaw#157372)
  fix: count recorded nested tool operations once (openclaw#157438)
  fix(telegram): stop leaking raw file:// markdown links in messages (openclaw#137810)
  refactor(claws): share resource capability changes (openclaw#154680)
  improve(channels): reduce redundant preparation for button messages (openclaw#157050)
  fix(build): package preparation fails on unrelated test types (openclaw#157318)
  refactor(claws): share bounded document reading (openclaw#157436)
  ...

Co-authored-by: Vincent Koc <[email protected]>
karmafeast pushed a commit to karmaterminal/openclaw that referenced this pull request Sep 26, 2026
Put back upstream b1c68b9 content that the continuation line had
silently reverted in shared files. Every row has a keep/restore
disposition recorded in the round journal. Feature hunks are preserved.

Production:
- announce deps: use callSubagentLifecycleGateway for the wake and
  cleanup deps (openclaw#146369 inherited Gateway binding).
- reply-delivery: clear blockSourceText on superseded deferred replies
  (openclaw#143722).
- stream-rendering: record a block reply as delivered only when it has
  text (openclaw#135751).
- gateway runtime handles: carry hotReloadStatus through the managed
  reload.
- sweep-kill and sweeper: honor retired cancellations
  (reconcileRetiredSubagentCancellation), and pass the run's Gateway
  context resolver into sweep session deletes.
- registry read: per-child snapshot reads (openclaw#154727), so the Gateway
  event loop is not blocked.
- session delivery queue: read the post-enqueue status inside the SQLite
  worker instead of on the main thread, restoring the openclaw#147887 invariant.

Tests restored to upstream's coverage:
- task-registry kernel test: back to upstream's kernel functions.
- double-announce: real outbound adapter retry outcomes (openclaw#131419).
- side-question: listener-failure hooks case (openclaw#144828).
- session-delivery storage: main-thread-SQL idle assertion (openclaw#157458).
- media-only: the re-resolved auth selection assertion.
- resume persistence: activation uses the real recovery-runtime shape.

The resume "steered requester turn" test was adapted for upstream's
async task lookup (openclaw#157634). Its stub now settles like the real waker,
and the test waits for settle before an exact count, with a
no-pending-wake assertion added.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Fq5EX9ESA3CG9cuZxVoKAK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations fleet gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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