Skip to content

Conversation

@grypez
Copy link
Contributor

@grypez grypez commented Dec 2, 2025

Closes: #649

This PR adds the makeDiscoverableExo constructor, which associates to a capability interface the sort of descriptive metadata needed by @ocap/kernel-agents to perform agentic capability composition.


Note

Adds makeDiscoverableExo with method schemas and an agent discover utility that converts discoverable exos into capability records, updating schemas/exports, tests, and examples.

  • Kernel Utils (@metamask/kernel-utils):
    • Discoverable Exos: Add makeDiscoverableExo and DiscoverableExo in src/discoverable.ts with runtime describe() for method schemas; export via src/index.ts and new exports./discoverable entry.
    • Schema Types: Add src/schema.ts defining JsonSchema (with items) and MethodSchema; re-export types.
    • Tests: Add src/discoverable.test.ts; update src/index.test.ts to include new exports.
  • Kernel Agents (@ocap/kernel-agents):
    • Discovery Capability: Add src/capabilities/discover.ts that introspects a DiscoverableExo via E(...).describe() and builds a CapabilityRecord; export discover from src/index.ts.
    • Schema Alignment: Update example capabilities (examples.ts, math.ts) to use items in array schemas.
    • Deps: Add @endo/eventual-send and reference updates.
    • Tests: Update src/index.test.ts to expect discover export.
  • Kernel Test:
    • Vat Example: Add src/vats/discoverable-capability-vat.js demonstrating a calculator discoverable exo; update TS project references.
  • Tooling: Adjust coverage thresholds in vitest.config.ts.

Written by Cursor Bugbot for commit 0b33f7e. This will update automatically on new commits. Configure here.

@grypez grypez changed the base branch from main to grypez/klmsq December 17, 2025 17:17
Base automatically changed from grypez/klmsq to main December 18, 2025 13:17
@grypez grypez marked this pull request as ready for review December 18, 2025 17:59
@grypez grypez requested a review from a team as a code owner December 18, 2025 17:59
Copy link
Contributor

@sirtimid sirtimid left a comment

Choose a reason for hiding this comment

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

LGTM!

@grypez grypez merged commit 1c5bb4d into main Dec 19, 2025
26 checks passed
@grypez grypez deleted the grypez/exo-disc branch December 19, 2025 20:35
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.

Add kernel agents

3 participants