Skip to content

fix(cli-runner): drop stock watchdog defaults that disable resume promotion (#125045) - #125085

Merged
steipete merged 8 commits into
openclaw:mainfrom
ruel225:fix/cli-watchdog-promotion-unreachable-125045
Aug 25, 2026
Merged

steipete merged 8 commits into
openclaw:mainfrom
ruel225:fix/cli-watchdog-promotion-unreachable-125045

Conversation

@ruel225

@ruel225 ruel225 commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Closes #125045.

The bundled Anthropic and Google CLI backend descriptors both copied OpenClaw's stock fresh and resumed watchdog profiles into their own configuration. Those copies provided no customization, but their presence made the runtime treat the resumed watchdog as explicitly configured. That permanently disabled the existing promotion for resumed cron runs and explicitly timed turns, causing legitimate silent work to be terminated after 180 seconds instead of receiving its intended longer budget.

Root Cause and Repair

src/agents/cli-runner/reliability.ts already owns watchdog profile selection. It promotes a resumed cron or explicitly timed run only when the backend has not explicitly configured its own resumed watchdog.

This change removes the duplicate stock profiles from the two backend owners:

  • extensions/anthropic/cli-backend.ts
  • extensions/google/cli-backend.ts

The existing runtime owner can then select its standard profiles normally. Ordinary resumed turns retain their existing 180-second budget, while intentional custom backend watchdog settings continue to override promotion. No configuration schema, persisted state, public Plugin SDK export, or provider API changes.

The public CLI-backend authoring guide also previously taught third-party plugins to copy the same problematic defaults. Its worked example now inherits the standard policy, and its existing reliability.watchdog contract explains when intentional custom tuning is appropriate.

Evidence

The plugin-owned Anthropic regression captures its actual full plugin registration; the plugin-owned Google regression captures its actual public setup registration. Both assert that the registered backend descriptor leaves its resumed watchdog unset so the shared runtime owner can choose the correct standard profile. Existing generic core watchdog tests cover resumed cron, explicitly timed, and ordinary runs; a new adjacent case verifies that an intentional custom backend watchdog still wins. Core tests do not import bundled-plugin surfaces, and no test-only SDK exports are needed.

Before the production fix, both plugin-owned regressions fail on their real registered descriptors:

FAIL anthropic actual plugin registration
  expected resume watchdog undefined, received { maxMs: 180000, ... }
FAIL google actual public setup registration
  expected resume watchdog undefined, received { maxMs: 180000, ... }

After removing the duplicate profiles, both provider regressions pass, and the repository's complete plugin/core boundary suite passes:

node scripts/run-vitest.mjs \
  extensions/anthropic/index.test.ts \
  extensions/google/setup-api.test.ts \
  -t 'registers the claude-cli backend|registers setup runtime providers declared by the manifest'

Test Files  2 passed (2)
Tests       2 passed (2)

node scripts/run-vitest.mjs test/extension-test-boundary.test.ts

Test Files  1 passed (1)
Tests       10 passed (10)

A separate live production-boundary probe used each genuine registered backend descriptor, the production watchdog resolver, the production process supervisor, and a real silent Node child process. Its child environment was empty. To avoid waiting several minutes, the exact resolved production budgets were explicitly scaled by 1,000 for process execution; the child remained silent for 260 ms:

[
  {"plugin":"anthropic","phase":"before","resolvedMs":180000,"scaledWatchdogMs":180,"result":"no-output-timeout","stdout":""},
  {"plugin":"anthropic","phase":"after","resolvedMs":480000,"scaledWatchdogMs":480,"result":"exit","stdout":"provider-completed"},
  {"plugin":"google","phase":"before","resolvedMs":180000,"scaledWatchdogMs":180,"result":"no-output-timeout","stdout":""},
  {"plugin":"google","phase":"after","resolvedMs":480000,"scaledWatchdogMs":480,"result":"exit","stdout":"provider-completed"}
]

Generic owner and process-supervisor tests also cover the complete promotion and operating-system lifecycle:

node scripts/run-vitest.mjs \
  src/agents/cli-runner.reliability.test.ts \
  src/process/supervisor/supervisor.test.ts

Resumed cron:             480000 ms
Explicit resumed timeout: 480000 ms
Ordinary resumed turn:    180000 ms
Explicit custom watchdog: 120000 ms
Process supervisor tests: 23 passed

The final changed-surface gate passed plugin-boundary checks, targeted lint, all three relevant TypeScript programs, doctor-contract regression tests, formatting, and architectural guards. The unrelated repository-wide dead-export scan was skipped using its documented opt-out because this change modifies no exports.

The prior hosted build correctly rejected an earlier cross-boundary core regression test. That test has been removed entirely; coverage now lives with the actual plugin owners and the generic core owner. Fresh exact-head hosted CI will validate the updated contributor branch.

Change Size

  • Production: +1/-22, net -21 lines.
  • Public plugin documentation: +6/-12, net -6 lines.
  • Owner-boundary regression coverage: +25/-6, net +19 lines.

…ptors (openclaw#125045)

The claude-cli and gemini-cli backend descriptors spread
CLI_FRESH/RESUME_WATCHDOG_DEFAULTS into config.reliability.watchdog.
Those copies are byte-identical to the fallback pickWatchdogProfile
already uses, so shipping them only makes `configured` always truthy,
which permanently disables the promotion gate (!configured) and pins
resumed cron/explicit-timeout turns to the 180s resume no-output ceiling
instead of the 600s fresh ceiling.

Removing the blocks lets `configured` be undefined, restoring the
promotion gate. No user-config path is affected: reliability.watchdog
is not exposed in the config schema, the descriptor is the sole source,
and pickWatchdogProfile is the only runtime reader. The codex backend
never shipped the block, so this aligns the three backends.

Co-Authored-By: Claude <[email protected]>
@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@ruel225
ruel225 marked this pull request as ready for review August 17, 2026 05:42
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 6:51 AM ET / 10:51 UTC.

ClawSweeper review

What this changes

The PR removes copied watchdog defaults from the Anthropic and Google CLI backend descriptors and updates plugin guidance and regression coverage so eligible resumed runs inherit the shared promoted timeout.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open: current main still carries the two copied descriptor watchdog profiles, while the exact head removes that duplicate policy, preserves intentional custom watchdog settings, and has no actionable correctness finding.

Priority: P2
Reviewed head: 7d081bd833a1bdf7be6ddef7c9c7485a762c8204

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary deletion with strong source coverage and a credible after-fix process trace is ready for normal exact-head CI gating.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The PR body includes an after-fix production-boundary trace from genuine registered descriptors through the production resolver and process supervisor to a real silent child process, showing recovery from the former scaled no-output timeout.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body includes an after-fix production-boundary trace from genuine registered descriptors through the production resolver and process supervisor to a real silent child process, showing recovery from the former scaled no-output timeout.
Evidence reviewed 6 items Current-main defect: Current main still gives the Anthropic descriptor a full resumed watchdog object; the shared resolver treats any such object as explicit configuration, so its promotion condition cannot apply.
Shared policy and runtime entry: The resolver promotes only when the resumed watchdog is absent, and the CLI execution path passes its result to process execution.
Both affected producers covered: Current main also copies the same profiles into the Google descriptor, while the PR head omits both provider-owned copies.
Findings None None.
Security None None.

Live Verification

Command: pnpm openclaw --help

Result: PASS (completed)

pnpm openclaw --help
runner@runnervm76f27:/tmp/clawsweeper-live-proof-125085-WTGlfN/target$ pnpm openclaw --help
$ node scripts/run-node.mjs --help
pnpm openclaw --help
[openclaw] Building TypeScript (dist is stale: missing_build_stamp - build stamp missing).
[openclaw] Building bundled plugin assets.
[canvas] build: node scripts/bundle-a2ui.mjs
[log] ‹DIR›/a2ui.bundle.js  chunk │ size: 399.96 kB
[log] ‹DIR›/a2ui-v0.9.bundle.js  chunk │ size: 615.66 kB
[log]
[success] rolldown v1.2.0 Finished in 109.27 ms
[diffs] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts curated
[diffs-language-pack] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts full
[discord] build: node --import tsx ../../scripts/build-discord-activity-sdk.mts
[tsdown-build] invocation 1/2 finished in 0.7s
node_modules/playwright-core/lib/coreBundle.js (65821:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65821:29 ]
       │
 65821 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/playwright-core/lib/coreBundle.js (65828:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65828:29 ]
       │
 65828 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2343:30) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2343:31 ]
      │
 2343 │           ASM_CONSTS[start] = eval(func);
      │                               ──┬─
      │                                 ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2366:32) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2366:33 ]
      │
 2366 │           moduleExports[name] = eval(func);
      │                                 ──┬─
      │                                   ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

