Skip to content

test(openshell): deduplicate sandbox fixtures - #129258

Merged
steipete merged 1 commit into
mainfrom
codex/land-aug25-openshell-fixtures
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/land-aug25-openshell-fixtures

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes duplicated OpenShell sandbox fixtures that repeated setup and assertions across lifecycle, mount, and policy scenarios without adding independent coverage.

Why This Change Was Made

The suite now expresses shared sandbox state through canonical fixtures while preserving the security-sensitive mount, cleanup, and time-of-check/time-of-use assertions at the owning boundary.

Production LOC: +0/-0 (net 0) | Tests: +70/-345 (net -275)

User Impact

There is no user-visible behavior change. The OpenShell sandbox suite is smaller and easier to extend while retaining its lifecycle and isolation guarantees.

Evidence

  • Focused OpenShell owner suite: 47/47 tests passed.
  • Independent full owner and sibling coverage: 70 tests passed.
  • All complete expectations, await-using cleanup paths, mount checks, and TOCTOU security cases were preserved.
  • Focused typed lint, direct lint, formatting, and diff validation passed.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 25, 2026 11:05
@steipete
steipete merged commit 8166cc0 into main Aug 25, 2026
171 checks passed
@steipete
steipete deleted the codex/land-aug25-openshell-fixtures branch August 25, 2026 11:16
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Rorqualx pushed a commit to Rorqualx/cortex that referenced this pull request Aug 25, 2026
… advance 80)

Resolution (13 raw conflicts; 12 ui resolved by fork-ownership policy):

- pnpm-lock.yaml: regenerated via pnpm install (derived file).
- extensions/openshell/src/openshell-core.test.ts (merge=ours drift): ADOPT-UPSTREAM
  openclaw#129258 fixture dedup + openclaw#120996 tempWorkspace migration + openclaw#126828 canonical-owner
  test (fork's makeTempDir shape + missing test were stale freezes of older upstream
  code, not fork intent). Grafted fork's one genuine delta: required
  SandboxConfig.osSandbox block into createOpenShellBackendSandboxConfig.
- src/agents/cli-runner.reliability.test.ts (merge=ours drift): clean 3-way
  merge-file. Kept fork tests + upstream openclaw#125085 (codex->agent-cli literals,
  watchdog resume tuning test; math verified against merged reliability.ts).
- src/agents/embedded-agent-runner/run/incomplete-turn-recovery.ts: ADOPT-UPSTREAM
  (preflight tsgo-core=1 catch: upstream consumer openclaw#128970 imports
  resolveSettledToolBatchEvidence which merge churn had dropped from the fork
  provider; export surface differs by exactly this extraction; fork toolMetas
  type carries toolCallId?/terminate?/isError?).
- ui/src/ui/markdown.ts: explicit param types on the linkify www plugin callbacks
  (validate/normalize). @types/markdown-it 14.1.2->14.2.0 (upstream dep bump)
  dropped contextual typing for them; the fork-owned ui copy now types them inline
  per linkify-it's Validate/Match signatures (upstream adapted its own ui tree the
  same way). Only ui file needed it; tsgo:test:ui 3->0 locally.

Note: ui tree-hash invariant vs main intentionally broken by this one adaptation —
main's ui does not compile against the new lockfile (baseline 0 was measured with
@types 14.1.2).

No product-collision: no codex/** residuals.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant