Skip to content

feat(adapters): model evidence-backed capability states - #141

Merged
ScriptedAlchemy merged 1 commit into
mainfrom
wave2/100-capability-states
Sep 1, 2026
Merged

feat(adapters): model evidence-backed capability states#141
ScriptedAlchemy merged 1 commit into
mainfrom
wave2/100-capability-states

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • promote the shared four-state CapabilityState contract into core while preserving route re-exports
  • migrate portable, Codex, Claude, Cursor, and plugin adapters to pinned evidence-backed states
  • preserve TargetRegistry.supports() as a supported-only Boolean compatibility view and encode composite precedence/evidence merging
  • add a minor changeset for the public TargetAdapter.capabilities contract change

Test plan

  • adapter contract/unit fixtures: 39 passed
  • host, plugin, MCP/hook, and all-example artifact fixtures: 50 passed
  • pnpm typecheck
  • scoped rslint (0 findings)

Implements #100 stage 1.

Promote the shared four-state contract into core and preserve existing callers through a derived Boolean registry view.
@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1030d00

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 Minor

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 c9206d0 into main Sep 1, 2026
8 of 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-01T06:48:41.197329Z 1030d00 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 wave2/100-capability-states branch September 1, 2026 06:45

@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: 1030d00cc8

ℹ️ 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 thread packages/agent-bundle/src/adapters/capability-state.ts
ScriptedAlchemy added a commit that referenced this pull request Sep 1, 2026
Cursor's 64-character plugin-name bound was only enforced by the unified
`plugin` planner, so the standalone `cursor` target accepted and emitted a
manifest for an over-long name. The pinned official schema
(cursor/plugins@0701892) constrains the name's charset but carries no
maxLength, so both planners now assert the bound through one shared message.

The capability-state exhaustive `default` branches returned the capability
object itself, so an untyped adapter's misspelled state read as truthy support
and could enable hooks or MCP. They now raise a typed CapabilityStateError,
and the registry rejects a malformed declaration at registration so a bad
state never reaches `supports()` or capability intersection.
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