Skip to content

fix(exec): complex commands trigger human approval fallback due to reviewer token truncation - #144587

Merged
steipete merged 3 commits into
openclaw:mainfrom
MasterSwords1:fix/144476-exec-auto-reviewer-token-cap
Sep 13, 2026
Merged

steipete merged 3 commits into
openclaw:mainfrom
MasterSwords1:fix/144476-exec-auto-reviewer-token-cap

Conversation

@MasterSwords1

@MasterSwords1 MasterSwords1 commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Closes #144476

What Problem This Solves

Fixes an issue where users running shell commands under tools.exec.mode: "auto" would experience unexpected deferral to human approval when executing routine, complex commands (such as recursive directory searches, dense file listings, or multi-file inspections).

When a reviewer model generates a thorough explanation or reasoning rationale for a complex command, verbose evaluations exceed the review completion budget and fail closed to human approval with risk=unknown, causing approval fatigue and defeating automated approval for harmless operations.

Why This Change Was Made

Raises the exec reviewer completion budget to a bounded 1,024-token default clamped downward to the selected model's advertised maximum output limits (floored to integer to prevent provider 400 Bad Request errors), while strictly preserving the incomplete-verdict safety contract so non-stop completions continue to fail closed to human approval.

Following maintainer review feedback, this patch is intentionally narrowed to the bounded default alone without expanding the configuration surface.

User Impact

Users and developers running diagnostic and multi-step shell commands will no longer encounter repetitive, false-positive human approval prompts for benign operations. Reviewer completions will reliably finish without hitting artificial token ceilings, eliminating approval fatigue while preserving strict human escalation for incomplete or genuinely risky executions.

Evidence

1. Real Provider Live Execution Proof

Executed directly against a live local LLM provider endpoint (freellmapi/auto via Anthropic Messages protocol):

================================================================
Real Provider Behavior Proof: Exec Auto-Reviewer (#144476)
Live Endpoint: http://127.0.0.1:[REDACTED]/v1 (freellmapi/auto)
================================================================

[Test 1] Real Provider Review under DEFAULT budget (1024 tokens)
04:01:36 [provider-transport-fetch] [model-fetch] start provider=freellmapi api=anthropic-messages model=auto method=POST url=http://127.0.0.1:[REDACTED]/v1/messages timeoutMs=undefined proxy=none policy=custom
04:01:40 [provider-transport-fetch] [model-fetch] response provider=freellmapi api=anthropic-messages model=auto status=200 elapsedMs=4631 dispatcher=new contentType=text/event-stream
Decision received (default budget): {"decision":"allow-once","risk":"low","rationale":"Safe read of system log files","userAuthorization":"unknown"}
Execution time: 10631ms

[Test 2] Real Provider Safety Policy: Destructive command denied/flagged
04:01:44 [provider-transport-fetch] [model-fetch] start provider=freellmapi api=anthropic-messages model=auto method=POST url=http://127.0.0.1:[REDACTED]/v1/messages timeoutMs=undefined proxy=none policy=custom
04:01:46 [provider-transport-fetch] [model-fetch] response provider=freellmapi api=anthropic-messages model=auto status=200 elapsedMs=1730 dispatcher=reused contentType=text/event-stream
Decision received (destructive command): {"decision":"deny","risk":"high","rationale":"Deleting system logs is destructive and not allowed."}
Confirmed: Destructive command safely routed to: deny (high)

================================================================
All Live Provider Proof Tests Passed Successfully!
================================================================

2. Runtime Budget Resolution & Safety Contract Invariant Verification

Executed against real auto-reviewer runtime:

================================================================
Real-World Proof: Exec Auto-Reviewer Token Budget & Safety Invariants
Issue #144476: exec auto-reviewer hard-caps output at 360 tokens
================================================================

[SCENARIO 1] Bounded Provider-Validated Token Budget Resolution
- Default budget resolved: 1024 (expected: 1024)
- Clamped budget for modelMaxTokens=500: 500 (expected: 500)
- Budget for large modelMaxTokens=8192: 1024 (expected: 1024)
- Floating-point model tokens (512.7) floored: 512 (expected: 512)
- Fractional model tokens (0.5) bounded to at least 1: 1 (expected: 1)
- Non-finite or negative model tokens fallback to default: 1024 (expected: 1024)
Result: SUCCESS

[SCENARIO 2] Prevention of Unwanted Approval Deferrals for Long/Complex Reviews
Simulated model output length: 1564 chars (~447 tokens)
Passed maxTokens to completion runtime: 1024
Reviewer decision: {"decision":"allow-once","risk":"low","rationale":"The command 'find /var/log -type f -name \"*.log\" -exec ls -la {} +' is a standard diagnostic file search restricted to reading file metadata in /var/log..."}
Result: SUCCESS

[SCENARIO 3] Security Contract Retention: Incomplete/Truncated Completions Fail Closed
- Unclosed JSON with stopReason=length decision: {"decision":"ask","risk":"unknown","rationale":"exec reviewer completion failed: model stopped without a complete response (length)"}
- Complete-looking JSON with stopReason=length decision: {"decision":"ask","risk":"unknown","rationale":"exec reviewer completion failed: model stopped without a complete response (length)"}
Confirmed: Both unclosed and complete-looking length-stopped responses safely fail closed with explicit diagnostic.
Result: SUCCESS

3. Focused Tests & Changed Gates

  • src/agents/exec-auto-reviewer.test.ts: 85/85 passed (100%)
  • node scripts/check-changed.mjs:
    • conflict markers: OK
    • max-lines suppression ratchet: OK
    • assertion SAFETY comment ratchet: OK
    • changelog attributions: OK
    • doctor deprecation registry: OK
    • guarded extension wildcard re-exports: OK
    • plugin-sdk wildcard re-exports: OK
    • duplicate scan target coverage: OK
    • dependency pin guard: OK
    • format changed files (oxfmt): OK
    • plugin boundaries: OK
    • wrapper shadowing: OK
    • package patch guard: OK
    • core tsgo graph boundary: OK
    • typecheck core: OK

Maintainer rebase validation

The mechanical rebase preserves the reviewed 1,024-token default, smaller-model clamp, and rejection of incomplete responses. Its only conflict was the test-fixture migration to asynchronous disposal. Subsequent CI refresh commits are empty; current head is 02b263703d14d99a0b85733831a4b2da8f11607a.

  • Pre-fix proof: node scripts/run-vitest.mjs src/agents/exec-auto-reviewer.test.ts -t 'completion token budget' failed both budget regressions because the provider received 360 rather than 1,024/500 tokens.
  • Fixed proof: node scripts/run-vitest.mjs src/agents/exec-auto-reviewer.test.ts src/agents/exec-auto-reviewer.resources.test.ts passed all 85 tests, including after refreshing frozen dependencies.
  • Exact-head CI: run 34725087843 is green with zero pending checks. Its merge snapshot includes main's TLS lifetime, Control UI budget, and test-shard headroom repairs; earlier inherited-main failures are resolved.
  • No new live-provider proof was performed during maintainer preparation; the contributor's earlier evidence remains above. Contributor authorship remains MasterSwords1 [email protected].

ClawSweeper review

The latest completed review, at 02b263703d14d99a0b85733831a4b2da8f11607a, has no actionable findings or before-merge work. No Rank-up moves require fixups or skips. The single requested re-review and subsequent automatic refreshes preserve the original review history.

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. size: M labels Sep 11, 2026
@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 Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 12, 2026, 7:49 PM ET / 23:49 UTC (Revision 11).

ClawSweeper review

What this changes

Raises automatic command review output to 1,024 tokens, respects smaller model limits, and adds regression coverage while preserving human escalation for incomplete responses.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused fix: current main and v2026.9.4 retain the 360-token limit. No actionable defects remain, and the supplied live-provider evidence supports the change.

Priority: P2
Reviewed head: 02b263703d14d99a0b85733831a4b2da8f11607a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with relevant live-provider evidence, regression coverage, and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (logs): The supplied live-provider trace exercises the production reviewer at the new budget and records successful allow-once and deny outcomes; simulated truncation checks and reported before/after regressions supplement that evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The supplied live-provider trace exercises the production reviewer at the new budget and records successful allow-once and deny outcomes; simulated truncation checks and reported before/after regressions supplement that evidence.
Evidence reviewed 7 items Introduced production change: The verified merge-base-to-head diff changes only the reviewer budget and its tests. The new resolver bounds output to 1,024 tokens or the smaller positive model cap; completion failures still return before response parsing.
Still needed on current main: Fetched main retains EXEC_REVIEWER_MAX_TOKENS = 360 and passes that constant to completion. The related merged TLS PR addresses unrelated Gateway cleanup, not reviewer truncation.
Latest release retains the defect: The v2026.9.4 source also sets the budget to 360. Local release-blob inspection failed, so the same tagged file was successfully inspected through GitHub’s contents API.
Findings None None.
Security None None.

How this fits together

OpenClaw’s automatic reviewer evaluates pending commands using a configured model before execution. Its validated response determines whether the command may run once, is denied, or needs human approval; dashboard widget approvals also share this reviewer.

flowchart TD
  A[Pending command or widget request] --> B[Input safety checks]
  B --> C[Configured reviewer model]
  D[Model output limit] --> E[Bounded completion budget]
  E --> C
  C --> F[Validate complete response]
  F --> G[Allow once or deny]
  F --> H[Human approval or widget rejection]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +12, Tests -19. Total -7 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 14 2 +12
Tests 1 37 56 -19
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 51 58 -7

Review metrics

Metric Value Why it matters
Reviewer output budget 360 → 1,024 tokens; 0 new configuration options Provides more completion headroom while keeping a fixed ceiling and respecting smaller model limits.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #144476
Summary: This PR directly addresses the linked issue’s reviewer output ceiling; the TLS repair is independent.

Members:

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

Technical review

Best possible solution:

Keep the bounded budget in the existing reviewer while retaining strict completion validation and the current approval policy.

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

Yes, at the source boundary: current main caps completion at 360 tokens and routes length-stopped responses to human approval. The reported pre-fix regression supports that mechanism; no target code was executed during this read-only review.

Is this the best way to solve the issue?

Yes. Adjusting the existing reviewer’s bounded budget is a narrow repair that preserves strict response validation, model selection, and stored settings.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Reduces unnecessary human approval requests in automatic command review without changing execution permissions.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The supplied live-provider trace exercises the production reviewer at the new budget and records successful allow-once and deny outcomes; simulated truncation checks and reported before/after regressions supplement that evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied live-provider trace exercises the production reviewer at the new budget and records successful allow-once and deny outcomes; simulated truncation checks and reported before/after regressions supplement that evidence.

Evidence

What I checked:

  • Introduced production change: The verified merge-base-to-head diff changes only the reviewer budget and its tests. The new resolver bounds output to 1,024 tokens or the smaller positive model cap; completion failures still return before response parsing. (src/agents/exec-auto-reviewer.ts:352, 02b263703d14)
  • Still needed on current main: Fetched main retains EXEC_REVIEWER_MAX_TOKENS = 360 and passes that constant to completion. The related merged TLS PR addresses unrelated Gateway cleanup, not reviewer truncation. (src/agents/exec-auto-reviewer.ts:34, 11c9589dc10b)
  • Latest release retains the defect: The v2026.9.4 source also sets the budget to 360. Local release-blob inspection failed, so the same tagged file was successfully inspected through GitHub’s contents API. (src/agents/exec-auto-reviewer.ts:34, 3a9d69db306c)
  • Real-provider proof: The supplied body snapshot, sourceRevision b2919d4370adfaed7c8ffe574ce271092ca8bc11490df7586376580650ff1670, records the production reviewer using a live local Anthropic Messages endpoint at the 1,024-token budget: HTTP 200 responses yielded allow-once for a diagnostic read and deny for destructive log deletion. The separate long-output and truncated-response scenarios are simulated supplemental evidence, not live-provider reproductions.
  • Regression coverage and review continuity: The added cases assert the budget at the completion boundary, and existing cases reject aborted, length-stopped, and tool-use completions even with valid-looking allow JSON. The body reports both budget cases failing before the fix and 85 focused tests passing afterward. Earlier unused-import feedback is resolved, and fixture consolidation reduces the test file to 1,069 lines. The latest completed review examined this same head and retained no findings. (src/agents/exec-auto-reviewer.test.ts:1048, 02b263703d14)
  • Completion and implementation boundary: The completion owner forwards maxTokens through the existing transport options. Documented reviewer settings expose model and timeout, not an alternative output-budget control. The exec documentation explicitly excludes Codex app-server approvals from this configured reviewer, so this patch does not establish a Codex dependency inspection requirement. Public docs: docs/tools/exec.md. (docs/tools/exec.md:151, 02b263703d14)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-11T02:42:58.761Z sha 1a5638c031557ee88facff34f8a92a31fcebd52c :: blocked before merge. :: none
  • reviewed 2026-09-11T03:07:50.966Z sha f1377feb882dd58617545c7f6132f620cf5feac1 :: needs changes before merge. :: [P3] Remove the unused minimum-budget import | [P3] Keep the budget coverage within the test-file size limit
  • reviewed 2026-09-11T03:16:49.723Z sha b7c6cda0c71b8fced8ee38a06b443882cf577fe8 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-11T03:49:52.394Z sha 56be6191839dfbf4561c03de58f2b2bbf687edbc :: needs maintainer review before merge. :: none
  • reviewed 2026-09-11T03:59:38.797Z sha 56be6191839dfbf4561c03de58f2b2bbf687edbc :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T21:14:03.716Z sha 79bd841 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T22:17:27.407Z sha 8f034e8 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T23:25:31.285Z sha 02b2637 :: needs maintainer review before merge. :: none

@MasterSwords1

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 11, 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 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 Sep 11, 2026
@MasterSwords1
MasterSwords1 force-pushed the fix/144476-exec-auto-reviewer-token-cap branch from 8004878 to 1a5638c Compare September 11, 2026 02:32
@MasterSwords1

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 11, 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:

@MasterSwords1 MasterSwords1 changed the title fix(exec): resolve bounded token budget for exec auto-reviewer (#144476) fix(exec): complex commands trigger human approval fallback due to reviewer token truncation (#144476) Sep 11, 2026
@MasterSwords1

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 11, 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.

@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 11, 2026
@MasterSwords1
MasterSwords1 force-pushed the fix/144476-exec-auto-reviewer-token-cap branch from 1a5638c to f1377fe Compare September 11, 2026 03:01
@MasterSwords1 MasterSwords1 changed the title fix(exec): complex commands trigger human approval fallback due to reviewer token truncation (#144476) fix(exec): complex commands trigger human approval fallback due to reviewer token truncation Sep 11, 2026
@MasterSwords1

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 11, 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.

@MasterSwords1
MasterSwords1 force-pushed the fix/144476-exec-auto-reviewer-token-cap branch from f1377fe to b7c6cda Compare September 11, 2026 03:11
@MasterSwords1

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 11, 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:

@openclaw-barnacle openclaw-barnacle Bot added size: S and removed docs Improvements or additions to documentation size: M labels Sep 11, 2026
@MasterSwords1
MasterSwords1 force-pushed the fix/144476-exec-auto-reviewer-token-cap branch from b7c6cda to 56be619 Compare September 11, 2026 03:44
@MasterSwords1

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 11, 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:

openclaw#144476)

Raise the automatic command reviewer completion budget from 360 to a
bounded 1,024-token default, clamped downward to the selected model's
advertised maximum output token limit (floored to integer to prevent
provider 400 Bad Request errors).

Preserves the incomplete-verdict safety contract: non-stop completions
(such as length-stopped responses) continue to fail closed to human approval
(decision: ask, risk: unknown) so truncated evaluations are never mistakenly
parsed as allow decisions.

Closes openclaw#144476
@steipete
steipete force-pushed the fix/144476-exec-auto-reviewer-token-cap branch from 56be619 to 79bd841 Compare September 12, 2026 20:57
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 12, 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:

steipete added a commit that referenced this pull request Sep 12, 2026
Protect clean TLS-enabled Gateway shutdown by covering registration of certificate renewal with the Gateway lifetime owner through real startup and close.

#146267 added TLS renewal registration using an array; #146275 changed sidecar registration to variadic handles and missed that caller. Passing the renewal handle directly prevents failed production typechecks and shutdown errors (sidecar.stop is not a function). Current main already carries the one-line correction; this landing preserves the integrated regression that detects the caller-contract mismatch.

The test uses isolated synthetic TLS material, closes the real Gateway, and observes the real renewal cleanup. The recorded regression failed before the repair and passed afterward; focused sibling coverage passed 22 tests. Exact-head CI and lead Codex review passed. No configuration, storage, or protocol changes.

Refs #146267, #146275, #144587, #146246.
@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 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. labels Sep 12, 2026
@steipete
steipete merged commit 9296e68 into openclaw:main Sep 13, 2026
217 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

steipete added a commit that referenced this pull request Sep 13, 2026
…146585)

Exclude automatic squash co-author credit backed only by tree-identical refresh commits. Pass commit-tree comparisons from the existing Git-history producer into the credit composer, preserving PR-author credit, explicit human credit, source trailers, and queue refusal when a preview requires correction.

No runtime user-visible change. Native regression coverage and the exact-head CI gate passed; the independent maintainer review and ClawSweeper review found no actionable findings.

Refs #144587 and #142167.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
…46504)

Protect clean TLS-enabled Gateway shutdown by covering registration of certificate renewal with the Gateway lifetime owner through real startup and close.

openclaw#146267 added TLS renewal registration using an array; openclaw#146275 changed sidecar registration to variadic handles and missed that caller. Passing the renewal handle directly prevents failed production typechecks and shutdown errors (sidecar.stop is not a function). Current main already carries the one-line correction; this landing preserves the integrated regression that detects the caller-contract mismatch.

The test uses isolated synthetic TLS material, closes the real Gateway, and observes the real renewal cleanup. The recorded regression failed before the repair and passed afterward; focused sibling coverage passed 22 tests. Exact-head CI and lead Codex review passed. No configuration, storage, or protocol changes.

Refs openclaw#146267, openclaw#146275, openclaw#144587, openclaw#146246.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
…viewer token truncation (openclaw#144587)

Under tools.exec.mode: auto, give the existing command reviewer a bounded
1,024-token completion budget, clamped to smaller positive model limits.
This reduces human approval fallback when routine complex command reviews
run out of completion budget. Non-stop completions still fail closed.

Proof: both budget regressions fail against pre-fix production; all 85
reviewer/resource tests pass after the repair. Exact-head CI run 34725087843
is green. Mechanical rebase and empty CI refreshes preserve the reviewed fix.

Closes openclaw#144476

Co-authored-by: MasterSwords1 <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
…penclaw#146585)

Exclude automatic squash co-author credit backed only by tree-identical refresh commits. Pass commit-tree comparisons from the existing Git-history producer into the credit composer, preserving PR-author credit, explicit human credit, source trailers, and queue refusal when a preview requires correction.

No runtime user-visible change. Native regression coverage and the exact-head CI gate passed; the independent maintainer review and ClawSweeper review found no actionable findings.

Refs openclaw#144587 and openclaw#142167.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling 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.

exec auto-reviewer hard-caps output at 360 tokens → fails closed on long/complex commands

2 participants