Skip to content

fix(cron): avoid phantom message tool guidance - #116908

Merged
Patrick-Erichsen merged 5 commits into
openclaw:mainfrom
metaforismo:codex/fix-cron-phantom-message-tool
Jul 31, 2026
Merged

Patrick-Erichsen merged 5 commits into
openclaw:mainfrom
metaforismo:codex/fix-cron-phantom-message-tool

Conversation

@metaforismo

@metaforismo metaforismo commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Isolated cron runs could be told to use the message tool even when the selected runtime did not expose that tool. The model could then follow guidance for a capability absent from its submitted tool inventory, preventing the intended automatic-delivery fallback.

Why This Change Was Made

Delivery guidance is now derived from the final resolved tool surface submitted to the model.

The implementation:

  • computes messageToolAvailable after tool filtering and runtime projections
  • applies the same boundary to embedded, CLI, and plugin-harness execution
  • applies successful before_prompt_build tool restrictions to CLI projection before both guidance and submission
  • preserves the existing base-prompt fallback when a prompt hook throws
  • fails closed only when a hook explicitly returns a tool restriction that the selected CLI backend cannot enforce
  • keeps resolved-tool metadata runtime-only and out of the transcript
  • fails message_tool_only delivery before model execution when the selected runtime cannot expose message, allowing the existing fallback path to choose a compatible runtime

User Impact

Isolated cron jobs no longer receive phantom message-tool instructions. Jobs that rely on automatic delivery can complete normally. CLI prompt-hook failures retain their previous fallback behavior, while explicit tool restrictions remain enforced.

Evidence

Exact validated head: 08c9ad354609246db767de40e9dde61fcc893749

  • exact-head hosted CI is green, including check-lint and openclaw/ci-gate
  • 173 focused tests passed across cron policy (68), embedded prompt policy (7), and CLI preparation/hook fallback (98)
  • the throwing before_prompt_build regression test preserves the base prompt
  • git diff --check passed

A private-QA build of this exact head launched compiled dist/index.js with OpenClaw's loopback mock OpenAI-compatible server and disposable qa-channel transport. The production cron path had message denied and no toolsAllow override. It confirmed:

  • automatic-delivery guidance was present
  • no message instruction or destination metadata appeared in the prompt
  • message was absent from the submitted tool inventory
  • the cron run completed successfully
  • automatic delivery occurred exactly once to the intended target
{
  "status": "ok",
  "persistedDeliveryStatus": "delivered",
  "summary": "PR116908_EXACT_HEAD_AUTOMATIC_DELIVERY_OK",
  "compiledGatewayEntry": "dist/index.js",
  "includesMessageTool": false,
  "hasAutomaticDeliveryGuidance": true,
  "hasMessageToolInstruction": false,
  "hasDestinationMetadata": false,
  "automaticDelivery": {
    "count": 1,
    "target": "proof-recipient",
    "text": "PR116908_EXACT_HEAD_AUTOMATIC_DELIVERY_OK"
  },
  "finalRequestSha256": "e8d4e3ab507581418890c689e67cddda71d12c598d565a0d8dbaf92a097d5c47",
  "reportSha256": "0133c25a5b2d55a67e381db5d5f8f8886d79bd55eb47515dfa6f552cc5259b6a"
}

Blacksmith Testbox: https://github.com/openclaw/openclaw/actions/runs/30668895572

The runtime proof is deterministic loopback evidence. It does not claim a live external model-provider or channel-network test.

Closes #116871

@metaforismo
metaforismo force-pushed the codex/fix-cron-phantom-message-tool branch from 9950c5a to 7415e23 Compare July 31, 2026 15:30
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 6:08 PM ET / 22:08 UTC.

ClawSweeper review

What this changes

The branch makes isolated-cron delivery instructions reflect the final tool inventory submitted to embedded, CLI, and plugin-harness agent runtimes.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

This PR remains necessary: current main still generates cron delivery guidance from delivery configuration and toolsAllow, not from the actual submitted tool surface. The branch moves that decision to the runtime boundary for embedded, CLI, and plugin-harness runs, and the supplied exact-head compiled-loopback proof shows automatic delivery still completes without a phantom message instruction. The remaining maintainer check is intentional CLI compatibility: some previously runnable hook-restricted backends will now stop before execution when exact restriction enforcement is impossible.

