Skip to content

fix: keep script reports pending after required delivery fails - #208403

Merged
daniel-lxs merged 2 commits into
mainfrom
openclaw/cron-checkpoint-after-failed-webhook-41e27a
Nov 29, 2026
Merged

daniel-lxs merged 2 commits into
mainfrom
openclaw/cron-checkpoint-after-failed-webhook-41e27a

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #126163

What Problem This Solves

A recurring script can return a report and a checkpoint in the same run. If its required webhook rejects the report, main still saves the checkpoint. The next run can then skip a report nobody received.

User Impact

A failed or unconfirmed required delivery leaves the previous script state in place. The next normal occurrence can produce the report again. Best-effort delivery keeps its existing behavior. No configuration change or migration is needed. This does not reconstruct checkpoints that older versions already advanced, or guarantee exactly-once delivery when a receiver accepts a request but its acknowledgment is lost.

Why This Change Was Made

Both normal completion and restart recovery already have the whole-run completion status. I used that fact for the checkpoint instead of treating successful script execution as successful delivery. This preserves the distinction made in #126164 and #131228: delivery failure does not increment execution-error counters or schedule a payload retry. The existing protection for edits made during a run is unchanged.

Evidence

I ran the built CLI and an isolated Gateway on Crabbox AWS. I created a recurring script that returned Report R-42 and its dedup checkpoint together, then invoked consecutive occurrences with automations run --wait. The HTTP receiver rejected every first-run request with 503, then returned 200.

Revision After the required 503 After recovery
Main 3f9c2bb Execution ok, completion failed, checkpoint R-42 saved No report; receiver accepted 0
PR head 8ace32e7 Execution ok, completion failed, checkpoint still unset Receiver accepted 1 report, then the checkpoint advanced. A third run did not duplicate it.

The timer and restart-recovery regression tests failed on main because the stored revision was 2 instead of 1. The best-effort control passed. The runtime build passed. I repeated the live receiver test and all 62 focused tests on the published head 8ace32e7, which has the same source tree as ce2243c5 in the before-and-after CLI captures.

Formatting, lint, and core and test typechecks passed. The only failing check:changed lane was the dead-export scan. I ran that scan separately on 3f9c2bb: its production and full-tree findings matched the PR tree exactly. I did not test a live network acknowledgment loss or attempt to repair historical checkpoints.

Reported and co-authored by @daniel-lxs.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

🦞 Made with OpenClaw

roboclaw-bot and others added 2 commits November 29, 2026 15:55
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 2d262f4c-ad65-47be-87ce-d03eead0ed6b
@clawsweeper

clawsweeper Bot commented Nov 29, 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.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S labels Nov 29, 2026
@roboclaw-bot

roboclaw-bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator Author

I ran the built CLI against the same receiver outage on Crabbox AWS. On main, the next occurrence skipped R-42 after recovery (0 reports accepted). With the fix, the next occurrence delivered R-42 (1 accepted) and a third occurrence did not duplicate it. The second row in each capture is the run after recovery.

Before

Main: checkpoint advanced, report skipped

After

Fix: next occurrence delivered the report

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:message-loss Channel message delivery can be lost, duplicated, or misrouted. clawsweeper:intake:bug Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR advances script checkpoints only after whole-run completion succeeds, including during restart recovery.

Example: A recurring script returns Report R-42 and its checkpoint, but the required webhook returns HTTP 503.

  • Before: The checkpoint advances, so the next occurrence skips R-42 even though nobody received it.
  • After: The previous checkpoint remains, allowing the next occurrence to deliver R-42 before advancing it.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct repair supported by shipped CLI evidence and distinct regression coverage.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): Inspected CLI captures exercise an isolated Gateway and real HTTP receiver: rejection leaves R-42 pending, recovery accepts one report, and a third occurrence does not duplicate it; the body reports repeating this on the reviewed head.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A rejected required report can be marked processed and silently skipped by the next script occurrence.
Reason: Preventing missed reports clearly outweighs this narrow change, whose direction is already established by the maintainer-authored PR.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it fixes a report-loss bug still present on main, with no actionable correctness or security findings.

Reviewed head: 8ace32e78904492cbb02941d783ec5baa239a7f3

Before merge

None.

Findings

None.

Agent review details

How this fits together

Cron executes scripts, settles their delivery, and sends completion facts to the SQLite worker that updates job state; startup recovery applies retained completion facts through the same checkpoint writer.

flowchart LR
  A[Scheduled occurrence] --> B[Script executor]
  B --> C[Delivery owner]
  C --> D[Whole run completion]
  D --> E[Checkpoint writer]
  E --> F[SQLite job state]
  F --> A
Loading

Technical review

Best possible solution:

Use recorded whole-run completion to gate the existing script-state writer during normal finalization and restart recovery.

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

Current main exposes the status-only checkpoint condition, and the supplied CLI captures demonstrate the resulting lost report after a required HTTP 503; no target code was executed during this review.

Is this the best way to solve the issue?

This is the smallest complete fix: both paths consume the existing completion fact while preserving best-effort behavior, execution retry accounting, and edit ownership.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Script checkpoint success condition changes intended behavior with a stated reason (fix(cron): preserve script state and stop stale runs after restart #111292: Unified successful script-state application across scheduled, manual, and recovery paths; this PR explains why successful execution alone is insufficient when required delivery fails.)
  • Recovery state-writer retirement keeps the original intent (ab2219d: Preserve acknowledged script and saved-state edits when an older completed run is restored after a crash.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 06776e7 adds src/cron/service/timer-outcomes.ts:429 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 06776e707b44; files: src/cron/service/timer-outcomes.ts)
  • Shakker: Raw commit ab2219d adds src/cron/service/startup-run-repair.ts:139 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ab2219d36361; files: src/cron/service/startup-run-repair.ts)

PR surface

Source -3, Tests +38, Docs 0. Total +35 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 7 10 -3
Tests 2 38 0 +38
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 46 11 +35

Preflight source

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

Review metrics

Metric Value Why it matters
Production versus test LOC Production +7/-10; tests +38/-0 Production becomes smaller while tests cover required rejection, best-effort preservation, and restart recovery.

Labels

Label changes:

  • add merge-risk: 🚨 message-delivery: Checkpoint retention changes whether a later occurrence can emit a report again after failed or uncertain delivery.

Label justifications:

  • merge-risk: 🚨 message-delivery: Checkpoint retention changes whether a later occurrence can emit a report again after failed or uncertain delivery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • 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-29T16:17:46.495Z sha 8ace32e :: passed. :: none

Reviewed November 29, 2026, 11:26 AM ET / 16:26 UTC (Revision 2).

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 29, 2026 16:22
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. label Nov 29, 2026
@daniel-lxs
daniel-lxs merged commit d4509c4 into main Nov 29, 2026
212 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/cron-checkpoint-after-failed-webhook-41e27a branch November 29, 2026 16:45
tideclaw-bot pushed a commit that referenced this pull request Nov 29, 2026
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 2d262f4c-ad65-47be-87ce-d03eead0ed6b

(cherry picked from commit d4509c4)

Release adaptation: Apply the run completion-status check to the beta.2 timer-outcomes owner rather than replacing it with the main layout.

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 29, 2026
## What Problem This Solves

Automations created before OpenClaw recorded the creating conversation (every job without `sourceConversation`, i.e. created before #179062) name that conversation only by session key. Their scheduled runs get no memory at all: every `knowledge_*` or memory tool call fails with "the host granted this session no memory audience", and the Gateway logs `memory audience unavailable: root session agent:<agent>:cron:<job>:run:<run> has no durable chat type`. The same runs still hold owner-only tools such as `exec`. A production automation that reads and writes the owner's knowledge vault every week hit this on every run.

## User Impact

- A key-only detached automation (`isolated` / `current`) now reads its conversation's current memory, the same way a bound automation does:
  - created in the owner's direct chat: the owner's private memory;
  - created in a group or channel: only that conversation's memory, never owner-private.
- When the job recorded a requester (profile or channel sender), that requester's owner status is checked at each occurrence first; without one, the run's existing owner bit decides, as it already does for the run's tools.
- If the conversation row is gone, archived or cannot be read, the run proceeds exactly as before (no memory, no pause, no failure).
- Board, workspace, sandbox, event target and the run's tools are unchanged. `main` and `session:<key>` targets are unchanged.
- `automations bind` stays available for the exact-incarnation link but is no longer needed for memory. Docs (`cli/cron` "Binding older jobs", `automation/cron-jobs/payloads`) and Doctor's unbound note say so.

Accepted edge case: a key-only run whose agent sandbox mode is `non-main` or `all` now gets owner-private memory it did not have, when the job was created in the owner's direct chat. The owner created these jobs in their own DM, and the run already holds owner authority.

## Why This Change Was Made

`resolveScheduledPrincipal` classifies these jobs as `unbound-parent` and gives them legacy owner authority, but `buildScheduledExecutionContext` pointed their memory at the cron run row, which never has a chat type, so the memory resolver always denied. The fix stays in the existing owner:

- `admitScheduledOccurrence` (`src/cron/execution-context-admission.ts`): for an `unbound-parent` principal on a detached run, read the key-linked conversation row once. A failed read becomes "no row". No generation lease, workspace binding, sandbox or pause change. A recorded requester is admitted per occurrence through the existing `admitScheduledRequesterGrant`.
- `buildScheduledExecutionContext` (`src/cron/execution-context.ts`): with a live row, memory becomes `{ source: "parent", parent: <current sessionKey/sessionId/lifecycleRevision>, owner }`. Everything else for `unbound-parent` is unchanged.
- The memory resolver (`src/plugins/memory-audience.ts`) does not change: it already maps a direct root + owner to owner-private and direct/group/channel to that conversation's partition, for both the embedded and the CLI runtime.
- `scheduledParentKeyOf` now derives the key from `resolveScheduledPrincipal` itself, so Doctor's access review and the development replay read the same row the runtime does; the replay vector (`execution-context-projection.ts`) already labels the memory gain as intended, so it needed no edit.

Not changed: Doctor auto-bind or any stored-row write, jobs with no parent key, bound jobs with no recorded requester. On current `main`, bound jobs keep following their conversation after a reset (#205887), so no reset-degraded path exists to special-case.

## Evidence

Real-admission tests (red on the merge base `bb5c001bb6fc`, green on this head; 6 tests failed on base, all pass on head):

- `execution-context-memory-audience.test.ts` (real admission → registry → embedded and CLI resolvers): key-only owner-DM job → owner-private; key-only group job → that group's conversation only; key-only job with a revoked recorded requester → conversation only; key-only job whose conversation is gone → no audience, run admitted.
- `execution-context.test.ts`: key-only detached job gets parent memory and nothing else (board/workspace/sandbox stay the run's); archived, removed and in-session (`session:<key>`) cases keep run-session memory.
- `execution-context-admission.test.ts`: key-only read takes no generation lease; a failed read still admits the run with its own memory.
- `isolated-agent/run.bind-parent.test.ts` (real cron service + timer): the unbound job now reaches its conversation's memory, without a run-row receipt.

Local runs: the 27 test files that import the changed sources passed (`ocx test`, 6 shards). `pnpm check:changed`: typecheck, lint, guards all ok; the dead-export scan fails only on files this PR does not touch (`src/agents/command/types.ts`, `src/plugins/native-module-require.ts`, `ui/src/...`, `src/gateway/server-methods/update.test-harness.ts`), same as `main`.

End to end, scratch Gateway from source, `plugins.slots.memory: "knowledge"`, real model (`openai/gpt-5.5`). An owner Control UI direct chat was created by one real `chat.send` (row `chatType: "direct"`). A key-only isolated `agentTurn` job (owner key = that chat, no `sourceConversation`, no recorded requester, no tool policy, `toolsAllow` incl. `knowledge_remember`, `knowledge_grep`, `exec`) fired from its own `at` schedule about two minutes ahead (no forced run).

Base (`bb5c001bb6fc`):

```
[agent/embedded] memory audience unavailable: root session agent:main:cron:<job>:run:<run> has no durable chat type
```
```
knowledge_remember: "Knowledge access unavailable: the host granted this session no memory audience. The Gateway log entry "memory_audience_denied" for this session names the reason and its repair."
knowledge_grep: "Knowledge access unavailable: the host granted this session no memory audience. ..."
```

Head: no `memory audience unavailable` line in the Gateway log; the run's result:

```
knowledge_remember: inserted claim <claim-id>.
knowledge_grep: 1 hit — <claim-id>: "The owner's favorite tea is masala chai."
```

The claim was written under the store's `vault/private/` (owner-private).

Observed, not changed here: a session created only through `openclaw agent --session-key agent:main:main` from the CLI has no `chatType`, so a key-only job linked to such a row still gets no memory (Doctor already lists these under "no stored chat type"). Channel DMs and Control UI chats record `chatType: "direct"`.

Merge danger: two-way door. No schema, stored-row, config or protocol change; a revert restores the previous memory decision. Blast radius: memory audience of detached scheduled runs whose jobs have no `sourceConversation` but an owner/policy session key.

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

(cherry picked from commit 9143f38)

Later same-path commits from the pinned scan (separate behavior unless named as folded/selected below): 00e025a fix: report skipped manual automation runs without timing out (#208453); d4509c4 fix: keep script reports pending after required delivery fails (#208403); 03cdb2c fix: let the oldest automations read their conversation's memory (#208190).
Later PR-number mentions: `03cdb2cef17e` fix: let the oldest automations read their conversation's memory (#208190), `16a2d4b59d75` refactor(ui): lowercase log search text only once (#207383), `21786f65ed93` refactor(ui): stop sending 28 additional unused labels to translators (#207982), `34d4f8f308ba` improve: list Docker streams and flag unconfirmed cleanup in Doctor (#201292), `9cec330df50d` refactor(workboard): group session tiles without rescanning each column (#207380) Later commit-SHA mentions: none

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 2d262f4c-ad65-47be-87ce-d03eead0ed6b

(cherry picked from commit d4509c4)

Release adaptation: Require authoritative whole-run completion before writing the payload-script checkpoint. Keep stable auto-disable imports, stale trigger ownership fences, and existing legacy startup completion derivation.

Companion audit: PR #208403 is selected. The separate once-watcher transition (row 58) owns trigger evaluation state; do not replay it in this payload checkpoint fix.

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
Automations created before OpenClaw recorded the creating conversation (every job without `sourceConversation`, i.e. created before #179062) name that conversation only by session key. Their scheduled runs get no memory at all: every `knowledge_*` or memory tool call fails with "the host granted this session no memory audience", and the Gateway logs `memory audience unavailable: root session agent:<agent>:cron:<job>:run:<run> has no durable chat type`. The same runs still hold owner-only tools such as `exec`. A production automation that reads and writes the owner's knowledge vault every week hit this on every run.

- A key-only detached automation (`isolated` / `current`) now reads its conversation's current memory, the same way a bound automation does:
  - created in the owner's direct chat: the owner's private memory;
  - created in a group or channel: only that conversation's memory, never owner-private.
- When the job recorded a requester (profile or channel sender), that requester's owner status is checked at each occurrence first; without one, the run's existing owner bit decides, as it already does for the run's tools.
- If the conversation row is gone, archived or cannot be read, the run proceeds exactly as before (no memory, no pause, no failure).
- Board, workspace, sandbox, event target and the run's tools are unchanged. `main` and `session:<key>` targets are unchanged.
- `automations bind` stays available for the exact-incarnation link but is no longer needed for memory. Docs (`cli/cron` "Binding older jobs", `automation/cron-jobs/payloads`) and Doctor's unbound note say so.

Accepted edge case: a key-only run whose agent sandbox mode is `non-main` or `all` now gets owner-private memory it did not have, when the job was created in the owner's direct chat. The owner created these jobs in their own DM, and the run already holds owner authority.

`resolveScheduledPrincipal` classifies these jobs as `unbound-parent` and gives them legacy owner authority, but `buildScheduledExecutionContext` pointed their memory at the cron run row, which never has a chat type, so the memory resolver always denied. The fix stays in the existing owner:

- `admitScheduledOccurrence` (`src/cron/execution-context-admission.ts`): for an `unbound-parent` principal on a detached run, read the key-linked conversation row once. A failed read becomes "no row". No generation lease, workspace binding, sandbox or pause change. A recorded requester is admitted per occurrence through the existing `admitScheduledRequesterGrant`.
- `buildScheduledExecutionContext` (`src/cron/execution-context.ts`): with a live row, memory becomes `{ source: "parent", parent: <current sessionKey/sessionId/lifecycleRevision>, owner }`. Everything else for `unbound-parent` is unchanged.
- The memory resolver (`src/plugins/memory-audience.ts`) does not change: it already maps a direct root + owner to owner-private and direct/group/channel to that conversation's partition, for both the embedded and the CLI runtime.
- `scheduledParentKeyOf` now derives the key from `resolveScheduledPrincipal` itself, so Doctor's access review and the development replay read the same row the runtime does; the replay vector (`execution-context-projection.ts`) already labels the memory gain as intended, so it needed no edit.

Not changed: Doctor auto-bind or any stored-row write, jobs with no parent key, bound jobs with no recorded requester. On current `main`, bound jobs keep following their conversation after a reset (#205887), so no reset-degraded path exists to special-case.

Real-admission tests (red on the merge base `bb5c001bb6fc`, green on this head; 6 tests failed on base, all pass on head):

- `execution-context-memory-audience.test.ts` (real admission → registry → embedded and CLI resolvers): key-only owner-DM job → owner-private; key-only group job → that group's conversation only; key-only job with a revoked recorded requester → conversation only; key-only job whose conversation is gone → no audience, run admitted.
- `execution-context.test.ts`: key-only detached job gets parent memory and nothing else (board/workspace/sandbox stay the run's); archived, removed and in-session (`session:<key>`) cases keep run-session memory.
- `execution-context-admission.test.ts`: key-only read takes no generation lease; a failed read still admits the run with its own memory.
- `isolated-agent/run.bind-parent.test.ts` (real cron service + timer): the unbound job now reaches its conversation's memory, without a run-row receipt.

Local runs: the 27 test files that import the changed sources passed (`ocx test`, 6 shards). `pnpm check:changed`: typecheck, lint, guards all ok; the dead-export scan fails only on files this PR does not touch (`src/agents/command/types.ts`, `src/plugins/native-module-require.ts`, `ui/src/...`, `src/gateway/server-methods/update.test-harness.ts`), same as `main`.

End to end, scratch Gateway from source, `plugins.slots.memory: "knowledge"`, real model (`openai/gpt-5.5`). An owner Control UI direct chat was created by one real `chat.send` (row `chatType: "direct"`). A key-only isolated `agentTurn` job (owner key = that chat, no `sourceConversation`, no recorded requester, no tool policy, `toolsAllow` incl. `knowledge_remember`, `knowledge_grep`, `exec`) fired from its own `at` schedule about two minutes ahead (no forced run).

Base (`bb5c001bb6fc`):

```
[agent/embedded] memory audience unavailable: root session agent:main:cron:<job>:run:<run> has no durable chat type
```
```
knowledge_remember: "Knowledge access unavailable: the host granted this session no memory audience. The Gateway log entry "memory_audience_denied" for this session names the reason and its repair."
knowledge_grep: "Knowledge access unavailable: the host granted this session no memory audience. ..."
```

Head: no `memory audience unavailable` line in the Gateway log; the run's result:

```
knowledge_remember: inserted claim <claim-id>.
knowledge_grep: 1 hit — <claim-id>: "The owner's favorite tea is masala chai."
```

The claim was written under the store's `vault/private/` (owner-private).

Observed, not changed here: a session created only through `openclaw agent --session-key agent:main:main` from the CLI has no `chatType`, so a key-only job linked to such a row still gets no memory (Doctor already lists these under "no stored chat type"). Channel DMs and Control UI chats record `chatType: "direct"`.

Merge danger: two-way door. No schema, stored-row, config or protocol change; a revert restores the previous memory decision. Blast radius: memory audience of detached scheduled runs whose jobs have no `sourceConversation` but an owner/policy session key.

Co-authored-by: Ayaan Zaidi <[email protected]>
(cherry picked from commit 9143f38)

Release adaptation: Resolve admission and payload documentation against the stable owners. Read a detached key-only parent once at occurrence admission without changing placement, workspace, sandbox, tools, or run-row receipts. Only an initially verified recorded requester can receive owner-private memory. With no verified requester, use conversation memory only; after a human ownership transfer, keep run-session memory. No new role or ownership rechecks, persisted fields, or config.

Follow-up audit: #208190 (03cdb2c) extends the fix to top-level historical keys and is separately assigned to release lane w5-43; integrate this prerequisite first. #201287 (bf2c75e) changes general owner admission and watcher launch, not the key-only memory fix. #208453 (00e025a) and #208403 (d4509c4) address distinct manual-run and script-delivery behavior. Remaining PR-number hits (#207383, #207982, #201292, #207380) are incidental, with no related cron-memory change.

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
…law#208403)

Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 2d262f4c-ad65-47be-87ce-d03eead0ed6b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation impact:message-loss Channel message delivery can be lost, duplicated, or misrouted. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. 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. size: S 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.

2 participants