Skip to content

Type the Plugin Driver conformance suite - #6099

Merged
freeqaz-openai merged 1 commit into
mainfrom
codex/convert-plugin-driver-conformance
Nov 14, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
codex/convert-plugin-driver-conformance

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

What changed

Run the Plugin Driver conformance suite as native TypeScript. The entry keeps all 37 cases in their existing order and groups them by the behavior they exercise. The native catalog cases launch a typed peer over real OS pipes. The closed-input case now checks both the error class and the specific write failure, and the Slack credential case checks the slot ID and label.

The baseline CI selector, duration estimate, and testing guide point to the typed entry. The plugin matrix still links to evidence at its original commit.

Verification

  • The focused baseline lane passed all 37 cases and completed cleanup on Node 24.22.1.
  • The suite, Driver startup, HTTP discovery, and Codex install checks passed 158 cases together. The runtime policy and template checks passed another 113. Both runs had zero skips.
  • Removing each of six behaviors made the corresponding test fail. These covered release digest enforcement, RPC error redaction, forced termination, runtime binary read permission, handling a closed input pipe, and preserving its error class.
  • Type checking, lint, formatting, workspace isolation, documentation, CI selection, and the generated matrix check passed.
  • Before the final error-class assertion, the full local baseline lane reported 3,062 passes, 25 failures, and three skips. All of the failures and skips were in other test files. The converted suite passed all 37 cases in that run.

@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 14, 2026 20:24
@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

Converts the Plugin Driver conformance suite to TypeScript, extracts typed fixtures and case modules, and updates CI and contributor commands.

Example: A contributor runs the Plugin Driver conformance suite.

  • Before: node --test tests/conformance/plugin-driver.test.mjs runs 37 cases.
  • After: node --test tests/conformance/plugin-driver.test.ts registers the same 37 cases in the same order.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-verified test migration with preserved cases, appropriate reported validation, and passing exact-head CI; no local execution was performed.
Proof confidence 🐚 platinum hermit (4/6) This test-only migration requires no shipped-entry-point demonstration; the body reports focused execution and mutation checks, and exact-head CI is successful.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The existing Plugin Driver conformance suite and embedded peer scripts lack strict TypeScript checking.
Reason: The maintainer-authored migration improves type coverage while preserving existing scenarios and production behavior.

Merge readiness

✅ Ready for maintainer review

This PR is useful test maintenance with no actionable findings; keep it open for normal maintainer landing.

Priority: P3
Reviewed head: 19f83da73836d624e24295b483ece9af5bc109f1

Before merge

None.

Findings

None.

Agent review details

How this fits together

The conformance suite supplies plugin selections, configurations, and controlled protocol responses to the bundled Plugin Drivers, then checks their catalog, policy, translation, and process-cleanup behavior.

flowchart LR
  A[CI lane] --> B[Typed test entry]
  B --> C[Policy and translation cases]
  B --> D[Catalog reader cases]
  C --> E[Bundled Plugin Drivers]
  D --> E
  E --> F[Typed protocol peer]
  E --> G[Behavior assertions]
Loading

Technical review

Best possible solution:

Land the focused TypeScript migration with the existing Driver contracts and conformance scenarios preserved.

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

No product bug is claimed; source comparison establishes that current main still uses the JavaScript suite.

Is this the best way to solve the issue?

The migration follows existing test boundaries, retains independent expectations, and replaces generated script strings with a typed protocol fixture without adding production machinery.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Plugin Driver conformance contracts keeps the original intent (a4b3639: Established coverage for Agent-owned plugin configuration and native Plugin Drivers, later expanded for nested policies and managed plugins.)
  • Catalog process failure scenarios keeps the original intent (72eed36: Protected against uncaught closed-pipe errors and catalog children surviving cancellation.)
  • CI parallel registration and duration metadata keeps the original intent (ci(tests): run audited Checks and Conformance files concurrently #1398: Explicitly audited file registration permits bounded concurrent execution; this PR changes the registered filename while preserving that classification.)
  • Documented Driver test command keeps the original intent (7ef59e0: Kept contributor commands aligned with typed Driver lifecycle tests; this PR updates the remaining suite entry.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Applicable repository policy: Read the complete root AGENTS.md; no nested AGENTS.md files were found under the changed directories, and .agents/maintainer-notes does not exist. Applied test-integrity, documentation, and workspace guidance; the requested single-reviewer restriction takes precedence over the bundled review workflow. (AGENTS.md:1, 19f83da73836)
  • Introduced scope and preserved cases: The pinned introduction diff changes tests, test configuration, CI registration, and one documented command. Static comparison confirms identical names and ordering for all 37 cases. (tests/conformance/plugin-driver.test.ts:10, 19f83da73836)
  • Current main still needs the migration: Current main retains plugin-driver.test.mjs with blob 7fd3c75dff3e316cc582c25d07d7193e788f9e10, identical to the introduction base; the typed entry is absent there. (tests/conformance/plugin-driver.test.mjs:1, c068b1aa212a)
  • Protocol and failure coverage: The typed peer preserves the existing controlled child-process scenarios over real OS pipes. The closed-input case additionally requires NotImplementedError and the specific request-write failure message. (tests/conformance/plugin-driver-codex-catalog-reader-cases.ts:84, 19f83da73836)
  • Exact-head CI: GitHub reports successful CI Required, Checks and Conformance 2, and Suite Audit and Static Checks for the reviewed head; the conformance job metadata confirms successful execution. Its log download redirects to a blocked storage host, so detailed logs were not inspected. (19f83da73836)
  • Related migrations have distinct scope: Type plugin discovery integration and conformance tests #5649 migrated hosted catalog and saved-Agent discovery coverage, while Migrate plugin discovery API integration tests to TypeScript #5983 migrated the discovery API suite; neither replaces this conformance migration.

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
Conformance case preservation 37 → 37, identical order Static comparison verifies that splitting the suite retains every named case.
Production code changes 0 lines The added code belongs to test cases and fixtures; registration and documentation changes support the migration.

Labels

Label changes:

  • add P3: This is test-maintenance work with no production behavior or public contract change.
  • 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 no production behavior or public contract change.
  • 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, 3:38 PM ET / 20:38 UTC.

@freeqaz-openai
freeqaz-openai merged commit fe5455a into main Nov 14, 2026
63 checks passed
@freeqaz-openai
freeqaz-openai deleted the codex/convert-plugin-driver-conformance branch November 14, 2026 20:41
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