Skip to content

improve(skills): use low reasoning for weekly reviews - #141018

Closed
lc708 wants to merge 2 commits into
openclaw:mainfrom
lc708:codex/weekly-skill-review-low-thinking
Closed

lc708 wants to merge 2 commits into
openclaw:mainfrom
lc708:codex/weekly-skill-review-low-thinking

Conversation

@lc708

@lc708 lc708 commented Sep 7, 2026 •

Copy link
Copy Markdown

Closes #141005.

Related: #111943. Independent background model configuration remains a separate proposal.

What Problem This Solves

Operators who use high reasoning for normal agent work also get that effort in the system-owned weekly Skill Workshop review. They cannot lower just the review through cron edit, and lowering the agent default affects unrelated work.

Why This Change Was Made

Set thinking: "low" in the canonical weekly review task. The normal cron runner already owns effort selection, model capability handling, and execution; startup/config-reload reconciliation updates existing review jobs.

This is a default-policy proposal, not a new configuration surface. It follows the normal-cron architecture introduced in #136110.

User Impact

Weekly reviews request low reasoning while retaining their normal model and fallback selection. Interactive work, ordinary cron tasks, and experience/history reviews keep their existing behavior. Scheduling, tools, delivery, and stored-data schemas are unchanged.

The fixed review policy also overrides a lower or disabled agent reasoning default. Maintainers should decide whether that policy is preferable to retaining inheritance pending #111943. Review quality and token savings have not been benchmarked.

Evidence

The original focused proof below was recorded at 7b2d3d5cf38541531a2a27bd11c43d34a8b9df00.

  • Regression proof: removing the production line makes all three effort cases fail with inherited off, high, and xhigh. The existing-job reconciliation test also fails without the change.
  • The final owner/sibling run passed 187 tests across five files, covering weekly declarations, existing-job reconciliation, runtime effort forwarding, model/fallback selection, and ordinary cron behavior.
  • The tests use isolated state and a mocked model runner. They do not execute a live review or edit an operator's skills.
node scripts/run-vitest.mjs \
  src/cron/isolated-agent/run.cron-model-override-forwarding.test.ts \
  src/cron/isolated-agent/run.cron-runtime-model-thinking.test.ts \
  src/cron/skill-collection-review-monitor.test.ts \
  src/gateway/server-cron-skill-review-jobs.test.ts \
  src/gateway/server-cron.test.ts

The complete check:changed gate passed for the four changed files, including core and test typechecking, lint, formatting, and repository guards. git diff --check passed. Fresh independent autoreview at P0–P2 completed with no actionable findings.

CI refresh

f10f5ad648a8ac1b7d32c2dcd81ecc5b8339f4ef merges upstream main at fd67ed8fbaff6c4d047e0a89c6e8267b1da65acc to incorporate the existing update-finalization CI repair from #141137 and its subsequent upstream follow-up. This preserves the original contribution and branch history. The patch against the refreshed base remains exactly the same four-file change (stable patch ID 7b4feaad0b4c0873168ace5cb13f495787b0a264); whitespace checks pass.

The original checks-node-compact-small-31 failure was the existing update-finalization phase-hang process fixture: its prerequisite phase expired before the observed marker, and the test reached the 100-second deadlock guard. The original Workflow Sanity failure occurred while downloading a pinned action archive (HTTP 429), before actionlint started.

The refreshed Workflow Sanity run passed actionlint. The exact-head CI run completed successfully, including openclaw/ci-gate. Final PR check readback: 163 passed, 43 skipped, no failures or pending checks.

  • The repaired Node shard passed all 14 update-finalization scenarios. The previously failing phase-hang case passed in 14.483 seconds; the containing CLI group passed 69 tests with 5 platform skips. These are observed hosted timings, not a controlled performance comparison.
  • On the refreshed head, the same five focused cron/Gateway files passed again: 187 tests, 0 failures, across two routed Vitest shards in 44.80 seconds.
  • The complete four-file check:changed gate passed, including core and test typechecking, formatting, lint, dead-export scans, dependency/architecture guards, and storage/auth guards. git diff --check passed and the worktree is clean.
  • Independent standards and spec reviews of the original fixed diff found no actionable implementation findings; the refreshed contribution retains that identical patch.

