Repository navigation
core: register step pack handlers via StepMetadataCatalog - #339
Merged
blindzero merged 2 commits intoOct 31, 2026
Merged
Conversation
Step packs declare their step handlers with the new `Handler` key in
StepMetadataCatalog.psd1 and are discovered via the manifest marker
PrivateData.IdLE = @{ Kind = 'StepPack'; StepCatalog = '...' }.
Custom step modules no longer need Providers.StepRegistry.
- Handler names are bound to the declaring module; handlers from other
modules, non-string handlers, and StepCatalog paths outside the module
folder are rejected.
- Providers.StepMetadata must not declare Handler (use StepRegistry).
- Providers.StepRegistry still takes precedence over catalog handlers.
- First-party step packs migrated; the hardcoded built-in list in
Get-IdleStepRegistry is removed.
- Name-based discovery (IdLE.Steps.* + Get-IdleStepMetadataCatalog)
remains as deprecated fallback until #322.
- Step reference generator reads handlers from the catalogs.
- CONTRIBUTING/CLAUDE.md: unify branch naming prefixes.
Closes #292
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code Coverage Report
|
Contributor
|
Verdict: PASS Handler registration via Findings: none (CRITICAL/MAJOR/MINOR). I did not run the tests. 🤖 Generated with Claude Code |
6 of 13 tasks
blindzero
deleted the
feature/292-step-handler-registration-via-catalog
branch
October 31, 2026 19:55
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.
Summary
Step packs now declare their step handlers with a
Handlerkey inStepMetadataCatalog.psd1. The engine discovers step packs through a manifest marker and registers the handlers itself, so custom step modules no longer needProviders.StepRegistry.Motivation
Custom step modules had no clean way to register their handlers (#292). Every caller had to repeat the
StepRegistrymapping and with it an implementation detail. Built-in handlers were maintained twice: as a hardcoded list inGet-IdleStepRegistryand in the catalogs.Type of Change
Changes
PrivateData.IdLE = @{ Kind = 'StepPack'; StepCatalog = 'StepMetadataCatalog.psd1' }. The engine reads the catalog itself, and the path must be inside the module folder. Name-based discovery (IdLE.Steps.*+Get-IdleStepMetadataCatalog) remains as a deprecated fallback until Identifier namespaces: reserveIdLE.for first-party, require{Owner}.IdLE.*for extensions #322.Handlerkey (optional, string):Module\Function).Providers.StepRegistrystill takes precedence over catalog handlers.HandlerinProviders.StepMetadatais rejected; host steps keep usingStepRegistry.Handler. The hardcoded list inGet-IdleStepRegistryis removed.Handlerentries. Generated output is unchanged.docs/extend/steps.md.CONTRIBUTING.md;CLAUDE.mdnow points there.Testing
New file
tests/Core/StepPackHandlerRegistration.Tests.ps1(9 tests). It creates a third-party step pack (Contoso.IdLE.Steps.Hr) on disk that is discovered only through the marker. Covered:StepRegistryStepRegistryoverrides the catalog handlerStepCatalogoutside the module and a missing file are rejectedHandlerin hostStepMetadatais rejectedFull local suite: 895 passed, 2 failed. Both failures come from localized error messages under a German locale and pass under en-US. PSScriptAnalyzer: 0 errors. The 17 warnings are identical to
main, all in files not touched here.How to test & review
pwsh -NoProfile -File ./tools/Invoke-IdlePesterTests.ps1pwsh -NoProfile -File ./tools/Generate-IdleStepReference.ps1should leavedocs/reference/unchanged.Checklist
Related Issues
Prepares #322 (namespaces, removal of name-based discovery) and #324.
Closes #292
🤖 Generated with Claude Code