refactor(kernel-utils): rename describe() to __getDescription__() d…#869
Merged
refactor(kernel-utils): rename describe() to __getDescription__() d…#869
describe() to __getDescription__() d…#869Conversation
Contributor
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
…()\` dunder Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4184513 to
03f6113
Compare
describe() to __getDescription__() d…describe() to __getDescription__() d…
sirtimid
approved these changes
Mar 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aligns discoverable exo introspection with the existing dunder convention (
__getInterfaceGuard__,__getMethodNames__) established by@endo/exo. Changes the conventional invocation for (alleged) object semantics to theGET_DESCRIPTIONsymbol, withE(obj)[GET_DESCRIPTION]()defaulting toE(obj).__getDescription__()in alignment with existing exo and captp conventions.Note
Medium Risk
This is an API-breaking rename of the discoverable introspection method, which can break any callers still using
describe()and affects capability discovery at runtime. Scope is small and localized, but touches cross-package exo discovery behavior.Overview
Updates discoverable exo introspection to use a dunder method:
makeDiscoverableExonow exposes schema viaexo[GET_DESCRIPTION]()(whereGET_DESCRIPTIONis__getDescription__) instead ofexo.describe().Kernel agents’ capability discovery is updated to call
E(exo)[GET_DESCRIPTION]()and kernel-utils tests/exports are adjusted accordingly, including the reserved-name collision check and error message to match the new method name.Written by Cursor Bugbot for commit 7fe44c5. This will update automatically on new commits. Configure here.