[tsdown-build] invocation 2/2 finished in 14.3s
[plugin-control-plane-loads] verified 35 built modules with native require and checked doctor closures
runtime-postbuild: 11 phases completed in 4377ms (slowest: built plugin control-plane loads 3607ms)

OpenClaw 2026.8.1 (7d081bd) — All your chats, one OpenClaw.

Usage: openclaw [options] [command]

Options:
  --container ‹name›   Run the CLI inside a running Podman/Docker container named ‹name› (default: env OPENCLAW_CONTAINER)
  --dev                Dev profile: isolate state under ~/.openclaw-dev, default gateway port 19001, and shift derived ports (browser/canvas)
  -h, --help           Display help for command
  --log-level ‹level›  Global log level override for file + console
… output truncated …

Assertions:

  • PASS expect_output: Usage: openclaw

How this fits together

Bundled CLI backend plugins register process descriptors for the shared CLI runner. The runner chooses a watchdog profile from the descriptor and run context, then passes the resulting no-output deadline to the process supervisor.

flowchart LR
A[Bundled CLI plugin] --> B[Backend descriptor]
C[Resume trigger and timeout] --> D[Shared watchdog policy]
B --> D
D --> E[CLI runner]
E --> F[Process supervisor]
F --> G[Silent process completes or times out]
Loading

Before merge

  • Resolve merge risk (P1) - Merging intentionally permits eligible resumed Anthropic and Google CLI runs to remain silent longer than the previous 180-second ceiling, increasing the time a genuinely stalled child can occupy its process slot.
  • Complete next step (P2) - No discrete automated repair remains; wait for the current exact-head checks and normal maintainer merge handling.
Agent review details

Security

None.

PR surface

Source -21, Tests +19, Docs -6. Total -8 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 2 1 22 -21
Tests 3 25 6 +19
Docs 1 6 12 -6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 32 40 -8

Review metrics

Metric Value Why it matters
Production versus test LOC production -21, tests +19, docs -6 The repair deletes duplicated runtime policy while adding owner-local regression coverage rather than expanding the core decision path.
Descriptor watchdog policy 2 copied provider watchdog configurations removed Both bundled CLI descriptors now inherit the shared default policy, changing resumed cron and explicitly timed-run behavior.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #125045
Summary: This PR is the concrete candidate fix for the linked CLI watchdog defect.

Members:

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

Merge-risk options

Maintainer options:

  1. Accept the intended longer resumed-run budget (recommended)
    Merge after exact-head checks pass, accepting the bounded availability tradeoff because custom backend watchdog settings continue to override inheritance.

Technical review

Best possible solution:

Retain watchdog selection in the shared runner, omit value-identical plugin defaults so inherited promotion works, and land after the exact-head checks complete.

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

Yes: current main's registered Anthropic and Google descriptors supply a resumed watchdog, and the resolver's configured-value gate therefore selects the 180-second profile; this read-only review did not execute the path.

Is this the best way to solve the issue?