Priority: P2
Reviewed head: 08c9ad354609246db767de40e9dde61fcc893749

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong exact-head behavior evidence and focused cross-runtime coverage support a sound repair, with one intentional compatibility change still needing current-main merge refresh.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR includes exact-head compiled production-path loopback evidence showing a no-message-tool inventory, no phantom message guidance, and one successful automatic delivery; the scope and non-live limitations are stated clearly.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR includes exact-head compiled production-path loopback evidence showing a no-message-tool inventory, no phantom message guidance, and one successful automatic delivery; the scope and non-live limitations are stated clearly.
Evidence reviewed 6 items Current-main defect remains: Current main still computes messageToolPromptEnabled from the source-delivery plan and payload allowlist, then appends message-tool guidance before the selected runtime has resolved its actual tool surface. That is the reported phantom-guidance boundary, so this PR is not obsolete.
Resolved-tool owner boundary: The branch defers cron delivery guidance until messageToolAvailable is derived from the runtime's resolved tools; it rejects message_tool_only only when that runtime cannot expose the required tool and otherwise preserves automatic-delivery guidance.
Embedded and CLI surfaces use the same fact: Embedded assembly finalizes after prompt-hook tool filtering, while CLI preparation filters the backend projection and derives availability from the projected submitted tools. This covers the central sibling surfaces rather than repairing only cron prompt construction.
Findings None None.
Security None None.

How this fits together

An isolated cron job resolves a delivery plan and then selects an agent runtime with its own tool surface. That runtime sends the prompt and tools to the model; the resulting text is either automatically delivered or, when available, can use the message tool directly.

flowchart LR
  A[Cron job] --> B[Delivery plan]
  B --> C[Runtime selection]
  C --> D[Final tool inventory]
  D --> E[Delivery prompt guidance]
  E --> F[Model response]
  F --> G[Automatic or direct delivery]
Loading

Before merge

  • Resolve merge risk (P1) - CLI backends that cannot enforce an exact before_prompt_build tool restriction now fail before model execution instead of running with an unenforceable restriction. A member described that fail-closed behavior as intentional, but it remains an upgrade-sensitive compatibility change that should be rechecked against the current main merge result before landing.
  • Complete next step (P1) - A maintainer should refresh the clean merge result against current main and confirm the intentionally fail-closed CLI compatibility behavior before landing; there is no discrete patch defect for an automated repair lane.
Agent review details

Security

None.

PR surface

Source +123, Tests +213. Total +336 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 10 218 95 +123
Tests 4 281 68 +213
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 499 163 +336

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #116871
Summary: This PR explicitly implements the isolated-cron prompt/tool-inventory mismatch reported by the canonical issue; it should remain open until the candidate fix lands.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Refresh exact-head compatibility proof (recommended)
    Rebase or refresh the clean merge result against current main and repeat focused CLI hook-restriction plus cron automatic-delivery proof before landing.
  2. Accept the intentional fail-closed behavior
    Merge with the documented understanding that non-enforcing CLI backends reject restricted prompt-hook runs rather than silently submit a broader tool surface.

Technical review

Best possible solution:

Land one canonical resolved-tool policy so cron guidance, the submitted tool inventory, and automatic-delivery fallback always agree; retain the explicit fail-closed path only for backends that cannot honor hook restrictions exactly.

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

Yes, source-reproducible: current main appends the delivery instruction from delivery-plan and allowlist facts before the runtime resolves its submitted tools. The PR additionally supplies exact-head compiled-loopback evidence of the affected isolated-cron path.

Is this the best way to solve the issue?

Yes: deriving guidance from the resolved submitted tool surface repairs the owner-boundary mismatch instead of compensating after the model receives contradictory instructions. The CLI fail-closed compatibility policy is the only remaining behavior that needs a final current-main confirmation.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: The patch repairs incorrect scheduled-agent guidance and fallback behavior with a bounded but real operator impact.
  • merge-risk: 🚨 compatibility: The new exact-enforcement requirement can stop existing hook-restricted CLI runs that previously started with a broader, unenforceable tool surface.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR includes exact-head compiled production-path loopback evidence showing a no-message-tool inventory, no phantom message guidance, and one successful automatic delivery; the scope and non-live limitations are stated clearly.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR includes exact-head compiled production-path loopback evidence showing a no-message-tool inventory, no phantom message guidance, and one successful automatic delivery; the scope and non-live limitations are stated clearly.

Evidence

What I checked:

  • Current-main defect remains: Current main still computes messageToolPromptEnabled from the source-delivery plan and payload allowlist, then appends message-tool guidance before the selected runtime has resolved its actual tool surface. That is the reported phantom-guidance boundary, so this PR is not obsolete. (src/cron/isolated-agent/run-prepare.ts:589, ae27d7936447)
  • Resolved-tool owner boundary: The branch defers cron delivery guidance until messageToolAvailable is derived from the runtime's resolved tools; it rejects message_tool_only only when that runtime cannot expose the required tool and otherwise preserves automatic-delivery guidance. (src/cron/isolated-agent/run-executor.ts:279, 08c9ad354609)
  • Embedded and CLI surfaces use the same fact: Embedded assembly finalizes after prompt-hook tool filtering, while CLI preparation filters the backend projection and derives availability from the projected submitted tools. This covers the central sibling surfaces rather than repairing only cron prompt construction. (src/agents/embedded-agent-runner/run/attempt-prompt-assembly.ts:139, 08c9ad354609)
  • Exact-head behavior proof: The PR body and latest contributor update report a compiled production runCronIsolatedAgentTurn loopback run at this head: the submitted inventory contained only session_status, the prompt omitted the message-tool instruction and destination metadata, and automatic delivery completed exactly once. The stated scope is deterministic local provider and in-memory Telegram-adapter proof, not a live network claim. (src/cron/isolated-agent/run.message-tool-policy.test.ts:162, 08c9ad354609)
  • Feature provenance and likely routing: Blame ties the current delivery-prompt gate to the session/delivery work introduced in a0ad31fe8a9ad4b72a9c7685577db695e26c87b5; subsequent PR commits 4fe70102dfdc2449112f751dd93b48d7f8784c0c and 9686806646c82938df0ee163cf4cc816e47a1ad0 implement the resolved-tool and CLI hook-restriction boundaries. (src/cron/isolated-agent/run-delivery-trace.ts:158, a0ad31fe8a9a)
  • Current-main integration context: Current main has changed other embedded-run lifecycle files since the PR base, while the checkout still lacks this PR's prompt-finalization symbols. The GitHub context reports the branch as cleanly mergeable, so this is a review-refresh concern rather than evidence that it would overwrite main-only behavior. (src/agents/embedded-agent-runner/run/attempt.ts:1, ae27d7936447)

Likely related people:

  • Peter Steinberger: Current-main blame attributes the delivery-plan-based message-tool prompt gate to the session and delivery work that introduced the present behavior. (role: introduced current delivery-prompt behavior; confidence: high; commits: a0ad31fe8a9a; files: src/cron/isolated-agent/run-delivery-trace.ts, src/cron/isolated-agent/run-prepare.ts, src/cron/isolated-agent/run-executor.ts)
  • vincentkoc: A member authored the central resolved-tool and CLI hook-enforcement commits on this branch and documented the intended fail-closed behavior for non-enforcing CLI backends. (role: recent area contributor; confidence: high; commits: 4fe70102dfdc, 9686806646c8; files: src/cron/isolated-agent/run-executor.ts, src/agents/cli-runner/prepare.ts)
  • Patrick-Erichsen: The latest branch commit preserves the existing prompt-hook failure fallback at the affected agent-runtime boundary. (role: compatibility repair contributor; confidence: medium; commits: 08c9ad354609; files: src/agents/cli-runner/prepare.ts, src/agents/embedded-agent-runner/run/attempt-prompt-assembly.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh the exact-head focused proof after reconciling the branch with current main, including a non-enforcing CLI backend restriction case.

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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-31T16:52:58.412Z sha 1dba7c3 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T17:05:49.073Z sha 4fe7010 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T17:33:11.051Z sha 9686806 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-31T17:40:28.383Z sha 9686806 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T17:48:09.397Z sha 9686806 :: found issues before merge. :: [P1] Preserve prompt-only hook failure compatibility
  • reviewed 2026-07-31T18:07:02.491Z sha 9686806 :: needs changes before merge. :: [P1] Preserve prompt-only hook failure compatibility
  • reviewed 2026-07-31T21:19:56.668Z sha 08c9ad3 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-31T22:00:00.397Z sha 08c9ad3 :: needs maintainer review before merge. :: none

@vincentkoc vincentkoc self-assigned this Jul 31, 2026
@vincentkoc

vincentkoc commented Jul 31, 2026 •

Copy link
Copy Markdown
Member

Maintainer evidence update for exact head 9686806646c82938df0ee163cf4cc816e47a1ad0:

  • Repaired the second review block at the CLI owner boundary: before_prompt_build now resolves once before backend projection/materialization, and its toolsAllow participates in the final submitted tool surface.
  • CLI availability is the intersection of backend projection, caller availability, hook restrictions, and forced message ownership. The resulting messageToolAvailable fact drives both submitted tools and delivery guidance, so removing message removes the phantom guidance too.
  • Existing backend projection remains an upper bound. Selectable backends receive exact filtered availability; always-on or otherwise non-enforcing backends fail closed instead of bypassing the hook. CLI hook-policy failures also fail closed, while embedded callers retain their existing default behavior.
  • Focused proof is green: 319 tests across cron delivery policy, source-delivery guard, embedded construction/prompt policy, shared prompt-hook behavior, and CLI preparation. Targeted lint, formatting, git diff --check, and private-data scan are clean.
  • Final structured autoreview reports no actionable findings.
  • The repo changed-file umbrella gate could not start because its remote proof provider was unavailable. Exact-head CI is attached with 46 checks discovered and still running, including the real-behavior proof lane.

Remaining blocker before merge: exact-head CI and the integrated real-behavior proof must finish green for this head. Keeping this PR canonical and open. Do not merge yet.

Copy link
Copy Markdown
Contributor Author

Exact-head integrated proof is now complete for 1dba7c3ec601f65fff29a17753e06b6fdf1005ce.

I compiled this head and exercised the production runCronIsolatedAgentTurn path with isolated state, omitted toolsAllow, a deterministic loopback Responses endpoint, and a disposable Telegram outbound adapter.

Observed from the compiled production run:

{
  "status": "ok",
  "outputText": "PR116908_AUTOMATIC_DELIVERY_OK",
  "compiledPrompt": {
    "hasAutomaticDeliveryGuidance": true,
    "hasMessageToolInstruction": false,
    "hasDestinationMetadata": false
  },
  "finalToolInventory": {
    "names": ["session_status"],
    "includesMessage": false
  },
  "automaticDelivery": {
    "count": 1,
    "delivered": true,
    "to": "proof-recipient",
    "text": "PR116908_AUTOMATIC_DELIVERY_OK"
  }
}

The PR body now records the complete proof, exact limitations, and artifact hashes. This validates the real compiled isolated-cron prompt/tool/delivery path, but it is intentionally not represented as an external provider call or a live Telegram network delivery.

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 31, 2026
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: M and removed size: S labels Jul 31, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Exact-head compiled runtime proof for 4fe70102dfdc2449112f751dd93b48d7f8784c0c:

I exercised production runCronIsolatedAgentTurn with OpenClaw's loopback mock OpenAI-compatible server, a disposable in-memory Telegram adapter, no toolsAllow override, and an explicit automatic-delivery target.

{
  "status": "ok",
  "summary": "PR116908_FINAL_AUTOMATIC_DELIVERY_OK",
  "delivered": true,
  "deliveryAttempted": true,
  "compiledPrompt": {
    "hasAutomaticDeliveryGuidance": true,
    "hasMessageToolInstruction": false,
    "hasDestinationMetadata": false
  },
  "finalToolInventory": {
    "count": 1,
    "names": ["session_status"],
    "includesMessage": false
  },
  "automaticDelivery": {
    "count": 1,
    "delivered": true,
    "to": "proof-recipient",
    "text": "PR116908_FINAL_AUTOMATIC_DELIVERY_OK"
  }
}

Proof report SHA-256: b02f290ee6a10334b0c1e27399a14a4a89038eb306262859e34351ca17489f8f

Final model request SHA-256: ceeef6e323ac981c581a5a07576b16d53671ecad8153dc4aa213cf48f43d0b5c

This is deterministic loopback evidence, not a live external provider or Telegram-network test. All 8 hosted workflows on the same head are green.

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

Copy link
Copy Markdown
Contributor Author

Fresh exact-head validation for 9686806646c82938df0ee163cf4cc816e47a1ad0, including the maintainer's CLI prompt-hook restriction commit:

  • 293 focused tests passed across three Vitest shards
  • Oxfmt passed on all 16 changed files
  • type-aware Oxlint passed on all 16 changed files
  • git diff --check passed

I also rebuilt the exact head and repeated the production runCronIsolatedAgentTurn proof with OpenClaw's loopback mock server and a disposable in-memory Telegram adapter:

{
  "exactHead": "9686806646c82938df0ee163cf4cc816e47a1ad0",
  "status": "ok",
  "delivered": true,
  "compiledPrompt": {
    "hasAutomaticDeliveryGuidance": true,
    "hasMessageToolInstruction": false,
    "hasDestinationMetadata": false
  },
  "finalToolInventory": {
    "count": 1,
    "names": ["session_status"],
    "includesMessage": false
  },
  "automaticDelivery": {
    "count": 1,
    "delivered": true,
    "to": "proof-recipient"
  }
}

Proof report SHA-256: dbc78b951d456745fce400e9433bbe567b9e2feb08e0a58689f96d81ddc92706

Final model request SHA-256: bce0b5119aebd6185c473fbc34490befb349624cd9b509ca133a8c01d002b988

This is deterministic loopback evidence, not a live external provider or Telegram-network test. Fresh exact-head hosted CI is still running.

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 31, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Fresh exact-head validation for 08c9ad354609246db767de40e9dde61fcc893749 is complete.

  • 292 focused tests passed across three shards, including the throwing before_prompt_build fallback case
  • Oxfmt and type-aware Oxlint passed on all 14 changed files
  • openclaw-unified and @openclaw/ai builds passed
  • git diff --check passed
  • all 8 hosted workflow runs on this head are green

The rebuilt production runCronIsolatedAgentTurn path completed with automatic delivery, no message instruction, no destination metadata, and a final inventory containing only session_status. Automatic delivery occurred exactly once.

Proof report SHA-256: 0274bb6504d1031f36433d67756b6f2f39a2d1591face3b95f4f5f406bdad059

Final model request SHA-256: 4fa1277ee7c7ddf2fc01d22b6fcd1224980cef5e4c48211ac16f86973d95abb8

This is deterministic compiled loopback evidence, not a live external-provider or Telegram-network test. I updated the PR body with the current compatibility behavior and removed the stale parent-head evidence.

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 31, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Exact-head merge evidence refreshed for 08c9ad354609246db767de40e9dde61fcc893749:

  • Hosted CI is green, including check-lint and openclaw/ci-gate.
  • 173 focused tests passed, including the throwing before_prompt_build fallback regression.
  • A private-QA build launched compiled dist/index.js; the submitted inventory omitted message, the model input contained automatic-delivery guidance and no message-tool guidance, and qa-channel recorded exactly one outbound delivery.
  • Testbox: https://github.com/openclaw/openclaw/actions/runs/30668895572
  • Report SHA-256: 0133c25a5b2d55a67e381db5d5f8f8886d79bd55eb47515dfa6f552cc5259b6a
  • Final request SHA-256: e8d4e3ab507581418890c689e67cddda71d12c598d565a0d8dbaf92a097d5c47

The PR body now reflects the restored hook-failure fallback and current exact-head proof.

@clawsweeper re-review

@Patrick-Erichsen
Patrick-Erichsen merged commit 10b7a33 into openclaw:main Jul 31, 2026
214 of 227 checks passed
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 31, 2026
…odels-20260729

* origin/main:
  fix(tui): canonical terminal outcomes, cancellation, and error privacy (#117044)
  fix(cron): avoid phantom message tool guidance (#116908)
  fix(test): avoid macOS release gate deadlocks (#116972)
  fix(openai): canonical Chat cache-hit and billing accounting (#117043)
  fix(memory-wiki): salvage human Notes before pruning imported source pages (#102294)
  fix(memory): suggest reindex, not --fix, for a missing qmd index (#116958)
  chore(msteams): add private Gateway QA adapter
  fix(ui): make session controls and failures accessible (#117019)
  docs: fix tilde paths in CLI output examples (#114595)
  fix(plugins): canonical discovery diagnostics and deterministic lifecycles (#117025)
  fix(ui): honor Gateway readiness abort and subscription ownership (#117048)
  fix(updater): harden launchd replacement timing (#117030)
  fix(gateway): preserve static asset HEAD representation metadata (#117049)
  fix(gateway): abort embeddings when clients disconnect (#116146)
  fix(googlechat): retain fallback thread continuity (#117053)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* fix(cron): avoid phantom message tool guidance

* fix(cron): derive message guidance from resolved tools

* fix(cli): apply prompt hook tool restrictions before guidance

* fix(agents): preserve prompt-hook failure fallback

---------

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Patrick Erichsen <[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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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: L 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.

[Bug]: cron/isolated runs inject 'use the message tool' prompt while no message tool is in the toolset

3 participants