Skip to content

Type workspace admission tests from the Agent API through Sandbox provisioning - #5828

Merged
freeqaz-openai merged 1 commit into
mainfrom
codex/deslop-n8_sandbox_workspace
Nov 13, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
codex/deslop-n8_sandbox_workspace

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

What changed

Moves three OpenShell workspace admission cases into a TypeScript integration suite. The mount case projects and validates the Agent configuration, then inspects the writable workspace mount and environment in the actual CreateSandbox request. It uses the production Kubernetes Compute and OpenShell Sandbox Drivers with controlled transports.

Moves eleven HTTP admission cases into a typed module. The existing workspace setup test entry registers all fourteen cases in their original order and continues to share its Fastify, IAM and in-memory state setup. The new Sandbox suite is registered in Image Runtime Startup 2 and the runtime release smoke.

Verification

  • All 161 Sandbox results passed with the pinned runtime image, including the five nested command cases. All 14 HTTP cases passed in their original order. Both runs had zero skips.
  • The HTTP selector completed preparation, execution and cleanup. The release-smoke parity test, manifest audit and all three file selection checks passed.
  • Typechecking included both new TypeScript sources. Lint, formatting and workspace boundary checks passed.
  • Local Image Runtime Startup 2 preparation stopped before test execution because Docker could not attach a veth to its missing bridge. Cleanup passed. Hosted Image Runtime Startup 2 must complete for both Sandbox files before merge.

@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 13, 2026 13:33
@clawsweeper

clawsweeper Bot commented Nov 13, 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.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR moves workspace admission coverage into typed test modules and checks the workspace mount in the generated CreateSandbox request.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused test maintenance with passing hosted validation; the inspected behavioral coverage uses in-process fixtures and controlled infrastructure transports.
Proof confidence 🦐 gold shrimp (3/6) Test-only maintenance needs no shipped-entry-point demonstration; the changed cases exercise production API and Driver code with controlled infrastructure, and hosted checks pass for the reviewed head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes
Reason: The maintainer-authored direction continues established TypeScript test maintenance and improves coverage of the generated workspace mount.

Merge readiness

✅ Ready for maintainer review

This PR is useful test maintenance with no actionable introduced defect found; the reviewed head now passes CI Required and Image Runtime Startup 2.

Priority: P3
Reviewed head: 6e340e9701c9cb7cdc513106a8f2780b1bb8d5d5

Before merge

None.

Findings

None.

Agent review details

How this fits together

Separate integration fixtures exercise Agent HTTP admission through Fastify, OCC and IAM, and revision preparation through Kubernetes Compute and OpenShell Sandbox Drivers; controlled infrastructure transports capture the resulting Sandbox request.

flowchart LR
  A[Agent HTTP requests] --> B[Fastify OCC and IAM]
  B --> C[Admission and private staging]
  D[Revision preparation fixture] --> E[Kubernetes Compute]
  E --> F[OpenShell Sandbox Driver]
  F --> G[Captured CreateSandbox request]
Loading

Technical review

Best possible solution:

Retain the typed coverage and strengthened request assertion with the existing runtime contracts unchanged.

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

This PR reports no product defect to reproduce; inspection confirms a test migration with a stronger mount assertion.

Is this the best way to solve the issue?

The change uses existing test fixtures and production Driver owners, removes the replaced helpers, and registers the new suite in CI and release smoke selection.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5e31ef8d6c32.

Provenance checked

  • HTTP workspace admission and privacy assertions keeps the original intent (feat: initialize Agent workspace files before first runtime #291: Stage exact initial workspace bytes privately before first runtime and preserve scope, replay and lifecycle boundaries.)
  • OpenShell workspace projection keeps the original intent (eede145: Pin the main Agent workspace to the Sandbox mount so runtime and file-transfer paths agree.)
  • Typed Sandbox test extraction and selectors keeps the original intent (Split OpenShell startup tests into typed cases #5676: Move startup cases into typed modules while preserving their execution and credential-catalog coverage.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Free Wortley: Raw commit 1490857 adds tests/integration/workspace-setup-api.test.mjs:434 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1490857fa8de; files: tests/integration/workspace-setup-api.test.mjs)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Change distribution Runtime implementation +0/-0; tests and type configuration +1204/-949; CI selection +10/-0 The net growth supports typed response validation and a stronger Driver composition case without adding runtime machinery.

Labels

Label changes:

  • add P3: This is test organization and coverage maintenance without a user-facing behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test organization and coverage maintenance without a user-facing behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 13, 2026, 8:46 AM ET / 13:46 UTC.

@freeqaz-openai
freeqaz-openai merged commit 14d7fbe into main Nov 13, 2026
63 checks passed
@freeqaz-openai
freeqaz-openai deleted the codex/deslop-n8_sandbox_workspace branch November 13, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

1 participant