Skip to content

Split OpenShell startup tests into typed cases - #5676

Merged
freeqaz-openai merged 6 commits into
mainfrom
refactor/openshell-startup-wiring-native-typescript
Nov 12, 2026
Merged

freeqaz-openai merged 6 commits into
mainfrom
refactor/openshell-startup-wiring-native-typescript

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

What changed

  • Move OpenShell startup wiring, network admission, native launch, and gateway recovery into typed test helpers. The startup entry file is 455 lines shorter.
  • Share the gateway replay state and stock-protocol round-trip assertions. Give command-admission cases named inputs and use the real credential catalog and bundled MCP install in their fixtures.
  • Keep the original startup test entry point, CI lane, release selector, and case order.

Verification

  • Passed all 162 startup cases with the verified packaged runtime, matching the hosted baseline’s case order. Zero skips and clean Docker teardown.
  • Passed typecheck, strict type-delta audit, lint, formatting, workspace checks, and the baseline and full CI manifest audits.

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

clawsweeper Bot commented Nov 12, 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 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR extracts OpenShell startup scenarios into typed helpers and replaces incomplete fixtures with production catalog entries.

Example: Check Codex PAT command composition with initial workspace setup.

  • Before: The JavaScript startup suite constructs an abbreviated credential catalog inline.
  • After: A typed case uses the OpenShell credential catalog while retaining the command, environment, and legacy-command assertions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, source-verified test maintenance with successful exact-head checks; behavioral evidence is principally integration-harness coverage.
Proof confidence 🦐 gold shrimp (3/6) This test-only refactor requires no shipped-entry-point demonstration; the existing harness exercises production Drivers with controlled clients, supported by successful exact-head CI checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes
User problem: Contributors maintain startup coverage whose remaining JavaScript cases lack strict TypeScript checking.
Reason: The maintainer-authored change continues an established refactor, preserves meaningful checks, and uses supported fixture contracts.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored test refactor preserves meaningful coverage, and no actionable defect was found in the introduced changes.

Priority: P3
Reviewed head: 04f15e08f909539bcd4b8bb8cd42b1084f369e7b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The startup suite passes Installation and AgentRevision fixtures through production controller Drivers, then checks captured requests, policy projections, recovery, and runtime behavior using controlled dependencies.

flowchart LR
  A[Startup test entry] --> B[Typed cases and fixtures]
  B --> C[Production controller Drivers]
  C --> D[Controlled Gateway and Kubernetes clients]
  D --> E[Request and lifecycle assertions]
Loading

Technical review

Best possible solution:

Land the typed extraction with the existing startup entry point, independent assertions, and CI selection preserved.

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

This PR refactors existing tests rather than reporting a product failure; source comparison preserves the relevant scenarios and assertions.

Is this the best way to solve the issue?

The extraction follows the established typed-helper pattern and improves fixture fidelity without changing production contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6e5d9d9bc980.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Free Wortley: Raw commit 70de196 adds tests/integration/sandbox-driver-managed-mcp-rules-cases.ts:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 70de1965b2c0; files: tests/integration/sandbox-driver-managed-mcp-rules-cases.ts)
  • Derek Carr: Raw commit dd2b058 adds tests/integration/sandbox-driver-startup.test.mjs:495 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: dd2b05871579; files: tests/integration/sandbox-driver-startup.test.mjs)
  • sallyom: Raw commit 10af5b8 adds tests/integration/sandbox-driver-startup.test.mjs:361 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 10af5b83320f; files: tests/integration/sandbox-driver-startup.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 footprint Production 0; test code +672/-522; TypeScript configuration +3 The net growth adds explicit typing, request narrowing, and realistic catalog fixtures without expanding production machinery.

Labels

Label changes:

  • add P3: This is test maintenance with no introduced user-facing behavior or identified urgent defect.
  • 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 maintenance with no introduced user-facing behavior or identified urgent defect.
  • 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 12, 2026, 8:46 AM ET / 13:46 UTC.

@freeqaz-openai
freeqaz-openai merged commit 9b91c55 into main Nov 12, 2026
65 checks passed
@freeqaz-openai
freeqaz-openai deleted the refactor/openshell-startup-wiring-native-typescript branch November 12, 2026 13:54
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