Skip to content

Convert the Sandbox startup suite to TypeScript - #5964

Merged
freeqaz-openai merged 1 commit into
mainfrom
codex/convert-sandbox-startup
Nov 14, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
codex/convert-sandbox-startup

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

Summary

Move the Sandbox startup suite from its 3,646-line JavaScript entrypoint to a TypeScript registrar and typed scenario files. The startup CI lane, release smoke selector, selector test, and worker flow now reference the typed entrypoint. Case names and registration order stay the same.

The dedicated Codex case uses the same admitted ChatGPT credential-source revision for Kubernetes Compute preparation, OpenShell Credential Gateway attachment, and Sandbox provisioning. It reads the relay from the ConfigMap mounted by the Gateway Deployment and compares its callback route and credential directory with the Sandbox network policy and environment.

Verification

  • All 153 startup and eight workspace-admission outcomes passed in their original order with zero skips. The linux/amd64 compatibility run left no owned containers or temporary directories.
  • Suppressing relay rendering for credential-source authentication and independently bypassing its projection into the Gateway ConfigMap both caused the dedicated Codex case to fail at the mounted configuration assertion.
  • The four focused conformance suites passed all 535 outcomes. The release smoke selector and transported-image refusal cases passed. The strict fixture probes accepted the supported inputs and rejected all 12 invalid inputs.
  • Typecheck, lint, formatting, workspace isolation, documentation checks, CI inventory audit, and Git whitespace checks passed.

The relay case exercises real Driver behavior over Kubernetes and OpenShell fixture transports. The callback and live OAuth exchange are outside that proof. The ordinary hosted image lane supplies same-source runtime evidence in PR CI. Native runtime and controller smoke on amd64 and arm64 are separate manual checks.

@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 14, 2026 07:12
@clawsweeper

clawsweeper Bot commented Nov 14, 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR converts the Sandbox startup suite to typed scenario modules, updates its selectors, and strengthens the mounted Codex relay assertion.

Example: A dedicated Codex Gateway ConfigMap omits nativeHookRelay.

  • Before: The startup case checks the relay configuration helper directly and can miss an omission during ConfigMap projection.
  • After: The case reads the ConfigMap mounted by the Gateway Deployment and fails when the relay is absent.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful test maintenance with stronger production-Driver assertions, reviewed-head CI success, and no actionable introduced finding.
Proof confidence 🐚 platinum hermit (4/6) The change concerns test infrastructure and selection, so shipped-product screenshots, recordings, or live OAuth proof are not required.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes
User problem: Contributors maintain the remaining startup orchestration and scenarios in a large JavaScript entry outside strict TypeScript checking.
Reason: The maintainer-authored direction continues prior merged work and adds a meaningful assertion against the Gateway's mounted configuration.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored test migration has clear maintenance value, and no actionable introduced correctness or security defect was found.

Priority: P3
Reviewed head: 0468c5bdd48af80de6cc0cc034a991a0a084cad0

Before merge

None.

Findings

None.

Agent review details

How this fits together

The startup suite exercises production Compute, Sandbox, and Credential Gateway Drivers using controlled Kubernetes and OpenShell transports, with selected image-backed cases; it checks generated resources, lifecycle outcomes, and refusal behavior.

flowchart TB
  A[CI and release smoke] --> B[Typed startup registrar]
  B --> C[Scenario modules]
  C --> D[Production Drivers]
  D --> E[Controlled transports]
  D --> F[Runtime image processes]
  E --> G[Resource and lifecycle assertions]
  F --> G
Loading

Technical review

Best possible solution:

Land the typed suite with its existing CI and release-smoke registrations while preserving the stated fixture-versus-live-runtime proof boundary.

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

This PR migrates tests rather than reporting a user-facing bug; source inspection and supplied CI results establish the review scope.

Is this the best way to solve the issue?

The conversion follows the suite's existing TypeScript extraction direction, reuses current Driver and fixture owners, and improves the relay assertion by checking mounted configuration.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 707813c4a738.

Provenance checked

  • Startup suite decomposition and registration keeps the original intent (7fa7a37: The earlier extraction moved startup checks into typed helpers while retaining their registration, names, and CI selection.)
  • Credential provider fixtures keeps the original intent (148a644: Typed credential scenarios use complete resource records and recording provider stores to exercise production Driver behavior.)
  • Dedicated Codex startup assertions keeps the original intent (aee9c6a: The native Harness extraction preserved startup and provider-file checks; this PR retains those checks and observes the relay through the mounted ConfigMap.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Free Wortley: Raw commit 148a644 adds tests/integration/sandbox-driver-credential-fixture.ts:10 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 148a6449b080; files: tests/integration/sandbox-driver-credential-fixture.ts)

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
Startup entry size 3,646 → 160 lines The entry becomes a registrar; scenario code moves into typed modules rather than disappearing.

Labels

Label changes:

  • add P3: This is test-maintenance work with stronger configuration coverage and no changed product runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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-maintenance work with stronger configuration coverage and no changed product runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 14, 2026, 2:25 AM ET / 07:25 UTC.

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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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