Skip to content

fix(validate): fail strict validation on Claude probe failures and resolve plugin paths (#193 follow-ups) - #215

Merged
ScriptedAlchemy merged 1 commit into
mainfrom
fix/pr193-followups
Sep 1, 2026
Merged

fix(validate): fail strict validation on Claude probe failures and resolve plugin paths (#193 follow-ups)#215
ScriptedAlchemy merged 1 commit into
mainfrom
fix/pr193-followups

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

Addresses the two unresolved P2 Codex findings on #193 in claude-plugin-validation.ts:

  • Resolve relative plugin paths before changing cwd (:93): options.pluginDirectory is resolved to an absolute path up front; the child cwd and the plugin validate argument both derive from it, so a multi-segment relative path like fixtures/plugin no longer double-resolves as fixtures/fixtures/plugin.
  • Fail validation when the version probe fails (:97): a probe that times out, exceeds the output limit, exits nonzero, or fails to spawn for any reason other than ENOENT now returns status failed with an AB6022 error (with a probe-specific recovery hint), so validate --artifact --strict no longer exits successfully when host validation never ran. Only a genuinely missing executable (ENOENT) keeps the informational AB6019 / unavailable result.

Tests

New cases: probe timeout, nonzero exit, output-limit, and non-ENOENT spawn error each → failed + AB6022; ENOENT stays unavailable + AB6019; multi-segment relative directory asserts absolute args and correct cwd via the injectable run seam.

Gates: scoped rstest (claude-plugin-validation + artifact-validator), pnpm typecheck, pnpm lint — all green.

@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fe9f381

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
agent-bundle Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ScriptedAlchemy
ScriptedAlchemy merged commit 8315637 into main Sep 1, 2026
9 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T21:35:45.283839Z fe9f381 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ScriptedAlchemy
ScriptedAlchemy deleted the fix/pr193-followups branch September 3, 2026 05:27
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