Skip to content

fix: harden sandbox bootstrap and replica materialization - #105

Open
misrasaurabh1 wants to merge 19 commits into
codex/cloud-sandbox-data-plane-architecturefrom
codex/phase1-idempotent-session-client
Open

fix: harden sandbox bootstrap and replica materialization#105
misrasaurabh1 wants to merge 19 commits into
codex/cloud-sandbox-data-plane-architecturefrom
codex/phase1-idempotent-session-client

Conversation

@misrasaurabh1

@misrasaurabh1 misrasaurabh1 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Implements deterministic, hash-only idempotency for ambiguous sandbox session exchange with one bounded retry, exact archive-receipt verification, and safe atomic read-only replica materialization.

Unix materialization is descriptor-relative and uses no-follow filesystem operations for extraction, traversal, chmod, rollback, and held-identity no-replace publication. The non-Unix compatibility path retains nested-directory creation. Adversarial component and staging-root substitution tests prove no writes or chmod escape staging.

Also updates Hono and the Cloudflare development toolchain, with a patched sharp override, to resolve current dependency advisories. The mock HTTP server normalizes accepted sockets so retry tests are deterministic on Darwin.

Validation:

  • localityd replica materializer: 17/17
  • loc-cli sandbox retry suite: 5/5 plus 25 consecutive bounded-retry runs
  • OAuth service: typecheck, 15/15 tests, Wrangler 4.113.0, zero npm audit findings
  • independent reviewer: no blocker, high, or medium finding through e38ef6c
  • Linux ARM64 musl release build installed and SHA-256 verified on the acceptance host
  • final GitHub CI matrix rerun in progress after unrelated scheduler timing flakes

@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
locality Ready Ready Preview, Comment Jul 22, 2026 8:03pm

@misrasaurabh1 misrasaurabh1 changed the title fix: recover ambiguous sandbox session exchanges fix: harden sandbox bootstrap and replica materialization Jul 21, 2026
# Conflicts:
#	crates/loc-cli/src/commands.rs
#	crates/localityd/Cargo.toml
@github-actions

Copy link
Copy Markdown

Codex review

  • minor: apps/oauth-service/package.json:24 declares top-level overrides twice. JSON consumers commonly keep only the last duplicate key, so the newly added "sharp": "^0.35.3" block is silently ignored and tooling that rejects duplicate object keys may fail on this manifest. Minimal fix: collapse this to a single overrides object with the intended sharp constraint.

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