Skip to content

docs(mxc): isolate test setup and cleanup - #118945

Merged
steipete merged 5 commits into
openclaw:mainfrom
paulcam206:paulcam/mxc-docs-accuracy
Aug 27, 2026
Merged

steipete merged 5 commits into
openclaw:mainfrom
paulcam206:paulcam/mxc-docs-accuracy

Conversation

@paulcam206

@paulcam206 paulcam206 commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where operators following the MXC test guide could modify an existing test agent or shared plugin settings instead of isolating their test. The proposed fixed-name agents add could fail and PowerShell would continue into the patch; cleanup could then delete that existing agent. Both the old guide and the initial PR also overwrite installation-wide policy and remove the whole MXC plugin entry during cleanup.

Current-main qualification: on 9bd50c803cce88f2ab387ddaf6cc29b4ef004005, the old agents.list patch is accepted but leaves an existing canonical agents.entries roster unchanged, including the requested sandbox settings. The original claim of current-main roster destruction is not supported by this reproduction. The guide is still broken, and the failed-create/shared-policy hazards remain real.

Why This Change Was Made

Keep Paul Campbell's dedicated-agent approach, but give the example a generated agent ID and reserve a fresh workspace before creating it. Check each native exit immediately, patch only that agent's sandbox settings, and permit cleanup only after successful creation in the same PowerShell session. Use the canonical agent-delete command; do not remove shared plugin configuration or policy files.

The example requires an existing configured installation with MXC already installed and enabled. It deliberately inherits the installation's existing policy. This avoids a second test-specific plugin configuration or profile that would lose the operator's existing setup. Cleanup documents partial filesystem failures instead of promising that a successful configuration deletion removed every directory.

The effective unset timeout remains the existing 300-second baseline. The SDK transport note is unchanged from main. The test-command wording no longer claims two different runners are equivalent.

User Impact

Operators can set up and remove a temporary MXC test agent without altering other agents, reusing an existing workspace, or changing policy for other MXC users. No runtime code, schema, config option, timeout, or sandbox permission changes.

Release-note context: MXC test setup now uses a uniquely owned agent and workspace, stops on failed commands, and preserves existing agents and shared plugin policy. Thanks @paulcam206.

Evidence

Reviewed README SHA-256: 82dceb0b965f0790c5ac85a7c77deda8885f7db031720d84a24549f2de63e970 (head 7a5cc00480262a2c5ece2951d685d298556c0712).

Real before/after observations:

BEFORE: Agent "mxc-test" already exists.
UNGUARDED_NATIVE_FAILURE=continued
PREEXISTING_AGENT=modified_despite_failed_add

AFTER: Dry run successful: 4 update(s) validated.
Applied 4 config update(s).
Moved to Trash: <fixture>/tmp/<new-test-agent>
Deleted agent: <new-test-agent>
CASE=after SETUP_EXPECTATION=pass CLEANUP_EXPECTATION=pass SESSION_INTERPOLATION=pass
CASE=duplicate SETUP_EXPECTATION=pass CLEANUP_EXPECTATION=pass SESSION_INTERPOLATION=pass
CASE=workspace SETUP_EXPECTATION=pass CLEANUP_EXPECTATION=pass SESSION_INTERPOLATION=pass
CASE=dry-failure SETUP_EXPECTATION=pass CLEANUP_EXPECTATION=pass SESSION_INTERPOLATION=pass
CASE=apply-failure SETUP_EXPECTATION=pass CLEANUP_EXPECTATION=pass SESSION_INTERPOLATION=pass
EXISTING_AGENTS=preserved BINDINGS=preserved TEMP_AGENT=removed_or_not_created
EXISTING_WORKSPACES=preserved SHARED_MXC_CONFIG=preserved

All five revised-flow cases completed successfully, including invalid dry-run and failed application after a successful dry-run. Both failure paths left the new agent unconfigured and permitted scoped cleanup while preserving existing state. Exact-head CI run 33078686540 completed successfully, including check-docs and openclaw/ci-gate.

Independent source review and isolated Codex autoreview found no actionable findings. git diff --check and standalone oxfmt --check extensions/mxc/README.md passed. The dependency-less PR worktree's formatting hook refused to run; the commit used the separately verified trusted formatter result. CI and native landing gates remain required. No dependency install or contributor executable was used for the behavior proof.