No live-model proof or cost/quality benchmark is claimed. Fresh and reconciled weekly jobs still need real-model execution evidence before claiming that proof gap is closed. The default-policy decision described above remains open.

@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@lc708
lc708 marked this pull request as ready for review September 7, 2026 08:22
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: S labels Sep 7, 2026
@lc708 lc708 closed this Sep 7, 2026
@lc708 lc708 reopened this Sep 7, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 Sep 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

The branch makes weekly Skill Workshop reviews request low reasoning independently of the agent’s default, with documentation and reconciliation coverage.

Example: An operator uses high reasoning with claude-opus-4-6

  • Before: The weekly Workshop review inherits high reasoning.
  • After: The weekly review requests low reasoning while ordinary scheduled tasks retain high.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused implementation has no actionable code findings, but mocked execution and unresolved product direction limit readiness.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Operators using high reasoning for normal work cannot lower only the system-owned weekly Workshop review.
Reason: Inheritance works as designed, and this proposal replaces it with a fixed policy that also raises disabled or lower effort. The implementation is focused, but its value and preference tradeoff need area-owner direction.

Merge readiness

⛔ Blocked before merge - 5 items remain

Needs real behavior proof before merge. This PR remains a distinct, coherent proposal absent from current main and v2026.9.8; October 8 check activity prevents inactivity-based closure.

Priority: P3
Reviewed head: f10f5ad648a8ac1b7d32c2dcd81ecc5b8339f4ef
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should weekly Workshop reviews always request low reasoning, including when an operator selected off or lower effort?
  • Recommendation: Retain inherited effort: Preserve existing preferences while evaluating configurable background effort through [Feature]: Configurable model + reasoning effort for background "learning" subsystems #111943.
  • Why: The request explicitly changes designed inheritance, and neither recorded owner approval nor measured review-quality evidence settles the preference tradeoff.

Before merge

  • Add real behavior proof - The canonical declaration reaches reconciliation and the real scheduled-job runner under mocked model execution, but no fresh or reconciled weekly review is shown completing in a real setup after the change. Existing payload fields and identities are reused without a schema or stored-format migration; the operator-preference change remains a separate compatibility decision. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk - Reconciliation changes existing weekly reviews from inherited effort to fixed low, including explicit off or lower-effort preferences; owner acceptance of that policy remains unresolved.
  • Resolve merge risk - GitHub reports merge conflicts, and the touched monitor has materially evolved on main; the refreshed patch needs review against that implementation.
  • Complete next step - Resolve merge conflicts and add real fresh-job and reconciled-job completion evidence showing requested effort. Terminal screenshots, logs, or live output are acceptable; redact API keys, IP addresses, phone numbers, and private endpoints. Updating the PR body triggers a fresh review; otherwise a maintainer can comment @clawsweeper re-review.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Tests

  • Missing end-to-end proof: Neither a fresh weekly job nor an existing reconciled job is shown completing through the real Gateway and model runner. The reported base-fail/head-pass checks use mocked execution and were not rerun during this read-only review.
Agent review details

How this fits together

Skill Workshop maintains each agent’s reusable skills. The Gateway reconciles weekly maintenance jobs, and the scheduled-job runner selects reasoning effort before executing them.

flowchart LR
 A[Workshop configuration] --> B[Weekly review declaration]
 B --> C[Gateway reconciliation]
 C --> D[New or existing scheduled job]
 D --> E[Reasoning selection]
 F[Agent reasoning default] --> E
 E --> G[Workshop maintenance run]
Loading

Technical review

Best possible solution:

Keep effort selection in the canonical weekly declaration, retaining inheritance unless the area owner approves a universal low policy supported by real fresh-job and upgrade execution evidence.

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

Not applicable as defect reproduction: the linked request explicitly proposes a default-policy change, and source confirms the existing inheritance and editing restriction.

Is this the best way to solve the issue?

Unclear: the canonical payload is the narrowest implementation point, but universally replacing existing effort preferences needs an owner decision.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Preserve inherited preferences (recommended)
    Pause or close the default-policy proposal if the owner prefers retaining existing off and lower-effort choices.
  2. Accept the fixed-low policy
    Record explicit owner acceptance of the existing-user preference change without waiving execution proof or conflict resolution.

Provenance checked

  • src/cron/skill-collection-review-monitor.ts weekly review policy changes intended behavior with a stated reason (refactor(skills): run the weekly collection review as a normal cron agent turn #136110: Run weekly maintenance as an ordinary isolated cron turn with existing execution, cancellation, permissions, and history ownership; no specific fixed-effort rationale was recorded.)
  • src/gateway/server-cron.test.ts existing-job convergence coverage keeps the original intent (efa4b5d: Validate convergence and execution of weekly reviews through normal cron without requiring channel delivery.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Verified introduced patch: The pinned introduction diff adds thinking: low to the canonical review payload, documents it, and exercises effort forwarding and existing-job reconciliation. (src/cron/skill-collection-review-monitor.ts:51, f10f5ad648a8)
  • Current main does not implement the proposal: The current weekly agent-turn payload has no thinking override. Its monitor has since gained incremental projection and runtime eligibility handling. (src/cron/skill-collection-review-monitor.ts:259, aceda1bdd357)
  • Latest supplied release retains inheritance: The v2026.9.8 source also declares weekly reviews without a thinking override. The release blob was read through GitHub’s contents API after local partial-clone retrieval failed. (src/cron/skill-collection-review-monitor.ts, fc23bc864e45)
  • Existing preference and persistence boundary: Job thinking precedes session and configured defaults. Reconciliation updates existing declaration-keyed jobs through the existing payload format; thinking is already an optional field. Client edits to system-owned monitors are rejected. No schema or serialized-format migration is introduced, but the effective reasoning preference changes. (src/cron/isolated-agent/model-selection.ts, f10f5ad648a8)
  • Contributor proof and review continuity: The complete supplied PR body, sourceRevision 94b47eb3ed5eeffbebb44e708335234543e9429be4d55f96c94bb81a5c7f208d, explicitly describes mocked model execution and disclaims live-model proof. The prior review requested fresh and reconciled real-job completion evidence; that request remains unmet. The added cases cover off, high, and xhigh and protect ordinary-cron inheritance. (src/cron/isolated-agent/run.cron-runtime-model-thinking.test.ts:92, f10f5ad648a8)
  • Live merge and cleanup eligibility: GitHub reports the pinned head as dirty and unmergeable, with no assignees or requested reviewers. Head check runs include auto-response completed on 2026-10-08T03:46:49Z and dispatch on October 8, so the required inactivity windows for stalled_unproven_pr and abandoned_pr are not met. (f10f5ad648a8)

PR surface

Source +1, Tests +72, Docs +4. Total +77 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 0 +1
Tests 2 76 4 +72
Docs 1 4 0 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 81 4 +77

Review metrics

Metric Value Why it matters
Reasoning policy 1 system-owned default changed; 0 new settings Operators cannot opt out of the fixed effort through ordinary scheduled-job editing.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #141005
Summary: This PR implements the paired fixed-low policy request; broader configuration and reconciliation performance are separate work.

Members:

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a bounded default-policy preference without an established broken contract or measured urgent impact.
  • merge-risk: 🚨 compatibility: Existing weekly reviews would override operator reasoning defaults, including off, without recorded owner acceptance.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

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

  • Add redacted runtime evidence showing requested effort and successful completion for fresh and existing reconciled weekly jobs.
  • Obtain the area owner’s decision on overriding off and lower-effort preferences.
  • Resolve the current merge conflicts and refresh validation against main.

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 (6 earlier review cycles)
  • reviewed 2026-09-07T08:32:56.327Z sha 7b2d3d5 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-07T15:55:16.297Z sha f10f5ad :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-07T16:10:15.132Z sha f10f5ad :: needs real behavior proof before merge. :: none
  • reviewed September 23, 2026, 3:50 AM ET / 07:50 UTC (Revision 4) sha unknown :: needs real behavior proof before merge. :: none
  • reviewed September 23, 2026, 3:50 AM ET / 07:50 UTC (Revision 5) sha unknown :: needs real behavior proof before merge. :: none
  • reviewed September 23, 2026, 3:50 AM ET / 07:50 UTC (Revision 6) sha unknown :: needs real behavior proof before merge. :: none

Reviewed October 8, 2026, 12:18 AM ET / 04:18 UTC (Revision 7).

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

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 gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S stale Marked as stale due to inactivity status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Use low reasoning for weekly Skill Workshop reviews

1 participant