Skip to content

tools: render required capabilities in the step reference (#347) - #349

Merged
blindzero merged 2 commits into
mainfrom
fix/347-step-reference-capabilities
Nov 1, 2026
Merged

blindzero merged 2 commits into
mainfrom
fix/347-step-reference-capabilities

Conversation

@blindzero

Copy link
Copy Markdown
Owner

Summary

The step reference generator never rendered a step's required capabilities. Get-IdleStepRequiredCapabilities prefixed the already-qualified step type with IdLE.Step., so the catalog lookup (IdLE.Step.IdLE.Step.DisableIdentity) never matched and returned @().

  • Look up $catalog[$StepType] directly (same as Get-IdleStepWithKeyRows).
  • Regenerate docs/reference/steps/*: 15 step pages now list their RequiredCapabilities (EmitEvent declares none).
  • Add tests/Packaging/Generate-IdleStepReference.Tests.ps1: runs the generator in a separate pwsh process (it re-imports all IdLE modules) and checks every step with declared RequiredCapabilities in the step packs' StepMetadataCatalog.psd1 against its generated page. A guard test fails if no such steps are discovered.

Testing

  • New test fails against the old lookup (15/16 failed) and passes with the fix.
  • ./tools/Invoke-IdlePesterTests.ps1: 1019 passed, 0 failed.
  • ./tools/Invoke-IdleScriptAnalyzer.ps1: no findings.

Closes #347

🤖 Generated with Claude Code

blindzero and others added 2 commits November 1, 2026 13:16
…ce generator (#347)

Get-IdleStepRequiredCapabilities prefixed the already-qualified step type with
'IdLE.Step.', so the catalog lookup never matched and no step page listed its
required capabilities. Add a test that runs the generator and checks every
step with declared RequiredCapabilities against its generated page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 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-11-01T12:18:33.414150Z 3069d39 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.

@claude

claude Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Verdict: PASS

The one-line lookup fix is correct, the regenerated references match the generator output, and the new regression test covers the bug.

No findings.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Code Coverage Report

Overall Project 77.19% 🍏

There is no coverage information present for the Files changed

@blindzero blindzero self-assigned this Nov 1, 2026
@blindzero
blindzero merged commit 826fef0 into main Nov 1, 2026
9 checks passed
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.

Step reference generator does not render required capabilities

1 participant