Yes: removing value-identical policy at the two producer descriptors lets the existing shared owner distinguish inheritance from intentional tuning without adding provenance machinery or a new configuration surface.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes an after-fix production-boundary trace from genuine registered descriptors through the production resolver and process supervisor to a real silent child process, showing recovery from the former scaled no-output timeout.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body includes an after-fix production-boundary trace from genuine registered descriptors through the production resolver and process supervisor to a real silent child process, showing recovery from the former scaled no-output timeout.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded provider-runner reliability repair with a clear source-level failure and limited affected backends.
  • merge-risk: 🚨 availability: The intended behavior increases the permitted silent duration for eligible resumed provider processes.
  • 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. Sufficient (live_output): The PR body includes an after-fix production-boundary trace from genuine registered descriptors through the production resolver and process supervisor to a real silent child process, showing recovery from the former scaled no-output timeout.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes an after-fix production-boundary trace from genuine registered descriptors through the production resolver and process supervisor to a real silent child process, showing recovery from the former scaled no-output timeout.

Evidence

What I checked:

  • Current-main defect: Current main still gives the Anthropic descriptor a full resumed watchdog object; the shared resolver treats any such object as explicit configuration, so its promotion condition cannot apply. (extensions/anthropic/cli-backend.ts:232, f830b8c1590b)
  • Shared policy and runtime entry: The resolver promotes only when the resumed watchdog is absent, and the CLI execution path passes its result to process execution. (src/agents/cli-runner/reliability.ts:31, f830b8c1590b)
  • Both affected producers covered: Current main also copies the same profiles into the Google descriptor, while the PR head omits both provider-owned copies. (extensions/google/cli-backend.ts:190, 7d081bd833a1)
  • Owner-boundary regression coverage: The Anthropic and Google registration tests assert that their registered descriptors leave the resumed watchdog unset; the core test retains the separate explicit-custom-watchdog override contract. (src/agents/cli-runner.reliability.test.ts:4429, 7d081bd833a1)
  • After-fix process proof: The PR body supplies a before/after production-boundary trace using each registered descriptor, the production resolver and supervisor, and a real silent Node child; after the change both providers resolve 480000 ms and the scaled child exits instead of timing out. (7d081bd833a1)
  • Feature-history provenance: Blame attributes the current resolver gate and both copied descriptor blocks to the same current-main source provenance; recent PR-head repair commits are authored by steipete. (src/agents/cli-runner/reliability.ts:31, c5d1cb38e208)

Likely related people:

  • steipete: Current-main blame covers the resolver and both copied descriptor blocks, and the latest repair commits on this PR are authored by steipete. (role: recent CLI runner and provider-descriptor contributor; confidence: medium; commits: c5d1cb38e208, 4134aeb653ac, 7d081bd833a1; files: src/agents/cli-runner/reliability.ts, extensions/anthropic/cli-backend.ts, extensions/google/cli-backend.ts)

Rank-up moves

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

  • Let the current exact-head CI complete successfully before merging.

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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-17T09:10:27.607Z sha 1d135fb :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-17T13:08:12.180Z sha f30f135 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-20T07:48:31.789Z sha f30f135 :: needs real behavior proof before merge. :: none
  • reviewed August 21, 2026, 10:01 PM ET / August 22, 2026, 02:01 UTC sha unknown :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-22T02:44:03.903Z sha f30f135 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-23T05:08:52.816Z sha f30f135 :: needs real behavior proof before merge. :: [P3] Keep the core resolver out of the plugin test-fixture facade
  • reviewed 2026-08-23T05:51:07.255Z sha f30f135 :: needs real behavior proof before merge. :: [P3] Remove the core resolver from the plugin test facade
  • reviewed 2026-08-25T10:07:27.731Z sha 4134aeb :: needs real behavior proof before merge. :: none

…nclaw#125045)

Drive the real shipped Anthropic/Gemini CLI backend descriptor config through
the production resolveCliNoOutputTimeoutMs resolver to prove the resumed-cron
promotion is live post-fix. Pre-fix the descriptor shipped byte-identical
resume defaults, so configured was truthy and the !configured promotion gate
was dead, pinning resumed cron turns to the 180s resume ceiling (180000).
Post-fix the block is gone and the resolver returns the promoted fresh budget
(480000 = 600000 * 0.8).

