Skip to content

fix: explain apply_patch workspace rejections - #136126

Merged
shakkernerd merged 5 commits into
openclaw:mainfrom
Marvinthebored:applypatch-workspace-hint
Sep 20, 2026
Merged

shakkernerd merged 5 commits into
openclaw:mainfrom
Marvinthebored:applypatch-workspace-hint

Conversation

@Marvinthebored

@Marvinthebored Marvinthebored commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

An apply_patch workspace rejection tells the model which path failed, but the operator log does not explain why that workspace boundary is active. The answer depends on the run: configuration, a session permission policy, worker placement, or a mandatory workspace root. Changing tools.exec.mode does not change the patch boundary, and changing a configuration switch cannot lift a mandatory root.

The standard tool adapter and Codex dynamic tools use different failure handlers. Both need the same attribution, including when the host rejects a patch during initial path admission or late filesystem revalidation.

User Impact

Operator logs identify the restriction that actually rejected the patch in both OpenClaw and Codex harnesses. Configuration advice names the two independent workspace settings; session and worker advice describe their own policy; required-root advice makes clear that full session permission does not lift the root.

The model receives its existing rejection, and the allowed writes, configuration defaults, file contents and permissions are unchanged. Sandbox bridges retain their own boundary explanations. This diagnostic change does not resolve the writable-bind-mount behavior in #93140.

Why This Change Was Made

The runtime that selects containment also supplies its source. Host rejection owners attach diagnostic metadata to the same error, and the two harness failure loggers consume the advice without placing it in model output, result callbacks or transcript content. A stateless reader in the existing agent-harness runtime SDK lets Codex use the same supported metadata contract. Plugin release tooling synchronizes Codex's required SDK version with its host release and checks that alignment before publication.

Configured patch availability, containment, and its diagnostic source are prepared together, while worker placement retains its own policy. The integration preserves current workspace-mapping admission and the final host checks after awaited file work. It also distinguishes the host validator's symlink-escape failures from in-root hardlink restrictions and unrelated filesystem failures. Errors originating in a sandbox bridge keep their own explanation.

The worker permission cases move into a Vitest-only helper and retain their existing temporary-workspace lifecycle. Production descriptors, stored configuration, and database schemas are unchanged.

Evidence

Current head caa441e3ec460f224eb71fcffddbbdfd04fb721a is based on main d5eed044d23f135ed5368198f88925833d7b2bc8. Conflict resolution retains main's workspace Memory documentation and remote-attachment capability, including its optional image-workspace argument. The contribution remains 24 paths, with the same diagnostic runtime and test bytes. Against the preceding f18dee3a integration, 22 result files and 23 paths' added/removed lines are identical; the SDK count adjustment remains exactly one export and one callable on main's new totals, 4,521 and 2,665. Integration with inspected main snapshot 066a93fbdac is conflict-free, without a contribution overlap. Hosted validation of this public head passed: 151 successful jobs and 16 skipped.

Fresh remote checks on f18dee3a passed formatting, targeted script lint, the SDK surface gate and all 10 existing surface-report cases. The unchanged cleanup fixture also passed through the repaired normal isolated route. The exact caa441e3 correction passes script formatting, targeted lint, the surface gate at 4,521 exports and 2,665 callables, and all 10 surface-report cases. Its source tree remains unchanged after checks, using the same locked dependencies as f18dee3a. Earlier preflight on f924c017 passed formatting, targeted Codex/script/SDK lint, SDK exports and surface limits, all 10 surface-report tests, a syntax compile check, 13 host containment cases on main's fs-safe 0.16.0, and all six Codex diagnostic cases. These executions retain their actual source identities; source comparisons qualify reuse of the unchanged diagnostic paths.

The focused verification exercises real tool construction and execution through the standard adapter, Codex dynamic-tool bridge, and worker runtime. Cases cover configuration defaults and independent filesystem configuration, session overrides, required roots in full mode, unconstrained success, ordinary in-root patches, sandbox bridge rejection, and a directory rebound after patch admission. Rejections must preserve outside-file bytes and the original model-visible error while producing one operator diagnostic.

