Skip to content

fix(infra): unify env-truthiness, missing-path, realpath, and abort-sleep semantics - #120359

Merged
steipete merged 10 commits into
mainfrom
steipete/loc5-classify-7d1a
Aug 8, 2026
Merged

steipete merged 10 commits into
mainfrom
steipete/loc5-classify-7d1a

Conversation

@steipete

@steipete steipete commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes inconsistent classification semantics across environment flags, missing filesystem paths, realpath fallbacks, and abortable sleeps. Before this change, equivalent operator inputs and filesystem/runtime outcomes could be interpreted differently depending on the caller: on enabled some flags but not telemetry or offline mode, missing ancestors were sometimes treated as hard failures, realpath fallbacks used several subtly different helpers, and cancelled sleeps did not consistently produce an abort-classified error.

Why This Change Was Made

The affected decisions now flow through canonical owners: boolean parsing for opt-in environment flags, one errno/fs-safe missing-path classifier, fs-safe realpath helpers plus one named absolute fallback, and @openclaw/retry for abortable waits. Connected duplicate helpers were removed. Security and legacy-protocol exceptions remain local and documented where broader normalization would change their contract.

Root cause: these classification rules had been independently reimplemented across agents, config, diagnostics, plugins, Gateway, and retry callers. Their truth tables and fallback/error identities drifted over time.

Architectural owners and canonical fixes:

  • Environment opt-ins: src/infra/env.ts delegates to the shared boolean parser.
  • Missing paths: src/infra/errno.ts, re-exported through src/infra/errors.ts, owns exact ENOENT, ENOTDIR, and fs-safe not-found classification without requiring Error identity.
  • Realpaths: @openclaw/fs-safe/path owns nullable realpath resolution; src/infra/boundary-path.ts owns canonical-or-absolute fallback.
  • Abortable waits: @openclaw/retry owns timer cleanup and abort error shape.

Removed paths include per-caller env truth tables, 18 pure missing-path classifiers, 12 safe realpath wrappers, the provider-local sleeper, the ingress retry sleeper, and the agent sleep implementation.

Intentional behavior fixes

  • Telemetry env override: before, on was false and surrounding whitespace was not normalized; after, 1, on, true, and yes are accepted case-insensitively after trimming.
  • Offline tool mode: before, on was false and surrounding whitespace was not normalized; after, it uses the same canonical opt-in truth table.
  • Missing paths: before, ENOENT-only classification consumers could surface ENOTDIR or fs-safe not-found as failures; after, 18 migrated classification sites consistently recognize those three exact codes as absent. Media directory recreation intentionally remains exact-ENOENT, because recursive mkdir cannot repair ENOTDIR or generic fs-safe absence; nested ENOENT causes remain recoverable.
  • Apply-patch provenance: before, the observer could depend on parsing (path not found) text; after, the boundary producer preserves exact ENOENT/ENOTDIR codes.
  • Abort identity: before, shared sleeps rejected generic Error values or the raw signal reason; after, they reject AbortError with message aborted and preserve the signal reason as cause, so isAbortError recognizes cancellation.

Preserved exceptions:

  • Doctor update handoff remains an explicit legacy opt-out predicate, where arbitrary non-false text is meaningful.
  • Guarded-fetch debug proxy enablement remains an exact lowercase security opt-in; normalization was not widened.
  • Bundled entry source-fallback disabling retains its shipped presence-based contract: any defined value except trimmed 0/false disables fallback, including empty or noncanonical text.
  • src/plugins/bundled-dir.ts and src/gateway/hooks-mapping.ts retain native realpath canonicalization because their containment checks rely on native platform semantics.
  • Plain non-abortable sleep and specialized AI/Gateway wait implementations remain separate.

User Impact

Operators get predictable env flag handling and fewer false filesystem failures during cleanup, diagnostics, config mutation, skill discovery, and agent lifecycle operations. Cancellation now propagates through a stable abort shape, improving shutdown and retry behavior without keeping idle processes alive.

Plugin API surface counts are unchanged. The deprecated broad infra barrel was pinned to its pre-existing exports so the new internal missing-path helper does not become a plugin contract.

Scope and sibling coverage:

  • Environment: two divergent opt-in truth tables migrated; three explicit exceptions preserved; the canonical env/boolean duplicate pair unified.
  • Missing paths: 18 pure classification sites migrated; the media-store retry boundary preserves exact-ENOENT recovery. The research list named 18 current sites and omitted the verified Gateway classification site.
  • Realpaths: 12 of 14 migrated; two native-containment STOPs preserved. A 15th matching doctor-state helper found during verification was migrated coherently.
  • Abortable sleeps: three duplicate callers migrated and the package owner repaired; three intentionally different plain/specialized implementations left unchanged.

Premise mismatches: several research paths had moved into their current owners, the missing-path list omitted the Gateway site, the realpath scan found the doctor-state sibling, and scripts/committer is absent in this checkout, so exact-file conventional commits used the authorized no-verify fallback.

Evidence

  • Production LOC: +182/-390 (net -208)
  • Tests: +78/-4
  • Generated/tooling: +1/-2
  • Focused Vitest owner/caller proof: more than 1,352 passing assertions, plus the verifier follow-up worktree suite (70 passed, 1 skipped) and boundary-path suite (5 passed).
  • Behavior validator: 12/12 clauses passed across three independent source-blind runs using the executable module-level harness.
  • node scripts/check-changed.mjs: clean local fallback for core, core tests, extensions, extension tests, docs, tooling, and bundled-channel metadata lanes; typechecks, lint shards, guards, import-cycle check, and database-first checks passed.
  • pnpm plugin-sdk:surface:check: clean; public surface counts unchanged.
  • pnpm plugin-sdk:api:gen plus API contract check: clean; only the intentional infra-runtime module hash changed after pinning explicit exports.
  • git diff --check: clean.
  • Codex autoreview: clean on the full uncommitted patch, verifier comment follow-up, and CI-triggered policy-wrapper repair; no accepted/actionable findings.
  • Independent verification was clean at daaf7fc9849c76c029e6d1e9f78a005d059b7ade. Exact-head CI then exposed five direct fs-safe imports outside the policy wrapper; 2a3bf9287e285b69963390d94a33aa35245ee3a0 routes them through src/infra/boundary-path.ts, with 111 focused tests and the import-boundary guard passing locally.
  • Remote proof routing: Blacksmith Testbox could not start because the local blacksmith executable was absent. A routed Daytona fallback failed before command execution while writing sync manifests; lease cbx_9aa5d2f6e5b1 was confirmed released. Per repository policy, trusted-source proof fell back locally and completed cleanly.
  • Exact-head CI run 31221913538: 61 jobs succeeded and all attributable product/boundary checks passed. security-fast remains red on the same nanoid 3.3.16 advisory that independently fails current main CI. checks-node-compact-small-1 reported 81 Plugin SDK wildcard reexports twice, while fresh branch and exact merge-tree scans both pass at 80; its single allowed rerun reproduced the stale runner state. The aggregate CI gate is red only downstream of those two blockers.
  • Dependency repair PR fix(deps): update nanoid past denial-of-service advisory #120368 is green and mergeable but remains open without automerge. Once it lands, rebasing this PR onto repaired main is the appropriate way to refresh the native merge gate; no dependency or baseline workaround is included here.

No live provider/channel claim is made: this change does not add an external API integration or modify a live channel protocol. The operator-visible contracts were exercised through focused owner/caller tests and the source-blind module harness.

  • After-fix zero-delay cancellation runtime proof: the executable actual-wrapper harness exited 0 with redacted stdout {"errorName":"AbortError","isAbortError":true,"causePreserved":true,"followOnRan":false,"zeroNonAbortedResolved":true}. Independent source-blind validation passed all 6 contract clauses across three identical runs. The direct wrapper harness models the computer wait's follow-on screenshot boundary with an explicit sentinel; it does not claim a live full-computer-path execution.
  • Candidate follow-up (not part of this PR): separately evaluate aligning @openclaw/retry so pre-aborted signals win over its zero-duration fast path. That package has wider blast radius and its current contract (sleepWithAbort(0, abortedSignal) resolves) is explicitly unchanged here; this repair restores abort precedence only at the agent wrapper, using the same canonical AbortError shape as positive-duration retry sleeps.
  • Round-two focused proof: src/plugin-sdk/channel-entry-contract.test.ts passed 14/14 and src/media/store.test.ts passed 52/52. The media matrix proves direct and nested-cause ENOENT recovery while standalone ENOTDIR and fs-safe not-found surface after one write attempt.
  • Round-two behavior proof: independent source-blind validation passed three identical executions of the actual public-path harness. Redacted stdout: {"truthTable":{"undefined":true,"enabled":false,"empty":false,"whitespace":false,"off":false,"no":false,"arbitrary":false,"zero":true,"false":true,"false-trimmed-case":true},"cacheSeparated":true,"mediaStructuralCode":"ENOTDIR"}.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime commands Command implementations agents Agent runtime and tooling size: L maintainer Maintainer-authored PR labels Aug 7, 2026