resolveCliNoOutputTimeoutMs is re-exported through the test-only
openclaw/plugin-sdk/test-fixtures subpath (excluded from published dist), so
extension tests can drive the real descriptor through the real resolver without
crossing the extension/core boundary.

Co-Authored-By: Claude <[email protected]>
@ruel225

ruel225 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

Added real-behavior proof addressing the "no after-fix real CLI-run trace" gate.

The new test drives the real shipped descriptor config (buildAnthropicCliBackend().config / buildGoogleGeminiCliBackend().config) through the production resolver resolveCliNoOutputTimeoutMs — the function src/agents/cli-runner/execute.ts calls to derive the no-output watchdog budget — with useResume: true, trigger: "cron", timeoutMs: 600_000.

  • Pre-fix (blocks restored from dc671375a77^): resolver returns 180000 (resume ceiling) — AssertionError: expected 180000 to be 480000.
  • Post-fix: resolver returns 480000 (promoted fresh budget, 600000 * 0.8).

This is the real production computation path: the shipped descriptor (no reliability.watchdog block post-fix) → pickWatchdogProfile reads configured as undefined → the !configured promotion gate (reliability.ts:31) is live → fresh defaults selected. resolveCliNoOutputTimeoutMs is re-exported through the test-only openclaw/plugin-sdk/test-fixtures subpath (excluded from published dist) so extension tests can drive the real descriptor through the real resolver without crossing the extension/core boundary. PR body updated with the pre/post-fix trace.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 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 exact_review_queue).
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 the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label Aug 17, 2026
Move the descriptor-shape and descriptor→resolver real-behavior proof
tests out of cli-shared.test.ts into cli-watchdog-promotion.test.ts.
cli-shared.test.ts exceeded the extensions max-lines budget (1000
non-blank/non-comment lines) once the proof tests landed; the focused
file keeps the same test names and coverage while staying under the
budget. No production change.

Co-Authored-By: Claude <[email protected]>
Validate bundled plugin descriptors through their public setup entries and keep custom watchdog contracts intact.

Co-authored-by: ruel225 <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: M and removed size: S labels Aug 25, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: S and removed docs Improvements or additions to documentation extensions: anthropic size: M labels Aug 25, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: anthropic triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Aug 25, 2026
Keep Anthropic and Google descriptor assertions inside their plugin-owned registration suites, preserve generic resumed/custom watchdog coverage in its core owner, and remove the cross-plugin core test rejected by architecture CI.

Co-authored-by: ruel225 <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Aug 25, 2026
@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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 25, 2026
@steipete
steipete merged commit 34a1cfc into openclaw:main Aug 25, 2026
209 of 211 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

Rorqualx pushed a commit to Rorqualx/cortex that referenced this pull request Aug 25, 2026
… advance 80)

Resolution (13 raw conflicts; 12 ui resolved by fork-ownership policy):

- pnpm-lock.yaml: regenerated via pnpm install (derived file).
- extensions/openshell/src/openshell-core.test.ts (merge=ours drift): ADOPT-UPSTREAM
  openclaw#129258 fixture dedup + openclaw#120996 tempWorkspace migration + openclaw#126828 canonical-owner
  test (fork's makeTempDir shape + missing test were stale freezes of older upstream
  code, not fork intent). Grafted fork's one genuine delta: required
  SandboxConfig.osSandbox block into createOpenShellBackendSandboxConfig.
- src/agents/cli-runner.reliability.test.ts (merge=ours drift): clean 3-way
  merge-file. Kept fork tests + upstream openclaw#125085 (codex->agent-cli literals,
  watchdog resume tuning test; math verified against merged reliability.ts).
- src/agents/embedded-agent-runner/run/incomplete-turn-recovery.ts: ADOPT-UPSTREAM
  (preflight tsgo-core=1 catch: upstream consumer openclaw#128970 imports
  resolveSettledToolBatchEvidence which merge churn had dropped from the fork
  provider; export surface differs by exactly this extraction; fork toolMetas
  type carries toolCallId?/terminate?/isError?).