At 5aec2729e417b70c7bf419e34f2a14f03e96f2d7, isolated remote verification passes 95 focused policy and diagnostic cases, plus 707 broader affected cases across patching, path boundaries, standard tool adapters, Codex dynamic tools and the host attempt. The broader batch includes all 81 worker runtime cases. One existing Windows-only path case is skipped on the Linux runner. All 10 existing SDK surface-report cases also pass, including exact export counts and rejection of further growth.

The real pinned Codex 0.154.0 app-server also passes both configuration-default and guarded-session scenarios through the full harness attempt and production host tool capability. A controlled loopback Responses endpoint supplies deterministic tool calls, and the normal finite tool allowlist selects the OpenClaw apply_patch function. Host tool construction uses the OpenAI model provider. Each scenario rejects an outside update, produces exactly one operator log record, then successfully adds an in-root file. Captured operator lines, with fixture paths normalized:

[tools] apply_patch failed: Path escapes sandbox root (<workspace>): <outside> apply_patch is workspace-contained by configuration. Both tools.exec.applyPatch.workspaceOnly (default true) and tools.fs.workspaceOnly impose this independently, so clearing one can leave the other in force. tools.exec.mode does not affect it.
[tools] apply_patch failed: Path escapes sandbox root (<workspace>): <outside> apply_patch is workspace-contained by this session's permission mode. Only a full permission mode lifts it; configuration settings do not override a session mode.

In both runs, the native dynamic-tool response and the subsequent model request retain exactly Path escapes sandbox root (<workspace>): <outside>, without the advice. The outside file keeps its SHA-256 and mode 0640; the in-root file contains the expected bytes. Both app-server processes report clean closure with PID exit verified, the fixture server closes, and the temporary fixture state is removed. Required-root rows additionally cover the core factory and generic Codex bridge; maintained mandatory-root entrypoints select OpenClaw or the rooted CLI route.

Before the correction, the new declared-mapping, symlink-escape, and late-delete cases failed at the missing operator hint, with 61 other core cases passing. The final focused proof also covers the late provenance-read rejection while preserving its existing unsafe-path message and outside-file contents.

Counterfactual checks remove each diagnostic at its owner: all four contained Codex rows then fail on the missing log while both unrestricted rows still pass; the provenance-read row and both worker rows fail on their missing hints. A plain-Node packaged consumer imports the public SDK entrypoints and verifies the same rejection, hint, unchanged outside file and successful inside write. That packaged check used the preceding integration's CI artifact from merge commit f178135ccc78, with its producer and runtime, SDK, package, lockfile and build inputs qualified against 1c621d7d366af. Its fixture state was removed after the check; it remains evidence from that source, not an execution of the rebased head.

The original contribution passed changed-path hygiene, line-count and assertion-safety ratchets, core/Codex/script lint, extension import boundaries, and SDK checks. The rebased integrations pass the invalidated preflights described above, and independent source review found no rebase or integration defect. Broader proof retains its original execution identities, including successful full CI at 5aec2729e417. Hosted validation of f924c017 executes merge 8a4acce37a9a, containing that head and main 1083c3fd0253; all 24 feature result files match that published head. The subagent authority group passes all 17 files and 917 tests, including all six authority cases and the previously failing first case. The earlier integration run remains historical failure evidence; the cause of its cleanup-root assertion is unproven. The selected main includes the Gateway partition repair.

That run also exposes a separate cleanup-fixture failure: Shared-state admission requires the host broker in openclaw-agent-execution-cleanup.test.ts. An independent execution of the same 229-file group on unchanged main 1083c3fd0253 reproduces the identical sole failure and stack: 1 failed, 2,725 passed and 20 skipped tests. The tested main tree remains unchanged afterward. Both runs use Node 24.19, two workers, one plan and an 8 GiB Node heap; the baseline has fresh caches and a larger host memory limit. The nonisolated worker can retain a database owner created before this fixture's transport mock, so cleanup reaches the real transport. Landed repair #153286 routes the unchanged fixture through the isolated lane, and the single fixture passed through that normal route on integration f18dee3a. This PR does not change that owner, fixture or routing. The author's earlier isolated Gateway observation remains historical evidence.

@Marvinthebored
Marvinthebored requested a review from a team as a code owner September 2, 2026 07:50
@clawsweeper

clawsweeper Bot commented Sep 2, 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 docker Docker and sandbox tooling agents Agent runtime and tooling size: M labels Sep 2, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 19, 2026, 11:12 PM ET / September 20, 2026, 03:12 UTC (Revision 16).

ClawSweeper review

What this changes

Adds operator-log explanations for apply_patch workspace rejections across standard, Codex, and worker execution while preserving model-visible errors and filesystem restrictions.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains useful work absent from current main. The previous conflict blocker is resolved, recorded runtime proof supports the diagnostics, and review found no actionable introduced defect.

Priority: P3
Reviewed head: caa441e3ec460f224eb71fcffddbbdfd04fb721a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A well-supported diagnostic improvement with meaningful boundary coverage and no actionable introduced defect.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): Recorded native Codex app-server runs exercise the production patch tool and failure bridge, showing one operator hint, unchanged model errors and outside-file state, and successful inside writes. Historical proof retains its original source identity; inspected runtime/test blobs match the preceding reviewed integration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): Recorded native Codex app-server runs exercise the production patch tool and failure bridge, showing one operator hint, unchanged model errors and outside-file state, and successful inside writes. Historical proof retains its original source identity; inspected runtime/test blobs match the preceding reviewed integration.
Evidence reviewed 9 items Current-main diagnostic gap: The fetched main adapter reports the error message and input preview without reading operator advice. The latest supplied release also lacks that reader in its adapter; this contribution is not established as already implemented or shipped.
Containment remains authoritative: The introduced changes annotate and rethrow existing failures. The configured containment expression, worker permission defaults, workspace mapping admission, and final filesystem operations retain their previous decisions.
Operator-only propagation: Non-enumerable error metadata is read by the standard and Codex failure loggers. Codex callbacks and protocol responses continue to receive the original error message; the new tests also check unchanged outside-file contents and successful inside writes.
Findings None None.
Security None None.

How this fits together

OpenClaw’s patch tool applies model-requested file changes under configuration, session, and workspace boundaries. Rejected operations pass through harness failure handlers that report errors to the model and diagnostics to operators.

flowchart TD
  A[Model patch request] --> B[Runtime containment policy]
  B --> C[Host filesystem checks]
  C -->|Allowed| D[File changes]
  C -->|Rejected| E[Error with diagnostic metadata]
  E --> F[Operator log with explanation]
  E --> G[Unchanged model error]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +394, Tests +423, Docs +10, Other 0. Total +827 across 24 files.

View PR surface stats
Area Files Added Removed Net
Source 16 494 100 +394
Tests 5 503 80 +423
Docs 2 10 0 +10
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 2 0
Total 24 1009 182 +827

Review metrics

Metric Value Why it matters
SDK surface 1 reader added; 0 configuration options added The documented reader shares diagnostic metadata across harnesses without adding a policy control.
Production versus test growth Production net +213 lines; tests and test support net +604 lines Production growth implements shared diagnostic attribution and propagation; tests protect rejection messages, file integrity, and runtime-specific policy sources.

Stored data model

Persistent data-model change detected: serialized state: src/worker/worker-runtime-permissions.suite.ts, unknown-data-model-change: src/worker/worker-runtime-permissions.suite.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep containment decisions with their existing owners and expose their explanations only through shared operator diagnostics.

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

Not applicable as a new diagnostic capability; current source establishes the missing explanation, and the supplied runtime traces demonstrate the added output.

Is this the best way to solve the issue?

Yes. Owner-supplied metadata and a shared reader provide accurate explanations without duplicating containment policy or changing model responses.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This improves operator diagnostics without changing permitted writes, defaults, or model-visible behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): Recorded native Codex app-server runs exercise the production patch tool and failure bridge, showing one operator hint, unchanged model errors and outside-file state, and successful inside writes. Historical proof retains its original source identity; inspected runtime/test blobs match the preceding reviewed integration.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded native Codex app-server runs exercise the production patch tool and failure bridge, showing one operator hint, unchanged model errors and outside-file state, and successful inside writes. Historical proof retains its original source identity; inspected runtime/test blobs match the preceding reviewed integration.

Evidence

What I checked:

  • Current-main diagnostic gap: The fetched main adapter reports the error message and input preview without reading operator advice. The latest supplied release also lacks that reader in its adapter; this contribution is not established as already implemented or shipped. (src/agents/agent-tool-definition-adapter.ts:271, 4bcc873e508f)
  • Containment remains authoritative: The introduced changes annotate and rethrow existing failures. The configured containment expression, worker permission defaults, workspace mapping admission, and final filesystem operations retain their previous decisions. (src/agents/apply-patch.ts:165, caa441e3ec46)
  • Operator-only propagation: Non-enumerable error metadata is read by the standard and Codex failure loggers. Codex callbacks and protocol responses continue to receive the original error message; the new tests also check unchanged outside-file contents and successful inside writes. (extensions/codex/src/app-server/dynamic-tools.ts:760, caa441e3ec46)
  • Codex dependency contract inspected: The patch directly changes the Codex dynamic-tool bridge and claims native app-server compatibility, making dependency inspection applicable. The sibling source converts response content_items and success into model tool output. Repository ownership was verified through the cache repository’s canonical openai/codex remote. (codex-rs/core/src/tools/handlers/dynamic.rs:153, 6b9826e3aa83)
  • Recorded real behavior proof: The supplied body snapshot, sourceRevision 298bd526119c53bd4838f6e9339e81517c003ef308732f1436c8781bc777fda5, records real Codex 0.154.0 app-server runs through the production harness using deterministic loopback Responses input. Configuration and guarded-session cases each produced one operator diagnostic, preserved the original subsequent model response and outside-file hash/mode, and successfully created an inside file. Packaged-consumer and broader test evidence retain their stated historical execution identities.
  • Re-review continuity: GitHub’s historical tree and the current local tree have identical blobs for all 19 retained changed runtime/test files under agents, worker, and the Codex bridge. The verified test merge has the pinned base followed by the exact PR head as parents; its delta contains the introduced paths, resolving the previous conflict-only blocker. (14e40e7f3550)

Likely related people:

  • shakkernerd: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Peter Steinberger: 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 (15 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-19T18:02:01.972Z sha c380ada60b5a8230d6bd004346a943e43b0999d2 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-19T18:32:53.797Z sha 5aec2729e417b70c7bf419e34f2a14f03e96f2d7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-19T19:00:36.335Z sha 5aec2729e417b70c7bf419e34f2a14f03e96f2d7 :: blocked before merge. :: none
  • reviewed 2026-09-19T19:19:07.490Z sha 1c621d7d366af06d7937dd3b6dc0319fc8e10c88 :: blocked before merge. :: none
  • reviewed 2026-09-19T19:52:25.396Z sha 1c621d7d366af06d7937dd3b6dc0319fc8e10c88 :: blocked before merge. :: none
  • reviewed 2026-09-20T01:04:06.236Z sha f924c0178f3005d2e5592cc5e85dcb0c377cafd5 :: blocked before merge. :: none
  • reviewed 2026-09-20T01:38:42.472Z sha f924c0178f3005d2e5592cc5e85dcb0c377cafd5 :: blocked before merge. :: none
  • reviewed 2026-09-20T02:58:29.480Z sha f18dee3a846f64c934ab83f3101e8cee2648d70e :: blocked before merge. :: none

@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 3, 2026
@Marvinthebored
Marvinthebored force-pushed the applypatch-workspace-hint branch from 39eb497 to b00d59a Compare September 3, 2026 05:07
@Marvinthebored

Copy link
Copy Markdown
Contributor Author

Addressed the P3 explicit-mock finding in 23d4eea0b4e: both workspace-guard tests now mock the small predicate directly, without loading the production sandbox-path module. No production code changed in this follow-up.

The PR body now records the 24 passing workspace-guard tests, passing hint/logging regressions and gateway test files, and the requested check-changed command (exit 0).

The current-main comparison also found a separate containment-policy integration conflict in agent-tools.ts. It is documented in the body and remains unresolved; this is not a merge-ready claim. The old compact-small-16 CI failure was not reproduced by the focused gateway run, and is not claimed fixed.

@clawsweeper re-review

@clawsweeper

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

@Marvinthebored
Marvinthebored force-pushed the applypatch-workspace-hint branch from 23d4eea to 70b46ae Compare September 7, 2026 09:25
@Marvinthebored

Copy link
Copy Markdown
Contributor Author

Rebased onto 0d30dcb and pushed 70b46aea626. The conflict is resolved without changing main's containment decision. Required-root rejections now explain that neither full permission mode nor workspaceOnly configuration lifts that boundary.

The PR body records the three failing-before/passing-after regressions, all 85 passing focused tests, and the full changed-file gate (exit 0). Independent Codex review found no code issues. Exact-head CI is still running.

A maintainer still needs to route security-owner review for the existing sandbox-paths.ts delta. GitHub rejected my request for openclaw/openclaw-secops review because the contributor account lacks RequestReviewsByLogin permission. No merge-readiness claim is made.

@roboclaw-bot roboclaw-bot added the clawtributor-review Clawtributor pull request awaiting prioritized maintainer review label Sep 7, 2026
@shakkernerd shakkernerd self-assigned this Sep 19, 2026
@shakkernerd
shakkernerd force-pushed the applypatch-workspace-hint branch from 70b46ae to c380ada Compare September 19, 2026 17:53
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: codex size: XL and removed size: M labels Sep 19, 2026
@shakkernerd shakkernerd changed the title improve: log which control contained apply_patch when it rejects a path fix: explain apply_patch workspace rejections Sep 19, 2026
@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 19, 2026
@shakkernerd

Copy link
Copy Markdown
Contributor

/allow-security-sensitive-change

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 19, 2026
@shakkernerd
shakkernerd force-pushed the applypatch-workspace-hint branch from 1c621d7 to f924c01 Compare September 20, 2026 00:53
@shakkernerd

Copy link
Copy Markdown
Contributor

/allow-security-sensitive-change

Peetiegonzalez and others added 5 commits September 20, 2026 03:59
Operators reading a "Path escapes sandbox root" failure had no way to tell
which setting caused it, and tools.exec.mode is the wrong guess: it opens
exec and leaves the apply_patch file boundary alone. The runtime owner now
declares whether configuration, a session mode, or a worker placement
imposed containment, and the failure logger names that control.

The hint is attached out of band and read only by the failure logger, so it
never enters the model-visible tool result. Host rejections are tagged at
their throw sites rather than matched by message text, so a sandbox bridge's
own mount rejection never draws host-setting advice that cannot lift it.

Related: openclaw#131434
…ource directly

isSandboxRootEscapeError now lives in sandbox-paths.ts, so the nodes workspace-guard
test's explicit vi.mock factory hid it from agent-tools.read.ts and the host rejection
surfaced as a vitest mock error instead of the sandbox-root message. Spread the
original module so only assertSandboxPath is replaced.

The operator-hint test indexed containmentSource off an optional parameter type,
which tsgo rejects; import the ApplyPatchContainmentSource type instead.

Co-Authored-By: Claude Opus 5 <[email protected]>
@shakkernerd
shakkernerd force-pushed the applypatch-workspace-hint branch from f18dee3 to caa441e Compare September 20, 2026 03:04
@shakkernerd

Copy link
Copy Markdown
Contributor

/allow-security-sensitive-change

@shakkernerd
shakkernerd merged commit 6f2faba into openclaw:main Sep 20, 2026
233 checks passed
@shakkernerd

Copy link
Copy Markdown
Contributor

Improved: apply_patch rejection logs now identify the active workspace restriction across OpenClaw, Codex, and worker execution.

With thanks to @Marvinthebored.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 20, 2026
Explain which workspace policy rejected apply_patch in operator logs across OpenClaw, Codex, and worker execution. Preserve containment decisions, outside files, and model-visible errors.

Refs openclaw#93140.
Reviewed-by: @shakkernerd
Co-authored-by: Shakker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawtributor-review Clawtributor pull request awaiting prioritized maintainer review docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: codex P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security-sensitive-changed size: XL 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.

5 participants