Skip to content

refactor(cron): centralize durable run queue and launch ownership - #169364

Merged
steipete merged 7 commits into
mainfrom
upd/upd-l1559
Oct 12, 2026
Merged

steipete merged 7 commits into
mainfrom
upd/upd-l1559

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Cron queueing and activation were split between host reservations and persisted receipts, leaving capacity, accepted manual runs, and restart recovery with competing owners.

Refs #168072.

User Impact

Timer, manual, and event requests use one durable queue and one concurrency limit. Explicit force still runs disabled jobs, consumed exit events and stream batches retain their payloads, queued edits take effect before launch, and cancelled requests settle promptly even when all execution slots are occupied.

No schema, dependency, config, or CLI changes. Existing receipt IDs and history joins stay intact. Recovery resumes identifiable timed requests and records requests with unrecoverable launch context as skipped. Uncertain active runs are interrupted, not replayed. The accepted active-commit-to-launch crash window can miss an occurrence, and a disable can race dispatch.

Why This Change Was Made

This is 2b-i: queue and launcher of the worker-owned cron redesign. The SQLite worker owns idempotent receipt requests, queue order, capacity, and activation. Timed IDs encode tagged [storeKey, jobId, scheduledSlotMs] tuples; manual/event requests have distinct IDs. A small host launcher checks live Gateway/job eligibility after commit and calls the existing executor. Host reservations, capacity bookkeeping, and obsolete command-lane marker plumbing are removed. 2b-ii will move schedule computation, timers, and wake production; they remain on the host here.

The cutover also fixes timeout-capacity accounting (active markers, rather than receipts awaiting physical executor settlement) and markerless-receipt recovery. Launched runs retain their caller and Gateway lifetime beyond request acknowledgement. Deferred cleanup joins that launcher scope, and test teardown waits for the launcher before closing state.

The scope correction removes all 21 UI changes and 20 other unrelated files introduced by validation cleanup. Session storage, session sending, updater, plugin-state, validation-cache, and unrelated Gateway fixture changes are restored to the PR base. No UI changes remain in the PR.

Outside src/cron, the retained implementation is the heartbeat caller adaptation required by removal of command-lane task markers. Other retained callers are cron tests: the standing-grant and monitor fixtures import the moved receipt test helpers, the requester-authority fixture drains cron before closing state, and the Gateway cron/close tests and shared cron helpers cover the new queue contract. The design document records the 2b-i/2b-ii split.

Evidence

Current scope correction — c79d4e1ebbe725d68a282d64a6d204eccadaeab7

  • Every formerly changed UI file matches PR base 042db1e7064930a08c534c4487864d7bfb8c5287; git diff $(git merge-base origin/main HEAD) HEAD --stat -- ui is empty after the correction commit. The remaining path inventory contains only cron, Gateway cron integration, the required heartbeat caller, cron tests/helpers, and the design document.
  • Focused local proof: 25 files / 333 tests passed, no unhandled errors; 193.53s wall time across the four routed shards. This includes duplicate slots, capacity, disable/edit, disabled force, consumed exit/stream payloads, request/active recovery, launcher lifetime, shutdown, standing-grant consumers, and heartbeat event ownership.
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.ui-components.json: passed, including the MCP app tests that failed when unrelated element-type changes were present.
  • node --import ./scripts/tsx.mjs scripts/check-madge-import-cycles.ts: 0 cycles.
  • check:changed passed the scope ratchets, formatting, core production types, all 28 core test type graphs, root test types, and the preceding guards, then stopped on 84 unique unused-export findings. The same export scanner was run against the exact PR base in this worktree; its finding set was identical (84/84; zero candidate-only entries). The final staged tree was restored and verified exactly afterward. No exports, suppressions, or baselines were changed to bypass this result.
  • Remaining checks were run separately. Core lint has 13 inherited errors in source files byte-identical to the same base, with unchanged lint configuration: 12 maximum-line errors and one typescript(no-misused-promises) in ui/src/components/session-group-defaults-dialog.tsx:422. The changed-file line-cap growth ratchet passes. Script lint, schema consistency, database-first storage, sidecar, import-cycle, webhook/auth, and cron test-helper lint checks all passed.
Inherited core-lint errors (exact base file bytes retained)
File Error
src/plugins/registry-runtime-session-ownership.ts 755 lines; limit 700
src/gateway/server-methods/sessions-files.ts 782 lines; limit 700
ui/src/pages/chat/components/chat-detail-panel.tsx 706 lines; limit 700
src/cli/update-cli/update-command-post-update.ts 702 lines; limit 700
src/auto-reply/reply/dispatch-from-config.choose-route.ts 768 lines; limit 700
src/auto-reply/reply/dispatch-from-config.lifecycle.ts 702 lines; limit 700
src/agents/worktrees/checkout.ts 731 lines; limit 700
src/gateway/session-worktree-preparation.ts 713 lines; limit 700
src/agents/tools/sessions-send-tool.ts 703 lines; limit 700
src/config/sessions/transcript.ts 749 lines; limit 700
src/plugin-state/plugin-state-store.ts 713 lines; limit 700
src/state/openclaw-agent-db-validation-cache.ts 706 lines; limit 700
ui/src/components/session-group-defaults-dialog.tsx typescript(no-misused-promises) at 422:77
  • The independent Codex review service returned HTTP 401; no independent review result is claimed. Per the campaign ruling, the lead reviews the published head.

Earlier queue/recovery proof remains applicable: the scope correction leaves the cron queue/launcher implementation unchanged from d62a08096e50d22c1cfa4008a9823c0b80f31610. A copied database created by released [email protected], using isolated state, recovered successfully: an old random receipt was skipped and its marker cleared without changing its ID; a forced successor ran successfully. Owned Gateways were stopped and joined. The earlier manual-tool-authority CI rejection was reproduced and fixed by joining waitForIdle() before state cleanup; the current focused run includes that regression.

Production: +1,863 / −3,690 LOC (net −1,827). Tests/test support: +2,277 / −3,959 (net −1,682). Documentation: +7 / −1. No unrelated cleanup, suppression, or baseline changes are retained. All proof ran locally; no remote lease was used.

@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes agents Agent runtime and tooling size: XL labels Oct 11, 2026
@steipete
steipete marked this pull request as ready for review October 11, 2026 21:12
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR centralizes durable Cron requests, execution capacity, and activation in the SQLite worker behind one host launcher.

Example: Eight runs occupy service A while sibling service B requests report-job against the same store.

  • Before: Separate service admission counters can admit a ninth execution.
  • After: The worker queues report-job until shared capacity becomes available.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The approved refactor has useful boundary coverage, but three availability defects and unresolved authority and existing-state evidence prevent readiness.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🧂 unranked krab (1/6) Security review found an item that needs attention.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Competing host and receipt owners complicate shared capacity, acknowledged manual runs, and restart recovery.
Reason: The maintainer-authored change implements the approved queue stage and explicitly leaves schedule and wake production for the next stage.

Merge readiness

⛔ Blocked before merge - 7 items remain

Keep open: this PR implements the approved Cron queue redesign, but two previous lifecycle defects remain and an additional unobserved rejection can terminate the Gateway.

Priority: P2
Reviewed head: 3bd070a013683455df8c1564c78b004866110094