Proof scope: real PowerShell 7.6.3 and the built trusted-main CLI on macOS, with isolated configuration/state, an unused loopback port, multiple existing agents, a routing binding, workspace sentinels, and nondefault MXC configuration. The final README blocks are extracted and executed directly for the success case. Failure cases change only the collision input or inject an invalid sandbox mode before validation/application; native CLI commands are not mocked.

This proves shell control flow and configuration/cleanup ownership, not Windows ProcessContainer execution. MXC is disabled in the proof fixture because the host is macOS; no inference, provider calls, real Gateway, or operator state is used. The no-Gateway fixture prints a cron-cleanup warning (it contains no scheduled jobs); this is not presented as verified cron cleanup. Windows backend execution is outside this documentation-only repair. One earlier multi-command harness run timed out under heavy host load and is excluded from passing evidence; completed multi-command runs use a proportionate harness allowance without changing any product timeout.

Source map: CLI registration and agent add/delete commands; src/agents/agent-create.ts duplicate ownership; src/agents/agent-scope-config.ts roster precedence; src/commands/agents.config.ts scoped pruning; workspace creation and deletion safety; config patch operations and writer roster guards; MXC plugin registration, backend factory, timeout resolution, and policy ownership. The generic legacy roster-patch acceptance behavior is a named follow-up, not a runtime change in this PR.

Production LOC: +0/-0. Tests: +0/-0. Documentation: +37/-103. No synthetic README-string test was added: the executable PowerShell scenarios exercise the operator-visible contract directly.

Both latest ClawSweeper rank-up moves are addressed by fail-fast handling and the before/after preservation proof. The added SDK-argument wording was dropped, so the dependency-specific addition is no longer part of the patch.

@openclaw-barnacle openclaw-barnacle Bot added plugin: mxc size: S triage: low-signal-docs Candidate: docs-only change looks low signal; maintainer review needed. labels Aug 3, 2026
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 25, 2026, 10:11 PM ET / August 26, 2026, 02:11 UTC.

ClawSweeper review

What this changes

The PR rewrites MXC test setup and cleanup instructions to use a dedicated agent and scoped plugin configuration instead of replacing all configured agents.

Merge readiness

⛔ Blocked until real behavior proof is added - 5 items remain

This PR remains necessary: current main still documents roster-replacing MXC setup and cleanup. Its dedicated-agent approach is sound, but the PowerShell example must stop after a failed agent creation and the contributor must provide inspectable exact-head behavior proof before merge.

Priority: P2
Reviewed head: 1ae4fdbf135a9604b777ef23156c6de354527e4d

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The central documentation repair is useful, but an unresolved P2 safety defect and missing real behavior proof prevent merge readiness.
Proof confidence 🧂 unranked krab (1/6) Needs real behavior proof before merge: Missing: the external contributor has not posted inspectable after-fix output or an artifact for the exact head; add redacted terminal evidence for failed and successful setup/cleanup, excluding private paths, keys, IPs, and endpoints. 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.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: Missing: the external contributor has not posted inspectable after-fix output or an artifact for the exact head; add redacted terminal evidence for failed and successful setup/cleanup, excluding private paths, keys, IPs, and endpoints. 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.
Evidence reviewed 6 items Current main still has the destructive documentation: Current main retains setup and cleanup examples that replace the agent list; the PR supplies the still-missing dedicated-agent workflow.
Failed creation can continue into mutation: The agent-add command exits nonzero for an existing agent, but the proposed PowerShell example immediately continues to its configuration patch; it can therefore alter and later delete an existing mxc-test agent.
Scoped cleanup is otherwise correct: The delete command invokes targeted configuration pruning, with regression coverage for removing the named agent while retaining other configuration.
Findings 1 actionable finding [P2] Stop after a failed test-agent creation
Security None None.

Live Verification

Command: pnpm openclaw agents --help

Result: PASS (completed)

$ node scripts/run-node.mjs agents --help
[openclaw] Building TypeScript (dist is stale: missing_build_stamp - build stamp missing).
[openclaw] Building bundled plugin assets.
[browser] build: node scripts/build-copilot-runtime.mjs
[canvas] build: node scripts/bundle-a2ui.mjs
[log] ‹DIR›/a2ui.bundle.js  chunk │ size: 399.88 kB
[log]
[success] rolldown v1.2.0 Finished in 40.73 ms
[diffs] build: node ../../scripts/build-diffs-viewer-runtime.mjs curated
[diffs-language-pack] build: node ../../scripts/build-diffs-viewer-runtime.mjs full
[discord] build: node ../../scripts/build-discord-activity-sdk.mjs
[tsdown-build] invocation 1/2 finished in 0.7s
[tsdown-build] invocation 2/2 finished in 7.5s
runtime-postbuild: 9 phases completed in 1003ms (slowest: stable root runtime imports 280ms)
│
◇

OpenClaw 2026.7.2 (1ae4fdb) — All your chats, one OpenClaw.

Usage: openclaw agents [options] [command]

Manage isolated agents (workspaces + auth + routing)

Options:
  -h, --help    Display help for command

Commands:
  add           Add a new isolated agent
  bind          Add routing bindings for an agent
  bindings      List routing bindings
  delete        Delete an agent and prune workspace/state
  list          List configured agents
  set-identity  Update an agent identity (name/theme/emoji/avatar)
  unbind        Remove routing bindings for an agent

Docs: docs.openclaw.ai/cli/agents
$ node scripts/run-node.mjs agents --help
│
◇

OpenClaw 2026.7.2 (1ae4fdb) — All your chats, one OpenClaw.

Usage: openclaw agents [options] [command]

Manage isolated agents (workspaces + auth + routing)

Options:
  -h, --help    Display help for command

Commands:
  add           Add a new isolated agent
  bind          Add routing bindings for an agent
  bindings      List routing bindings
  delete        Delete an agent and prune workspace/state
  list          List configured agents
  set-identity  Update an agent identity (name/theme/emoji/avatar)
  unbind        Remove routing bindings for an agent

Docs: docs.openclaw.ai/cli/agents

Assertions:

  • PASS expect_output: Manage isolated agents

How this fits together

The MXC plugin README guides operators through creating a test agent, applying sandbox and plugin configuration, and removing that setup. These commands persist agent and plugin configuration, so the flow must retain unrelated agents and settings.

flowchart LR
  A[Operator follows MXC README] --> B[Create MXC test agent]
  B --> C[Apply scoped configuration]
  C --> D[Run MXC test]
  D --> E[Delete test agent]
  E --> F[Preserve other agents and settings]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: Missing: the external contributor has not posted inspectable after-fix output or an artifact for the exact head; add redacted terminal evidence for failed and successful setup/cleanup, excluding private paths, keys, IPs, and endpoints. 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.
  • Stop after a failed test-agent creation (P2) - agents add exits nonzero when mxc-test already exists, but PowerShell continues into the patch and cleanup below. That can reconfigure and then delete the reader's existing mxc-test agent; check $LASTEXITCODE (or set an equivalent fail-fast policy) before proceeding. This remains unresolved from the previous review and the relevant README lines are unchanged.
  • Resolve merge risk (P1) - The SDK argv wording is dependency-backed, but direct inspection of the pinned SDK source was unavailable in this review environment.
  • Resolve merge risk (P1) - Without a native-command failure guard, an existing mxc-test agent can be modified and deleted by a reader following the PowerShell example.
  • Complete next step (P2) - The fail-fast documentation correction is a narrow mechanical repair, while the contributor still owns the required real behavior proof.

Findings

  • [P2] Stop after a failed test-agent creation — extensions/mxc/README.md:128-130
Agent review details

Security

None.

PR surface

Docs -47. Total -47 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 21 68 -47
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 21 68 -47

Review metrics

Metric Value Why it matters
Production versus test code production +0/-0; tests +0/-0 The patch is documentation-only, so merge confidence depends on command-contract accuracy and real workflow proof rather than code coverage.

Merge-risk options

Maintainer options:

  1. Fail fast and prove the workflow (recommended)
    Stop the PowerShell sequence after a failed agent-add command, then post redacted exact-head output showing failed creation leaves existing agents untouched and successful cleanup preserves unrelated state.

Technical review

Best possible solution:

Keep the dedicated-agent workflow, add explicit fail-fast handling after agent creation, and prove both failed creation safety and successful non-destructive cleanup on the PR head.

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

Yes, source-reproducible: agent creation exits nonzero when mxc-test already exists, while the PowerShell example continues into a scoped patch and cleanup.

Is this the best way to solve the issue?

No: the dedicated-agent design is the best direction, but it needs explicit native-command failure handling before it is safe documentation.

Full review comments:

  • [P2] Stop after a failed test-agent creation — extensions/mxc/README.md:128-130
    agents add exits nonzero when mxc-test already exists, but PowerShell continues into the patch and cleanup below. That can reconfigure and then delete the reader's existing mxc-test agent; check $LASTEXITCODE (or set an equivalent fail-fast policy) before proceeding. This remains unresolved from the previous review and the relevant README lines are unchanged.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🧂 unranked krab, so this older rating label is no longer current.

Label justifications:

  • P2: The documentation bug can alter an operator's existing test-agent configuration, but affects a limited MXC testing workflow.
  • merge-risk: 🚨 compatibility: The documented setup and cleanup commands modify persisted agent configuration and can delete an existing named agent when creation fails.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Missing: the external contributor has not posted inspectable after-fix output or an artifact for the exact head; add redacted terminal evidence for failed and successful setup/cleanup, excluding private paths, keys, IPs, and endpoints. 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.

Evidence

Acceptance criteria:

  • [P1] git diff --check.
  • [P1] Run the documented setup and cleanup sequence against a config containing main plus another agent.
  • [P1] Run the creation-failure case with an existing mxc-test agent and verify no patch or deletion occurs.

What I checked:

  • Current main still has the destructive documentation: Current main retains setup and cleanup examples that replace the agent list; the PR supplies the still-missing dedicated-agent workflow. (extensions/mxc/README.md:104, c841a9958abc)
  • Failed creation can continue into mutation: The agent-add command exits nonzero for an existing agent, but the proposed PowerShell example immediately continues to its configuration patch; it can therefore alter and later delete an existing mxc-test agent. (src/commands/agents.commands.add.ts:143, c841a9958abc)
  • Scoped cleanup is otherwise correct: The delete command invokes targeted configuration pruning, with regression coverage for removing the named agent while retaining other configuration. (src/commands/agents.config.ts:198, c841a9958abc)
  • Prior finding remains at the exact head: The README is unchanged since the previous ClawSweeper-reviewed head, so the prior failure-handling finding remains unresolved rather than newly discovered. (extensions/mxc/README.md:128, 1ae4fdbf135a)
  • Timeout wording matches runtime behavior: An unset timeout is not marked configured and the container resolves it through the 300-second sandbox baseline; the backend test pins 300000 ms. (extensions/mxc/src/mxc-container-config.ts:362, c841a9958abc)
  • Dependency-contract signal and limitation: The README makes a concrete @microsoft/mxc-sdk 0.7.0 argv claim and the plugin pins that dependency, but its source was unavailable locally and the official-source request failed in this review environment. (extensions/mxc/package.json:13, c841a9958abc)

Likely related people:

  • vincentkoc: Reviewed the timeout correction and reported a Testbox validation of the non-destructive workflow. (role: reviewer and recent area contributor; confidence: high; files: extensions/mxc/README.md, extensions/mxc/src/config.ts)
  • steipete: Available current-main blame attributes the surrounding MXC README history to commit 85611e0; deeper provenance is limited by shallow history. (role: recent available line owner; confidence: low; commits: 85611e0; files: extensions/mxc/README.md)

Rank-up moves

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

  • Add fail-fast handling after openclaw agents add mxc-test.
  • Post redacted exact-head terminal output showing failure leaves existing state untouched and success preserves main plus another agent through cleanup.

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 (8 earlier review cycles)
  • reviewed 2026-08-03T21:12:46.875Z sha 6998ea6d120373232eabf54aab04ca18ab69d71c :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-03T21:19:24.650Z sha 6998ea6d120373232eabf54aab04ca18ab69d71c :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-05T19:31:58.452Z sha 16728a7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-07T15:37:19.252Z sha 16728a7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-10T07:01:39.757Z sha 16728a7 :: needs real behavior proof before merge. :: [P2] Document the effective timeout default
  • reviewed 2026-08-19T15:01:48.351Z sha 16728a7 :: needs real behavior proof before merge. :: [P2] Restore the effective timeout default
  • reviewed 2026-08-19T18:47:35.209Z sha 1ae4fdb :: needs real behavior proof before merge. :: [P2] Stop when creating the test agent fails
  • reviewed 2026-08-26T01:22:59.989Z sha 1ae4fdb :: needs real behavior proof before merge. :: [P2] Stop when creating the test agent fails

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

