Skip to content

Fix precondition plan-time warning visibility and resolve PSSA CI alerts#246

Merged
blindzero merged 4 commits intocodex/create-task-branch-for-codex-merge-conflictfrom
copilot/sub-pr-242-another-one
Feb 27, 2026
Merged

Fix precondition plan-time warning visibility and resolve PSSA CI alerts#246
blindzero merged 4 commits intocodex/create-task-branch-for-codex-merge-conflictfrom
copilot/sub-pr-242-another-one

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 27, 2026

  • Understand precondition warning issue and add Write-Warning
  • Fix PSUseApprovedVerbs: rename Normalize- → Format-
  • Fix PSUseConsistentWhitespace/Indentation with Invoke-Formatter
  • Fix EnsureMailboxPermissions indentation (re-run formatter cleanly, 0 violations)
  • Fix Invoke-IdlePlanObject.ps1 line 121 continuation indentation
  • Update test BeforeAll variable name and comment for consistent terminology
  • All 687 tests pass; 0 violations for PSUseApprovedVerbs, PSUseConsistentWhitespace, PSUseConsistentIndentation, PSAvoidUsingEmptyCatchBlock

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

- Add Write-Warning to Assert-IdleConditionPathsResolvable so missing
  Request.Context.* paths in preconditions emit a visible terminal warning
  during New-IdlePlan in addition to being stored in plan.Warnings
- Rename Normalize-IdleExchangeOnlineAutoReplyMessage to
  Format-IdleExchangeOnlineAutoReplyMessage (PSUseApprovedVerbs)
- Apply Invoke-Formatter to fix PSUseConsistentWhitespace and
  PSUseConsistentIndentation across 7 source files

Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
Copilot AI changed the title [WIP] Reintegrate preconditions DSL branch and restore warning propagation Fix precondition plan-time warning visibility and resolve PSSA CI alerts Feb 27, 2026
@blindzero blindzero marked this pull request as ready for review February 27, 2026 16:47
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves operator feedback during plan-time precondition evaluation and cleans up PowerShell Script Analyzer (PSSA) violations across core/provider code to keep CI/code scanning clean.

Changes:

  • Emit a visible Write-Warning when precondition evaluation encounters plan-time-unresolvable Request.Context.* paths (while still recording the warning in plan.Warnings).
  • Rename the Exchange Online private helper to an approved verb (Normalize-*Format-*) and update call sites + tests.
  • Apply formatting/whitespace fixes across multiple scripts to address PSSA indentation/whitespace rules.

Reviewed changes

Copilot reviewed 4 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/Providers/ExchangeOnlineProvider.Tests.ps1 Updates tests to call the renamed Format-IdleExchangeOnlineAutoReplyMessage.
src/IdLE.Provider.ExchangeOnline/Public/New-IdleExchangeOnlineProvider.ps1 Updates Out-of-Office idempotency comparison to use the renamed formatting helper; includes large formatter-driven indentation changes.
src/IdLE.Provider.ExchangeOnline/Private/Format-IdleExchangeOnlineAutoReplyMessage.ps1 Renames the private helper function and updates help examples accordingly.
src/IdLE.Provider.AD/Private/New-IdleADAdapter.ps1 Formatter-driven whitespace/indentation cleanup.
src/IdLE.Provider.AD/Private/Get-IdleADAttributeContract.ps1 Formatter-driven whitespace/indentation cleanup in contract hashtables.
src/IdLE.Core/Public/New-IdleRequestObject.ps1 Formatter-driven alignment cleanup.
src/IdLE.Core/Public/New-IdleAuthSessionBroker.ps1 Formatter-driven indentation cleanup in error detail construction.
src/IdLE.Core/Public/Invoke-IdlePlanObject.ps1 Formatter-driven whitespace/indentation cleanup in a few expressions.
src/IdLE.Core/Private/Get-IdleReadOnlyCapabilities.ps1 Minor switch formatting cleanup.
src/IdLE.Core/Private/Assert-IdleConditionPathsResolvable.ps1 Adds host-visible Write-Warning for plan-time soft-missing Request.Context.* precondition paths and simplifies warning construction.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Code Coverage Report

Overall Project 73.99% 🍏

There is no coverage information present for the Files changed

- Re-apply Invoke-Formatter to New-IdleExchangeOnlineProvider.ps1 to
  produce zero PSUseConsistentIndentation violations (fixes #2865282671)
- Fix Invoke-IdlePlanObject.ps1 line 121 continuation indent to match
  formatter expectation (no extra 4 spaces on the -or continuation)
- Update ExchangeOnlineProvider.Tests.ps1 BeforeAll: rename variable
  $normalizeFunctionPath -> $formatHelperPath to match file name,
  and clarify comment with consistent normalization/format terminology

Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
@blindzero blindzero merged commit 1fefe8c into codex/create-task-branch-for-codex-merge-conflict Feb 27, 2026
5 checks passed
@blindzero blindzero deleted the copilot/sub-pr-242-another-one branch February 27, 2026 20:03
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.

3 participants