Before merge

  • Add real behavior proof - Authority-chain proof required: demonstrate an authorized queued caller reaching real executor I/O after acknowledgement and a caller revoked before slot release being rejected before that I/O; supplied tests mock execution and the inspected images cover unrelated UI behavior. Provide redacted terminal output or logs without credentials, IPs, phone numbers, or non-public endpoints. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Reconcile local ownership when an activation reply is lost (P1) - This previous finding remains present. If cron.drainQueue commits activation and its worker exits before replying, this await rejects before launch cleanup is installed. Submission has already claimed local receipt ownership, while the worker has replaced queued markers with running markers. Later drains cannot launch those rows, and same-process recovery treats the retained local claim as live. Unexecuted jobs can therefore occupy capacity indefinitely and leave accepted completion promises pending. Release or reconcile unlaunched local contexts after an uncertain activation result so recovery records interruption without replay.
  • Observe completion rejections for reconstructed timed requests (P1) - This previous finding remains present. A persisted timed request drained without a host context gets a completion promise without a consumer or rejection observer, unlike ordinary submissions. A launch or finalization failure rejects that promise in running.catch; handling running does not handle completion. An ordinary non-transient error reaches the installed unhandled-rejection handler and terminates the Gateway. Observe reconstructed completions or avoid allocating an unused rejectable promise.
  • Observe the queue drain started when scheduling resumes (P1) - When scheduling resumes with queued work, this detached drain can reject on worker admission or database failure. The surrounding synchronous try does not catch an async rejection, so an ordinary non-transient failure reaches the Gateway's fatal unhandled-rejection path. Attach a rejection handler, as the queue wake owner already does. This is a late discovery: comparison with the earlier reviewed source confirms this call was already present unchanged.
  • Resolve security concern: Verify queued caller revocation before executor I/O - The launcher retains the originating caller across acknowledgement and queue waiting, then dispatches under a detached Gateway lifetime; inspected authority tests replace execution and do not establish rejection before real I/O.
  • Resolve merge risk - Queued caller authority survives acknowledgement and detached launch; its rejection boundary for a caller revoked before capacity release remains unverified at executor I/O.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P1] Reconcile local ownership when an activation reply is lost — src/cron/service/run-queue.ts:300-302
  • [P1] Observe completion rejections for reconstructed timed requests — src/cron/service/run-queue.ts:340-341
  • [P1] Observe the queue drain started when scheduling resumes — src/cron/service/ops-lifecycle.ts:395
  • [medium] Verify queued caller revocation before executor I/O — src/cron/service/run-queue.ts:407

Tests

  • Missing end-to-end proof: Supply redacted queued-caller final-effect evidence and inspectable copied-release recovery output preserving settings, receipt IDs, and history joins; no base-fail/head-pass execution of the reported defects was supplied.
Agent review details

How this fits together

Timer, manual, and event sources submit durable requests; the host launches existing executors and returns outcomes to receipt, history, and recovery owners.

flowchart LR
A[Timer and event sources] --> C[Queue worker]
B[Manual requests] --> C
C --> D[SQLite jobs and receipts]
C --> E[Host launcher]
E --> F[Existing executors]
F --> G[Outcome and recovery owner]
G --> D
Loading

Technical review

Best possible solution:

Complete activation-failure reconciliation and rejection handling while preserving existing effect checks and the approved crash semantics.

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

Source establishes the lost activation-reply and unobserved rejection paths; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The approved worker queue provides the appropriate owner, but failure cleanup and promise observation must cover every entry point.

Full review comments:

  • [P1] Reconcile local ownership when an activation reply is lost — src/cron/service/run-queue.ts:300-302
    This previous finding remains present. If cron.drainQueue commits activation and its worker exits before replying, this await rejects before launch cleanup is installed. Submission has already claimed local receipt ownership, while the worker has replaced queued markers with running markers. Later drains cannot launch those rows, and same-process recovery treats the retained local claim as live. Unexecuted jobs can therefore occupy capacity indefinitely and leave accepted completion promises pending. Release or reconcile unlaunched local contexts after an uncertain activation result so recovery records interruption without replay.
    Confidence: 0.98
  • [P1] Observe completion rejections for reconstructed timed requests — src/cron/service/run-queue.ts:340-341
    This previous finding remains present. A persisted timed request drained without a host context gets a completion promise without a consumer or rejection observer, unlike ordinary submissions. A launch or finalization failure rejects that promise in running.catch; handling running does not handle completion. An ordinary non-transient error reaches the installed unhandled-rejection handler and terminates the Gateway. Observe reconstructed completions or avoid allocating an unused rejectable promise.
    Confidence: 0.99
  • [P1] Observe the queue drain started when scheduling resumes — src/cron/service/ops-lifecycle.ts:395
    When scheduling resumes with queued work, this detached drain can reject on worker admission or database failure. The surrounding synchronous try does not catch an async rejection, so an ordinary non-transient failure reaches the Gateway's fatal unhandled-rejection path. Attach a rejection handler, as the queue wake owner already does. This is a late discovery: comparison with the earlier reviewed source confirms this call was already present unchanged.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Hold for authority evidence (recommended)
    Keep this PR open until allowed queued execution and revocation before slot release are demonstrated at real executor I/O.

Provenance checked

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete authorization bypass was found, but retained queued-caller authority needs final-effect evidence.

Evidence

Security concerns:

  • [medium] Verify queued caller revocation before executor I/O — src/cron/service/run-queue.ts:407
    The launcher retains the originating caller across acknowledgement and queue waiting, then dispatches under a detached Gateway lifetime; inspected authority tests replace execution and do not establish rejection before real I/O.
    Confidence: 0.96

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 3a69600 adds docs/refactor/cron-worker-owned.md:11 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3a696002c87a; files: docs/refactor/cron-worker-owned.md)
  • mjzcng: Raw commit 8f8895c adds src/cron/service/timer-scheduler.ts:123 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 8f8895c14134; files: src/cron/service/timer-scheduler.ts)
  • Ayaan Zaidi: Raw commit 9f330ef adds src/cron/service/ops-run.ts:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 9f330efbe677; files: src/cron/service/ops-run.ts)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test changes Production +1,861/−3,588; tests and support +2,281/−4,063. The pinned introduction removes more code than it adds by retiring host admission orchestration and adapting coverage to the queue owner.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is approved Cron consolidation with defects confined to the unmerged candidate.
  • merge-risk: 🚨 availability: Lost activation replies can strand capacity, and unobserved rejection paths can terminate the Gateway.
  • merge-risk: 🚨 security-boundary: Caller authority crosses acknowledgement, queue waiting, and detached launch without final-effect revocation evidence.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

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 (3 earlier review cycles)
  • reviewed 2026-10-11T21:20:02.335Z sha 570b1e7 :: needs real behavior proof before merge. :: [P1] Reconcile local ownership when an activation reply is lost | [P1] Observe completion rejections for reconstructed timed requests
  • reviewed 2026-10-11T22:17:21.845Z sha 33514fc0a36b15430c5ce707d705822ea4d326af :: needs real behavior proof before merge. :: [P1] Reconcile local ownership when an activation reply is lost | [P1] Observe completion rejections for reconstructed timed requests
  • reviewed 2026-10-11T22:38:59.887Z sha d62a080 :: needs real behavior proof before merge. :: [P1] Reconcile local ownership when an activation reply is lost | [P1] Observe completion rejections for reconstructed timed requests

Reviewed October 11, 2026, 7:52 PM ET / 23:52 UTC (Revision 4).

Unify scheduled, manual, and event launches behind durable receipt requests. Keep the host as the wake producer while the worker owns ordering, capacity, and activation. Preserve logical timeout capacity and recover stale receipts after marker retirement. Refs #168072.
Cancel queued exit requests through the worker before reporting cancellation,
keep one receipt settlement owner, and remove obsolete host receipt exports.

Split oversized owners and remove unused exports without changing their runtime
contracts. Keep queue, recovery, and asynchronous fixture assertions at their
owning lifecycle boundaries.
Restore all UI changes and unrelated backend refactors to the PR base. Retain only the cron queue, launcher, required heartbeat caller, and cron test adaptations.
Preserve main's asynchronous notification owner in manual preflight recovery and startup deferral. Keep notification work after synchronous committed publication.
@steipete

Copy link
Copy Markdown
Contributor Author

Merging at pinned head 3bd070a013683455df8c1564c78b004866110094 past two failures that come from main:

  • check-test-types-core-2: ui/src/components/mcp-app-unmount.test.ts:40 / mcp-app-view.test.ts:801 (updateComplete on Element). This PR changes no file under ui/; the merge base and head have an empty ui/ diff. Main changed mcp-app-view.test.ts in 319ec99.
  • checks-ui-e2e (1/2): ui/src/e2e/board-mcp-app.e2e.test.ts (dashboard MCP app note retention). This is UI-only and outside this cron backend change.
    All cron, gateway and node shards are green on this head. Locally: 455 tests across 39 files, cron types, lint and madge.

@steipete
steipete merged commit 0973bef into main Oct 12, 2026
122 of 126 checks passed
@steipete
steipete deleted the upd/upd-l1559 branch October 12, 2026 00:02
steipete added a commit that referenced this pull request Oct 12, 2026
Classify operator cancellation and Gateway retirement at their producers so
terminal one-shots do not request a repair, alert, safety notice, or retry.
This fixes the cancellation regression introduced by #169102 while retaining
watchdog timeout retries and recurring-job policy. Preserve completed payload
and delivery facts when cancellation interrupts webhook response cleanup.

Record terminal timed and watcher-fired on-exit failures through the existing
auto-disable owner, making them visible in doctor. Carry watcher occurrence
provenance from the durable queue's launcher through worker finalization;
keep ordinary paused/armed force-runs out of that terminal disposition and
preserve later schedule edits. No schema, configuration, or compatibility path.

Use the existing owner repair with alert fallback, a resolved failure alert,
or the safety notice. Retain shared cooldown and incident suppression without
an extra notice. The safety notice remains active for failureAlert:false and
inherited bestEffort suppression. Document terminal behavior and doctor visibility.

Release-note context: terminal one-shot failures no longer disappear silently,
while operator cancels and restart retirements remain quiet. This maintainer
re-expression supersedes #131590 and #167908 on current main after #169364.

Co-authored-by: lonexreb <[email protected]>
Co-authored-by: erlightbourn-source <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
…auncher (openclaw#169364)

Cron PR 2b-i of the worker-owned redesign (docs/refactor/cron-worker-owned.md): timer, manual and event sources write idempotent run requests into the existing receipts table; the cron worker owns queue capacity and activation; a host launcher checks liveness and eligibility after commit and owns execution and cleanup lifetimes. Host reservations and capacity bookkeeping are deleted. Also fixes timeout-capacity accounting, markerless receipt recovery, paused manual runs, sibling queue ownership and cancellation settlement. Host scheduling moves in 2b-ii. Production -1,827 LOC. Refs openclaw#168072.
steipete added a commit that referenced this pull request Oct 12, 2026
…et (#169314)

Classify operator cancellation and Gateway retirement at their producers so
terminal one-shots do not request a repair, alert, safety notice, or retry.
This fixes the cancellation regression introduced by #169102 while retaining
watchdog timeout retries and recurring-job policy. Preserve completed payload
and delivery facts when cancellation interrupts webhook response cleanup.

Record terminal timed and watcher-fired on-exit failures through the existing
auto-disable owner, making them visible in doctor. Carry watcher occurrence
provenance from the durable queue's launcher through worker finalization;
keep ordinary paused/armed force-runs out of that terminal disposition and
preserve later schedule edits. No schema, configuration, or compatibility path.

Use the existing owner repair with alert fallback, a resolved failure alert,
or the safety notice. Retain shared cooldown and incident suppression without
an extra notice. The safety notice remains active for failureAlert:false and
inherited bestEffort suppression. Document terminal behavior and doctor visibility.

Release-note context: terminal one-shot failures no longer disappear silently,
while operator cancels and restart retirements remain quiet. This maintainer
re-expression supersedes #131590 and #167908 on current main after #169364.

Co-authored-by: lonexreb <[email protected]>
Co-authored-by: erlightbourn-source <[email protected]>
steipete added a commit that referenced this pull request Oct 12, 2026
…9767)

Changed-test selection now follows runtime-worker descriptors
(`currentModuleUrl: import.meta.url` with a literal `sourceWorkerName`).
Inline descriptors are edges from their declaring module; exported
descriptors are edges only from test code that reads that descriptor, so
aggregators such as cli-entrypoint.test-support.ts and the worker build
manifest do not fan out to every fixture. A change to a fixture's
dependencies now selects the process tests that spawn it, e.g.
src/cron/service/run-queue.ts selects
run-loop.forced-cron.process.test.ts (missed by #169364's CI).

Source facts also get their own scan buffer: the full inventory already
emits ~16.56 MB against the borrowed 16 MiB git ls-files limit.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…et (openclaw#169314)

Classify operator cancellation and Gateway retirement at their producers so
terminal one-shots do not request a repair, alert, safety notice, or retry.
This fixes the cancellation regression introduced by openclaw#169102 while retaining
watchdog timeout retries and recurring-job policy. Preserve completed payload
and delivery facts when cancellation interrupts webhook response cleanup.

Record terminal timed and watcher-fired on-exit failures through the existing
auto-disable owner, making them visible in doctor. Carry watcher occurrence
provenance from the durable queue's launcher through worker finalization;
keep ordinary paused/armed force-runs out of that terminal disposition and
preserve later schedule edits. No schema, configuration, or compatibility path.

Use the existing owner repair with alert fallback, a resolved failure alert,
or the safety notice. Retain shared cooldown and incident suppression without
an extra notice. The safety notice remains active for failureAlert:false and
inherited bestEffort suppression. Document terminal behavior and doctor visibility.

Release-note context: terminal one-shot failures no longer disappear silently,
while operator cancels and restart retirements remain quiet. This maintainer
re-expression supersedes openclaw#131590 and openclaw#167908 on current main after openclaw#169364.

Co-authored-by: lonexreb <[email protected]>
Co-authored-by: erlightbourn-source <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…nclaw#169767)

Changed-test selection now follows runtime-worker descriptors
(`currentModuleUrl: import.meta.url` with a literal `sourceWorkerName`).
Inline descriptors are edges from their declaring module; exported
descriptors are edges only from test code that reads that descriptor, so
aggregators such as cli-entrypoint.test-support.ts and the worker build
manifest do not fan out to every fixture. A change to a fixture's
dependencies now selects the process tests that spawn it, e.g.
src/cron/service/run-queue.ts selects
run-loop.forced-cron.process.test.ts (missed by openclaw#169364's CI).

Source facts also get their own scan buffer: the full inventory already
emits ~16.56 MB against the borrowed 16 MiB git ls-files limit.
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 20, 2026
First-parent upstream 84a834e..2b9aa2e (112 commits, including
openclaw#169327 actor memory storage for incognito consumers, openclaw#169458 session
bookkeeping/transcript workers, openclaw#169449 gateway read paths, openclaw#169364 cron
worker queue, openclaw#168401 remote compaction V2, openclaw#169467 transcript backlog).

Conflicts:
- session-reset-service.ts: upstream moved ensureSessionRuntimeCleanup into
  session-reset-runtime-cleanup.ts. Took upstream's form and ported our
  delta into the new module: the `reason` parameter and the awaited
  clearSessionScopeRuntimeState (continuation cancellation that cannot
  persist returns UNAVAILABLE). Callers keep passing `reason`.
- attempt-execution.ts: upstream made the Claude CLI fallback prelude async;
  ported the await into our extracted resolveClaudeCliFallbackPrelude.
- session-accessor.sqlite-lifecycle.ts: upstream's two actor-storage
  imports; the eviction kick import stays where the fork moved its caller.
- status-message.ts: upstream threads preparedTtsPreferences into the voice
  line; ported into our status-session-lines.ts helper.
- plugin-sdk-surface-report.mts budgets; worker inventory regenerated.

Also: session-actor-memory-collaboration-contract.ts (new upstream file)
excludes the fork's sharing `authority.capture` op from actor memory
commands (it runs only on the sharing writer's owner), as at step 26.

Refs #1475

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

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant