Repository navigation
fix(openclaw): preserve progressive tools for N1x Qwen preview - #13173
Conversation
Signed-off-by: San Dang <[email protected]>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage/plugin
View coverage of the 8 most impacted files.
TypeScript / code-coverage/cli
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Manual N1x TUI validation — passedTested checkout: The tester reported the following result on the ARM64 N1x host with model The TUI returned a visible answer to the basic greeting. The earlier reproduction failed with “Agent couldn't generate a response” at approximately 32k/33k context use (99%). This run used approximately 11k/33k (34%). A read-only check confirmed that the host checkout is clean at the commit above and its three tool-disclosure source files match the published PR commit. This is user-reported manual evidence for the basic TUI turn. Automated E2E, longer-session compaction, and an upstream estimator repair are separate validation claims. |
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
Focused E2E validation — passedE2E PR #13173 — run 38601717329, attempt 1 completed successfully. All eight selected test jobs and the Relevant E2E aggregate passed. Tested commit:
The SDK package, matrix planning, and image-publication prerequisite jobs also passed. This evidence covers the selected Docker scenarios; full release qualification was not selected. The N1x local-model greeting has separate manual TUI evidence. |
ericksoa
left a comment
There was a problem hiding this comment.
Reviewed commit b045e8569401f1da6e142d8c62254ceb5272bce2 and the three-file PR diff. No correctness or security blocker found.
Scope decision: Accept. Aaron Erickson explicitly approved progressive disclosure for fresh, opted-in N1x Qwen preview sandboxes, preserving explicit and saved choices. This approves the configuration mitigation in this PR despite the earlier #13088 decision. NemoClaw retains ownership in the existing sandbox-create planner. Existing sandboxes retain their recorded mode; other local routes retain their defaults. This does not establish a repair of OpenClaw's upstream estimator or validate longer-session compaction.
Advisor disposition — run 38599358433:
- Product scope: resolved by the explicit maintainer decision above.
- Documentation: defer the guide, command/environment reference, and changelog updates to the post-merge documentation catch-up permitted by AGENTS.md. Describe the fresh N1x exception and explicit-selection precedence.
- Verification: nonblocking coverage suggestion. The changed selection logic has accepted/rejected route, mismatched-model, explicit-choice, and recorded-choice tests. The unchanged consumer passes the selected mode through
prepareSandboxToolDisclosureinto both the startup profile and registration. Existing disclosure-flow and OpenClaw configuration tests cover that mechanism. A combined N1x creation assertion would add coverage, but the finding identifies no defect in this diff. Fresh Express hardware validation remains unproven. - The other six specialists reported no P0/P1 findings. The Advisor run remains failed; this review records the disposition rather than claiming a green Advisor result.
Evidence: Required PR checks pass; all three commits are GitHub Verified; CodeRabbit reviewed this commit with no actionable findings; there are no unresolved review threads. CI run 38585454758 and the eight selected Docker scenarios in run 38601717329 passed. The reported N1x TUI greeting succeeded at this commit. The selected scenarios are not the complete E2E fanout. No new local test run is claimed.
Security review: All nine categories pass for this diff.
- Secrets and credentials: no credential or logging change.
- Input validation: exact provider/model matching and existing disclosure validation remain in place.
- Authentication and authorization: the session-owned reservation and accepted-preview checks remain required.
- Dependencies: no dependency or image change in the PR diff.
- Error handling and logging: no changed failure or logging path.
- Cryptography and data protection: no changed cryptographic or data-protection mechanism.
- Configuration: existing tool-disclosure modes are used; sandbox and network controls are unchanged.
- Security testing: rejected routes and preserved choices are covered; no security assertion is removed.
- System security: fresh-create guards and downstream registration authority remain in place.
Reviewed paths: sandbox-resume.ts, sandbox.ts, and sandbox-tool-disclosure.test.ts under src/lib/onboard/machine/handlers/, plus the disclosure consumer, reservation checks, and related tests.
Trusted repository approval checker: allPass: true, with all 65 current checks green, against observed main e7840acd43451ae79191854aacafdf9e206983ed. No contributor/approver overlap was detected.
Outcome
Fresh OpenClaw sandboxes created through the accepted Deferred N1x Express Qwen preview default to progressive tool disclosure. The smaller tool list leaves room for a reply in the 32,768-token local model. Explicit disclosure requests and recorded sandbox choices keep their existing precedence.
The branch also includes main's merged curl repair (#13158), so the ARM64 local Dockerfile fallback can install matching curl/libcurl packages. Its nine curl pins and Pi qualification receipts match main.
Reason
#12968 made direct disclosure the default for fresh local Ollama and vLLM routes in v0.0.133 to address the Gemma/Ollama tool-search failure in #12106. On the N1x Qwen recipe, exposing all tools nearly fills the context window and exposes OpenClaw's input-token estimate problem. A fresh greeting can receive a one-token output allowance and produce no usable reply.
This mitigation uses existing configuration. OpenClaw source, the model, context window, and GPU memory settings remain unchanged.
The development branch's local build was also blocked because pinned curl
deb13u5requires the same libcurl revision, while APT selectsdeb13u7. The branch now carries the mergeddeb13u7repair and its qualification evidence.Related issues
Fix #13088
Refs #12106, #12968, #13158.
Changes
Verification
b045e8569401f1da6e142d8c62254ceb5272bce2: the tester sentHelloooand receivedHey. What's up?, with approximately 11k/33k context use (34%). A read-only check confirmed the host checkout and three tool-disclosure source files match the PR.--project integration --project cli: 243 tests across seven suites passed after the base merge. Selection:node-tar-dockerfile-contract,bundled-npm-brace-expansion-dockerfile-contract,bundled-npm-ip-address-dockerfile-contract,sandbox-base-security-packages,native-security-packages,sandbox-tool-disclosure, andsandbox-resume.docker buildx build --platform linux/arm64 --target npm12 --file Dockerfile --load .on N1x: passed with the original pinned Node base. curl and libcurl both installed at8.14.1-2+deb13u7; npm's tar, brace-expansion, and ip-address remediation checks passed. The exercised Dockerfile SHA-256 isd79d7c13530ac8b34e999811b9fd8a760690490eb81b2619add3177b896eed57, matching this branch.git diff --check: passed.abf42f10a54617128c1464d33592164356660e43: direct disclosure sent 49 tools/31,387 input tokens and failed with one output token. Progressive sent 11 tools/10,652 first-call input tokens and answered a greeting. Execution returned391for17*23; tool search, description, and invocation completed a session-status request. These were embedded-agent configuration tests, not fresh Express/TUI validation.Review notes
Self-review covers NVIDIA/NemoClaw commit
b045e8569401f1da6e142d8c62254ceb5272bce2and all three sensitive PR paths undersrc/lib/onboard/machine/handlers/. The prior commit's nine Advisor specialists completed in run 38575577290. Seven reported clear results. The documentation finding is deferred to post-merge docs catch-up under AGENTS.md; the guide and command-reference changes must describe the fresh N1x exception and explicit-selection precedence.Advisor also raised a scope concern about the earlier #13088 closure. That issue has since reopened for investigation. This PR preserves the explicitly requested configuration mitigation and contains no upstream monkeypatch. Independent maintainer review of the scope remains required before merge; no approval or waiver is claimed.
The reported manual TUI greeting passed. A fresh Express onboarding run tied to the final commit and longer-session/compaction behavior still need hardware validation. The curl verification covers the
npm12stage; a complete local sandbox build remains untested. Existing sandboxes keep their recorded disclosure mode.Signed-off-by: San Dang [email protected]
Summary by CodeRabbit