@steipete
steipete marked this pull request as ready for review August 7, 2026 21:45
@steipete
steipete force-pushed the steipete/loc5-classify-7d1a branch from 2a3bf92 to ca9460f Compare August 7, 2026 22:51
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Aug 7, 2026
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Aug 8, 2026
@clawsweeper

clawsweeper Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 8, 2026, 2:43 AM ET / 06:43 UTC.

ClawSweeper review

What this changes

This PR centralizes environment parsing, missing-path classification, realpath fallback, and abortable sleep behavior across core callers.

Merge readiness

⚠️ Ready for maintainer review - 7 items remain

Keep open: the refactor still bypasses its new fs-safe policy boundary in exec-approval code, and it removes a distinct Doctor persistence regression. Likely related people: Josh Avant, who introduced the current shared path-safety foundation (medium confidence).

Priority: P2
Reviewed head: 80169b09e43fd5b8d69691c1a537bf438e55426b

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The consolidation has strong scope and proof detail, but two concrete repair items remain before it is merge-ready.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored protected PR is exempt from the external-contributor proof gate; its body nevertheless includes redacted runtime-harness evidence.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored protected PR is exempt from the external-contributor proof gate; its body nevertheless includes redacted runtime-harness evidence.
Evidence reviewed 5 items Exec path boundary bypass: Two changed exec-approval modules import the fs-safe helper directly instead of the new boundary facade, leaving their canonicalization outside the process-wide fs-safe default initializer.
Configured fs-safe owner: The boundary facade imports fs-safe defaults before re-exporting safe realpath, and the initializer sets native mode off unless an operator override exists.
Doctor regression coverage removed: The deleted test uniquely exercised valid legacy gateway.bind migration through the normal Doctor config write; the retained preflight test instead begins with invalid JSON and last-known-good recovery.
Findings 2 actionable findings [P2] Route exec realpaths through the policy boundary
[P2] Retain normal Doctor bind-migration persistence coverage
Security Needs attention Exec approval bypasses fs-safe initialization: The changed direct imports can evaluate the fs-safe realpath helper without the boundary module that configures OpenClaw’s default native mode, leaving security-sensitive allowlist canonicalization import-order dependent.

How this fits together

Shared infrastructure helpers convert environment values, filesystem outcomes, paths, and abort signals into decisions used by agents, plugins, configuration, and gateway code. Those decisions then affect operator setup, command approval, retries, and runtime cleanup.

flowchart LR
  A[Environment and filesystem inputs] --> B[Shared infrastructure helpers]
  B --> C[Agent and configuration flows]
  B --> D[Plugin loading]
  B --> E[Gateway and command approval]
  C --> F[Operator-visible outcomes]
  D --> F
  E --> F
Loading

Before merge

  • Route exec realpaths through the policy boundary (P2) - These direct imports bypass boundary-path, the owner that first applies OpenClaw’s fs-safe default. The same direct import remains in src/infra/exec-command-resolution.ts:4; route both through the facade so executable allowlist and wrapper-trust canonicalization cannot depend on module import order.
  • Retain normal Doctor bind-migration persistence coverage (P2) - This deletion removes the focused valid-config path through loadAndMaybeMigrateDoctorConfig, runInitialConfigWriteHealth, and the final writer. The retained preflight case starts with invalid JSON and last-known-good recovery, so keep this test or move its equivalent final-write assertions into an existing Doctor flow suite.
  • Resolve security concern: Exec approval bypasses fs-safe initialization - The changed direct imports can evaluate the fs-safe realpath helper without the boundary module that configures OpenClaw’s default native mode, leaving security-sensitive allowlist canonicalization import-order dependent.
  • Resolve merge risk (P1) - Exec allowlist and command-resolution canonicalization can depend on import order until both direct fs-safe imports use the boundary facade that applies OpenClaw’s configured default.
  • Resolve merge risk (P1) - The deleted Doctor test leaves valid-config gateway.bind migration through the final config writer without its focused regression coverage.
  • Resolve merge risk (P1) - The branch is behind main and needs an exact-head refresh after the fixes.
  • Complete next step (P2) - The protected maintainer PR needs its two bounded repairs and an exact-head refresh before merge.

Findings

  • [P2] Route exec realpaths through the policy boundary — src/infra/exec-allowlist-pattern.ts:3
  • [P2] Retain normal Doctor bind-migration persistence coverage — src/commands/doctor-config-flow.gateway-bind-persistence.test.ts:1-65
  • [medium] Exec approval bypasses fs-safe initialization — src/infra/exec-allowlist-pattern.ts:3
Agent review details

Security

Needs attention: Exec-approval path canonicalization now bypasses the source-owned fs-safe initialization boundary.

PR surface

Source -202, Tests +157, Generated 0, Other 0. Total -45 across 65 files.

View PR surface stats
Area Files Added Removed Net
Source 52 193 395 -202
Tests 10 236 79 +157
Docs 0 0 0 0
Config 0 0 0 0
Generated 1 2 2 0
Other 2 2 2 0
Total 65 433 478 -45

Review metrics

Metric Value Why it matters
Production versus test LOC production +194/-396; test files +236/-79; generated +3/-3 The diff is net-reductive in production code, but its shared semantics and removed regression still need correctness review rather than LOC-based approval.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor-config-flow.gateway-bind-persistence.test.ts, migration/backfill/repair: src/commands/doctor-retired-phone-control.ts, migration/backfill/repair: src/commands/doctor-skill-workshop-sqlite.ts, migration/backfill/repair: src/commands/doctor-state-integrity.ts, migration/backfill/repair: src/flows/doctor-health-contribution-runners.config.ts, migration/backfill/repair: src/flows/doctor-health-contributions.test.ts, and 9 more. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Restore the canonical boundary (recommended)
    Replace both direct fs-safe realpath imports with the boundary facade and preserve the valid-config Doctor writer regression before refreshing the branch.
  2. Accept the remaining divergence
    Merge with explicit acceptance that exec approval path resolution may bypass the configured fs-safe default and that normal Doctor writer coverage is reduced.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Replace both direct fs-safe realpath imports in exec-approval code with the boundary facade, retain the valid-config Doctor migration persistence regression, and run focused exec-approval and Doctor flow tests.

Technical review

Best possible solution:

Route both exec realpath calls through the boundary facade, retain the valid-config Doctor persistence regression, then rebase and obtain an exact-head review.

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

Source-reproducible, but not executed in this read-only review: the direct imports bypass the source-owned initializer that configures fs-safe defaults before boundary use.

Is this the best way to solve the issue?

No: the intended canonical boundary is already present, so the two exec imports should use it and the unrelated Doctor write regression should remain covered.

Full review comments:

  • [P2] Route exec realpaths through the policy boundary — src/infra/exec-allowlist-pattern.ts:3
    These direct imports bypass boundary-path, the owner that first applies OpenClaw’s fs-safe default. The same direct import remains in src/infra/exec-command-resolution.ts:4; route both through the facade so executable allowlist and wrapper-trust canonicalization cannot depend on module import order.
    Confidence: 0.9
  • [P2] Retain normal Doctor bind-migration persistence coverage — src/commands/doctor-config-flow.gateway-bind-persistence.test.ts:1-65
    This deletion removes the focused valid-config path through loadAndMaybeMigrateDoctorConfig, runInitialConfigWriteHealth, and the final writer. The retained preflight case starts with invalid JSON and last-known-good recovery, so keep this test or move its equivalent final-write assertions into an existing Doctor flow suite.
    Confidence: 0.93

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add merge-risk: 🚨 security-boundary: Changed command-approval path canonicalization bypasses the configured fs-safe boundary in two modules.

Label justifications:

  • P2: The PR affects shared runtime and operator-facing infrastructure, with bounded but cross-cutting blast radius.
  • merge-risk: 🚨 compatibility: It intentionally changes established environment and filesystem classification behavior used by existing operator setups.
  • merge-risk: 🚨 security-boundary: Changed command-approval path canonicalization bypasses the configured fs-safe boundary in two modules.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This MEMBER-authored protected PR is exempt from the external-contributor proof gate; its body nevertheless includes redacted runtime-harness evidence.

Evidence

Security concerns:

  • [medium] Exec approval bypasses fs-safe initialization — src/infra/exec-allowlist-pattern.ts:3
    The changed direct imports can evaluate the fs-safe realpath helper without the boundary module that configures OpenClaw’s default native mode, leaving security-sensitive allowlist canonicalization import-order dependent.
    Confidence: 0.84

What I checked:

Likely related people:

  • Josh Avant: Git history attributes the current fs-safe-backed path-safety facade and defaults to this area’s foundational commit. (role: introduced shared path-safety foundation; confidence: medium; commits: 8333892384ac; files: src/infra/path-safety.ts, src/infra/fs-safe-defaults.ts)

Rank-up moves

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

  • Route both exec realpath imports through the configured boundary facade.
  • Keep or relocate the valid-config Doctor persistence regression, then request an exact-head review after rebasing.

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 (3 earlier review cycles)
  • reviewed 2026-08-08T01:38:11.162Z sha 039325ea00b43e93cd156f00ee926be8e2eda641 :: needs real behavior proof before merge. :: [P2] Preserve abort precedence for zero-duration agent sleeps
  • reviewed 2026-08-08T02:42:19.515Z sha 5c150997f51dd1cc34e433f07eb980f765774ae8 :: found issues before merge. :: [P1] Preserve the fallback-disable environment contract | [P2] Retry only recoverable media-directory absence
  • reviewed 2026-08-08T04:49:31.209Z sha 4a0e92e :: found issues before merge. :: [P2] Route degraded-plugin matching through the shared resolver

@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 8, 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 repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 Aug 8, 2026
@steipete
steipete force-pushed the steipete/loc5-classify-7d1a branch from ba8e43b to 4a0e92e Compare August 8, 2026 04:28
@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 8, 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 repository_dispatch).
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 force-pushed the steipete/loc5-classify-7d1a branch 2 times, most recently from 1c9f3ce to 80169b0 Compare August 8, 2026 06:17
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Aug 8, 2026
@steipete
steipete force-pushed the steipete/loc5-classify-7d1a branch from 80169b0 to 237f96f Compare August 8, 2026 15:42
@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 8, 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 repository_dispatch).
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 eecbfcc into main Aug 8, 2026
124 checks passed
@steipete
steipete deleted the steipete/loc5-classify-7d1a branch August 8, 2026 17:59
vincentkoc added a commit to IsaiahStapleton/openclaw that referenced this pull request Aug 8, 2026
…0807

* origin/main:
  fix(qa): honor Crabbox SSH fallback ports (openclaw#120539)
  refactor(core): adopt normalization-core leaf helpers across production (openclaw#120350)
  fix(release): scope upgrade plugin credentials (openclaw#120666)
  fix(ai): preserve long Responses sessions after server compaction (openclaw#120457)
  fix(test): keep fork E2E setup builds observable (openclaw#120653)
  fix(cloud-workers): retain provider operation ownership (openclaw#120661)
  docs: runners plan — one placement model for sessions, devices, and cloud (openclaw#120657)
  refactor(cli): inline state migration policy (openclaw#120641)
  feat(update): scheduled update campaigns with countdown, dev-channel auto-update, and Updates settings page (openclaw#120506)
  chore(i18n): refresh native locales (openclaw#120614)
  fix(ci): retry transient artifact API reads (openclaw#120654)
  fix(clawrouter): honor advertised reasoning efforts (openclaw#120631)
  fix(infra): unify env-truthiness, missing-path, realpath, and abort-sleep semantics (openclaw#120359)
  fix(maintainers): parse merge comment URL structurally (openclaw#120649)
  fix(ui): label only operator-pinned runtimes in model picker rows (openclaw#120646)
  docs(agents): replace exact-head re-review gate with 12-hour review window

# Conflicts:
#	src/agents/payload-redaction.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
…leep semantics (openclaw#120359)

* fix(infra): unify environment truthiness

* fix(infra): unify missing path classification

* refactor(infra): unify realpath fallbacks

* fix(infra): unify abortable sleep errors

* docs(infra): clarify path fallback semantics

* fix(infra): route realpaths through policy wrapper

* fix(infra): ratchet plugin SDK wildcard budget

* fix(agents): preserve zero-delay abort precedence

* fix(infra): preserve fallback and media recovery contracts

* fix(plugins): share quarantine path resolution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant