Repository navigation
Discover analytic functions and steps from installed packages (ISSUE-172) - #519
Merged
Merged
Conversation
…172) Packages register into the analytic registry through the pyegeria.analytics entry-point group (trellis.analytics read as an alias during the library split). Entry points are read lazily on first use of the registry and cached; refresh_analytic_functions() forgets them. Only manifests load then; a function's module is imported on its first run. A broken entry point, or one clashing with a built-in name, is reported by analytic_entry_point_errors() and never blocks the rest. Claude-Session: https://claude.ai/code/session_015pdMuPkqttD1yKAKJLS9Fc Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…-points Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com> # Conflicts: # PYEGERIA_ISSUES.md
…-points Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com> # Conflicts: # PYEGERIA_ISSUES.md
dwolfson
added a commit
that referenced
this pull request
Oct 31, 2026
ISSUE-168 was released in 6.2.16 (#513) but still read "not merged"; ISSUE-169..172 are merged (#516..#519) and ship in 6.2.17. Their statuses now say so, the five entries move to Fixed / Resolved, and the open-items index and at-a-glance count (now 2: ISSUE-155, 150) match. No entry's content changed beyond its status line. Claude-Session: https://claude.ai/code/session_015pdMuPkqttD1yKAKJLS9Fc Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
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.
Installed packages can now register analytic functions and steps by installing (
pyegeria/view/analytic_registry.py), per the Architect's library-split design (LS1: the entry-point group and manifest loader belong in pyegeria):pyegeria.analytics, with trellis-analytics'trellis.analyticsread as an alias during the split. An entry point names anAnalyticFunctionSpec(or subclass), a list of them, or a callable returning either; routines and steps (kind) alike.get_analytic_registry()call and cached;refresh_analytic_functions()forgets the cache. Only manifests load then; a function's module is imported on its first run by the resolver.analytic_entry_point_errors()(alsoanalytic_registry_payload()["entry_point_errors"]) and logged at WARNING; it never blocks the rest. The same manifest under both groups is not a clash.Checked in trellis's venv: both installed entry points (
context_pack,curation_coverage) are discovered with no errors, and trellis'sdiscovery.register()then adds nothing, harmlessly.Tests:
tests/micro-tests/test_issue_172_analytic_entry_points.py(8 tests: both groups, lazy and read once, no function-module import, broken entry point, wrong type, built-in clash, duplicate across groups, trellis register compatibility). All micro-tests pass.Note: this is one of four related PRs (ISSUE-169..172). Each adds an entry near the top of
PYEGERIA_ISSUES.md, so whichever merges later needs a trivial conflict resolution there.🤖 Generated with Claude Code
https://claude.ai/code/session_015pdMuPkqttD1yKAKJLS9Fc