Skip to content

fix(claude): harden adapter declaration planning - #321

Merged
ScriptedAlchemy merged 12 commits into
mainfrom
fix/review-batch2-claude-adapter
Sep 3, 2026
Merged

fix(claude): harden adapter declaration planning#321
ScriptedAlchemy merged 12 commits into
mainfrom
fix/review-batch2-claude-adapter

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • expand monitor path tokens and validate documented theme presets, dependency ranges/resolution, channel option paths, and Unicode relevance topics
  • report Claude install-scope support from the scoped installer implementation
  • bump the Claude adapter revision to 1.17.0, re-pin the theme schema hash, and add a patch changeset

Test plan

  • pnpm build
  • Claude host-adapter regression suite (218 tests)
  • adapter capability and metadata suites (39 tests)
  • scoped strict native Claude proofs for themes/monitors, channels, and dependencies
  • pnpm typecheck
  • pnpm lint

Validate and lower Claude declarations before they can ship unresolved or host-invalid configuration.
@changeset-bot

changeset-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f89f461

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

@pkg-pr-new

pkg-pr-new Bot commented Sep 2, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle@321
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/create-agent-bundle@321
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/@agent-bundle/runtime@321

commit: f89f461

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6fe79466e9

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +709 to +714
if (!emittedMarketplacePluginNames.has(entry)) {
diagnostics.push(dependencyDiagnostic(
'claude.dependencies.unresolved',
`Claude dependency ${JSON.stringify(entry)} has no marketplace, but the generated marketplace does not emit a plugin with that name.`,
'Declare the marketplace that provides this plugin, or remove the dependency; bare names resolve only within the generated marketplace.',
));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update all bare-dependency regression fixtures

When the full unit suite reaches a non-self bare dependency, this new branch reports claude.dependencies.unresolved because emittedMarketplacePluginNames contains only the generated plugin's own name. However, packages/agent-bundle/tests/api.test.ts:265-279 and packages/agent-bundle/tests/plugin-bundle.test.ts:623-637 still declare bare audit-logger dependencies and expect no diagnostics plus manifest emission, so pnpm test:unit will fail even though the narrowed Claude adapter suite was updated. Update those remaining fixtures/expectations to the new marketplace-qualified contract, or retain the prior behavior.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already addressed before this PR merged: commit 53bc86f ("test(claude): qualify unified dependency fixture") on this branch updated both fixtures to the marketplace-qualified contract. Verified on current main: tests/api.test.ts (lines 321–336) and tests/plugin-bundle.test.ts (lines 624–637) declare { marketplace: 'acme-shared', name: 'audit-logger' } / policy-kit, and pnpm test:unit passes in CI on #397 (d25a9c6).

@chatgpt-codex-connector

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-02T22:37:35.841457Z 6fe7946 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.

Keep the unified target proof aligned with emitted-marketplace dependency resolution.
Validate and lower Claude declarations before they can ship unresolved or host-invalid configuration.
Keep the unified target proof aligned with emitted-marketplace dependency resolution.
Keep packed-consumer validation aligned with the newly merged Codex validator while retaining failure checks.
Keep dependency, host-validation, and project-status proofs current with the merged compiler surfaces.
Resolve the shared project-status expectation in favor of the updated main-branch contract.
Keep the Runtime restart leak proof relative to server-owned subscriptions as the server adds streams.
Retain main's stronger two-host packed validation proof while integrating concurrent build fixes.
Keep artifact-only CLI validation aligned with the newly merged opt-out flag.
Use main's exact two-subscription runtime baseline from the merged integration fixture alignment.
@ScriptedAlchemy
ScriptedAlchemy merged commit 6f63ab2 into main Sep 3, 2026
9 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the fix/review-batch2-claude-adapter 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