- ui/src/ui/markdown.ts: explicit param types on the linkify www plugin callbacks
  (validate/normalize). @types/markdown-it 14.1.2->14.2.0 (upstream dep bump)
  dropped contextual typing for them; the fork-owned ui copy now types them inline
  per linkify-it's Validate/Match signatures (upstream adapted its own ui tree the
  same way). Only ui file needed it; tsgo:test:ui 3->0 locally.

Note: ui tree-hash invariant vs main intentionally broken by this one adaptation —
main's ui does not compile against the new lockfile (baseline 0 was measured with
@types 14.1.2).

No product-collision: no codex/** residuals.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
…motion (openclaw#125045) (openclaw#125085)

* fix(cli-runner): drop stock watchdog defaults from CLI backend descriptors (openclaw#125045)

The claude-cli and gemini-cli backend descriptors spread
CLI_FRESH/RESUME_WATCHDOG_DEFAULTS into config.reliability.watchdog.
Those copies are byte-identical to the fallback pickWatchdogProfile
already uses, so shipping them only makes `configured` always truthy,
which permanently disables the promotion gate (!configured) and pins
resumed cron/explicit-timeout turns to the 180s resume no-output ceiling
instead of the 600s fresh ceiling.

Removing the blocks lets `configured` be undefined, restoring the
promotion gate. No user-config path is affected: reliability.watchdog
is not exposed in the config schema, the descriptor is the sole source,
and pickWatchdogProfile is the only runtime reader. The codex backend
never shipped the block, so this aligns the three backends.

Co-Authored-By: Claude <[email protected]>

* test(cli-runner): add descriptor-through-resolver watchdog proof (openclaw#125045)

Drive the real shipped Anthropic/Gemini CLI backend descriptor config through
the production resolveCliNoOutputTimeoutMs resolver to prove the resumed-cron
promotion is live post-fix. Pre-fix the descriptor shipped byte-identical
resume defaults, so configured was truthy and the !configured promotion gate
was dead, pinning resumed cron turns to the 180s resume ceiling (180000).
Post-fix the block is gone and the resolver returns the promoted fresh budget
(480000 = 600000 * 0.8).

resolveCliNoOutputTimeoutMs is re-exported through the test-only
openclaw/plugin-sdk/test-fixtures subpath (excluded from published dist), so
extension tests can drive the real descriptor through the real resolver without
crossing the extension/core boundary.

Co-Authored-By: Claude <[email protected]>

* test(anthropic): split watchdog promotion proof into its own file

Move the descriptor-shape and descriptor→resolver real-behavior proof
tests out of cli-shared.test.ts into cli-watchdog-promotion.test.ts.
cli-shared.test.ts exceeded the extensions max-lines budget (1000
non-blank/non-comment lines) once the proof tests landed; the focused
file keeps the same test names and coverage while staying under the
budget. No production change.

Co-Authored-By: Claude <[email protected]>

* fix(cli-runner): restore inherited resume watchdog promotion

Validate bundled plugin descriptors through their public setup entries and keep custom watchdog contracts intact.

Co-authored-by: ruel225 <[email protected]>

* chore(cli-runner): align conflicting provider owner with main

Co-authored-by: ruel225 <[email protected]>

* fix(cli-runner): complete inherited resume watchdog promotion

Co-authored-by: ruel225 <[email protected]>

* test(cli): keep watchdog regressions in their owning plugins

Keep Anthropic and Google descriptor assertions inside their plugin-owned registration suites, preserve generic resumed/custom watchdog coverage in its core owner, and remove the cross-plugin core test rejected by architecture CI.

Co-authored-by: ruel225 <[email protected]>

---------

Co-authored-by: ruel225 <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Peter Steinberger <[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 extensions: anthropic extensions: google merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. 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.

CLI resume-watchdog promotion is unreachable on claude-cli/gemini-cli: hard 180s no-output ceiling with no config escape

2 participants