Copilot-Session: d7253887-71c9-4083-a591-91979c981e39
Co-authored-by: Copilot <[email protected]>

Copilot-Session: d7253887-71c9-4083-a591-91979c981e39
The Cleanup section replaced the entire agents.list with a single default main entry, which would silently drop any other agents a user had configured. Mirror the non-destructive approach now used in Test setup: 'openclaw agents delete mxc-test --force' plus a plugin-only config patch.

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

Copilot-Session: d7253887-71c9-4083-a591-91979c981e39
@paulcam206
paulcam206 force-pushed the paulcam/mxc-docs-accuracy branch from 6998ea6 to 16728a7 Compare August 5, 2026 18:45
@vincentkoc vincentkoc self-assigned this Aug 10, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 10, 2026 06:23
@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc
vincentkoc marked this pull request as draft August 10, 2026 06:36
@vincentkoc

Copy link
Copy Markdown
Member

I hit one documentation correctness blocker in final validation.

timeoutSeconds should not be documented as having an effective default of 120. resolveConfig({}) carries 120 internally but leaves timeoutSecondsConfigured unset; the runtime then selects the sandbox baseline instead. The built-in baseline is 300, and the focused backend test asserts 300_000 ms:

  • const config = parsed.data as MxcPluginConfig;
    const resolved: MxcConfig = {
    mxcBinaryPath: config.mxcBinaryPath,
    containment: config.containment ?? DEFAULT_CONTAINMENT,
    network: config.network ?? DEFAULT_NETWORK,
    timeoutSeconds: config.timeoutSeconds ?? DEFAULT_TIMEOUT_SECONDS,
    debug: config.debug ?? DEFAULT_DEBUG,
    mxcPolicyPaths: resolveMxcPolicyPaths(config.mxcPolicyPaths),
    };
    if (config.timeoutSeconds !== undefined) {
    resolved.timeoutSecondsConfigured = true;
  • function resolveProcessTimeoutSeconds(
    config: MxcConfig,
    baseline: LoadedSandboxBaselinePolicy,
    ): number {
    if (config.timeoutSecondsConfigured === true) {
    return Math.min(config.timeoutSeconds, baseline.process.timeoutSeconds);
    }
    return baseline.process.timeoutSeconds;
  • export const DEFAULT_SANDBOX_BASELINE: SandboxBaselinePolicy = {
    filesystem: {
    restrictToProjectDir: true,
    additionalReadonlyPaths: [],
    additionalReadwritePaths: [],
    },
    process: {
    timeoutSeconds: BASELINE_TIMEOUT_SECONDS,
    timeoutSecondsConfigured: false,
    },
  • test("timeout falls back to the built-in baseline when no policy paths are configured", async () => {
    const handle = createMxcSandboxBackendHandle({
    ...baseParams,
    config: resolveConfig({}),
    });
    const spec = await handle.buildExecSpec({ command: "echo hello", env: {}, usePty: false });
    const processConfig = objectField(decodeContainerConfig(spec.argv), "process");
    expect(processConfig.timeout).toBe(300_000);

Please restore the prior wording: unset (baseline default 300 applies).

The non-destructive workflow itself is validated. Blacksmith Testbox tbx_01kzn5583v1vt7p7e4a1np715y ran the documented add, keyed patch, delete, and plugin-null cleanup sequence against a config containing main plus a second agent. Both existing agents and unrelated gateway state survived; only the MXC test agent and MXC plugin entry were removed. The README formatting check also passed. Run: https://github.com/openclaw/openclaw/actions/runs/31361479098

I restored draft status because this row is operator-facing and currently inaccurate. Once it is corrected, the exact-head review and CI lane can be refreshed.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 Aug 10, 2026
An unset timeoutSeconds resolves to the 300s sandbox baseline, not the
internal 120 value, since timeoutSecondsConfigured stays unset.

Co-authored-by: Copilot <[email protected]>
@paulcam206

Copy link
Copy Markdown
Contributor Author

Thanks for catching this. Restored the timeoutSeconds row to unset (baseline default 300 applies) in 1ae4fdb.

The effective unset behavior is source-backed: resolveConfig keeps 120 internally but leaves timeoutSecondsConfigured unset, so resolveProcessTimeoutSeconds falls through to the sandbox baseline of 300 — which extensions/mxc/test/mxc-backend.test.ts already pins at 300_000 ms. Nice side effect: restoring the longer string also restores the original column padding, so the whole config-table hunk drops out of the diff (now +21/-68, down from +29/-76).

I also verified the revised SDK argv wording against upstream TypeScript at tag v0.7.0, the version pinned in extensions/mxc/package.json. resolveExecutableAndArgs serializes the entire config:

https://github.com/microsoft/mxc/blob/34d7fe2b4b3226bd4d11dc4a32419b7ec198a88b/sdk/src/helper.ts#L270

and resolveBinaryAndCommonArgs base64-encodes it onto argv:

https://github.com/microsoft/mxc/blob/34d7fe2b4b3226bd4d11dc4a32419b7ec198a88b/sdk/src/helper.ts#L190-L192

So the argv-exposure note is accurate as written. I also re-audited the rest of the README against current main (config defaults, CLI commands/flags, policy section, test lanes, links) and found no other stale claims. Marking ready for review.

@paulcam206
paulcam206 marked this pull request as ready for review August 19, 2026 18:41
@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@paulcam206

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 19, 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 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 19, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 26, 2026
Use a uniquely owned test agent and freshly reserved workspace, stop after failed native commands, and leave installation-wide MXC configuration and policy untouched. Preserve the effective unset timeout and existing SDK transport wording.

Co-authored-by: Paul Campbell <[email protected]>
@steipete steipete changed the title docs(mxc): test setup and cleanup steps delete existing agents docs(mxc): isolate test setup and cleanup Aug 27, 2026
@steipete

Copy link
Copy Markdown
Contributor

Maintainer follow-through on Paul's existing PR: pushed 7a5cc0048026, preserving the contributor commits and credit. The README now reserves a unique workspace, creates a unique agent, checks each native exit, and leaves shared MXC configuration/policy untouched. Cleanup requires successful creation in the same session.

The real PowerShell/current-main CLI probe reproduced the previous failed-add continuation modifying an existing agent. All five revised-flow scenarios pass: success/cleanup, duplicate-agent rejection, existing-workspace rejection, failed dry-run, and failed apply after a successful dry-run. Existing agents, binding, workspace sentinels, and nondefault plugin configuration were preserved. README SHA-256: 82dceb0b965f0790c5ac85a7c77deda8885f7db031720d84a24549f2de63e970.

Exact-head CI is green, including check-docs and openclaw/ci-gate; independent source review, isolated Codex autoreview, formatter, and whitespace checks passed. Both prior rank-up moves are addressed. The effective unset timeout and SDK transport note are unchanged from main. Full proof and limitations are in the updated PR body: these are real CLI/config/PowerShell checks on macOS, not Windows ProcessContainer or cron-cleanup proof.

I also corrected the original premise: on current main's canonical roster, the old legacy-list patch was accepted without applying the requested sandbox settings, rather than deleting the other agents. General legacy roster-patch acceptance semantics remain a named follow-up outside this documentation fix.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 27, 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
steipete merged commit 4b6ee77 into openclaw:main Aug 27, 2026
74 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 28, 2026
* docs(mxc): correct timeout default

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

Copilot-Session: d7253887-71c9-4083-a591-91979c981e39

* docs(mxc): preserve existing agents in setup

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

Copilot-Session: d7253887-71c9-4083-a591-91979c981e39

* docs(mxc): make cleanup non-destructive

The Cleanup section replaced the entire agents.list with a single default main entry, which would silently drop any other agents a user had configured. Mirror the non-destructive approach now used in Test setup: 'openclaw agents delete mxc-test --force' plus a plugin-only config patch.

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

Copilot-Session: d7253887-71c9-4083-a591-91979c981e39

* docs(mxc): restore effective timeoutSeconds default

An unset timeoutSeconds resolves to the 300s sandbox baseline, not the
internal 120 value, since timeoutSecondsConfigured stays unset.

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

* docs(mxc): keep test setup and cleanup isolated

Use a uniquely owned test agent and freshly reserved workspace, stop after failed native commands, and leave installation-wide MXC configuration and policy untouched. Preserve the effective unset timeout and existing SDK transport wording.

Co-authored-by: Paul Campbell <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Copilot-Session: d7253887-71c9-4083-a591-91979c981e39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: mxc rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: low-signal-docs Candidate: docs-only change looks low signal; maintainer review needed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants