Skip to content

security: fail closed on harness execution and file errors - #1

Merged
felfel-aly merged 2 commits into
mainfrom
security/fail-closed-harness-execution-20261107
Nov 8, 2026
Merged

felfel-aly merged 2 commits into
mainfrom
security/fail-closed-harness-execution-20261107

Conversation

@felfel-aly

@felfel-aly felfel-aly commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Security fix

  • Remove implicit host-local shell execution when remote Conway sandbox commands fail in the coding and general harnesses.
  • Remove host-local filesystem fallback when sandbox reads or writes fail.
  • Add regression tests proving failed remote operations do not execute commands or access host files; restrict local worker tool availability.
  • Correct two older worker-security tests that previously expected the unsafe fallback.

Review scope

Five files only: two harness implementations and three corresponding test files. Unrelated personal checkout changes, credentials, wallets, additional experimental development and dependency upgrades are not included.

Local verification (published five-file change)

  • pnpm typecheck — PASS.
  • Harness/worker-focused Vitest selection (three files) — 23/23 tests PASS.
  • pnpm build — PASS.
  • Broader bounded Vitest run with only src/__tests__/context-hardening.test.ts excluded — 1,620/1,620 tests PASS across 63 files, under Node 24 with two isolated workers.
  • Complete unfiltered 64-file suite — NOT VERIFIED. A 225-second bounded run on the earlier four-file revision finished 61 suites but timed out with three suites unfinished. The two obsolete worker-security expectations have now been corrected. The remaining context-hardening suite is associated with pre-existing tokenization performance concerns (see upstream PR #431); its complete behavior has not been established here.
  • GitHub-hosted CI — completed with reported success on fork head 706754a (CI run Own Conway: secure local runtime, strict CI, Ubuntu Codex and Overwatch status #2). Limitation: the fork inherits an upstream workflow that can treat Vitest timeout exit 124 as success, so this green status alone does not prove the full unfiltered test suite completed.

Review considerations

Remote authentication/network/sandbox failures must remain failures; a separate, explicitly selected local execution mode must not be entered simply because a remote operation throws. Please review whether any intended local-mode behavior should be defined through a dedicated capability boundary.

Draft only — not merged or deployed.

Remove local host shell and filesystem fallbacks from coding/general worker harnesses, and test that remote sandbox failures do not access the host.

Scope: four source/test files only. Isolated Node 24 typecheck, 15 focused tests and build passed. Full upstream suite exceeded the test run timeout and remains unverified.
@felfel-aly
felfel-aly marked this pull request as ready for review November 8, 2026 20:47
@felfel-aly
felfel-aly merged commit cd5bb15 into main Nov 8, 2026
6 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T20:50:28.002659Z 706754a Draft marked ready
🔒 Security Review ✅ Completed 2026-11-08T20:50:57.675809Z 706754a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant