Skip to content

Analyze PowerShell pipeline callback regions - #108

Merged
Aaronontheweb merged 1 commit into
devfrom
feature/v03-pwsh-pipeline-regions
Aug 8, 2026
Merged

Analyze PowerShell pipeline callback regions#108
Aaronontheweb merged 1 commit into
devfrom
feature/v03-pwsh-pipeline-regions

Conversation

@Aaronontheweb

@Aaronontheweb Aaronontheweb commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • type ForEach-Object Begin, Process, RemainingScripts, and End plus Where-Object FilterScript execution regions while preserving authored projection order
  • analyze semantic phase order and distinguish standalone, first-stage, upstream-pipeline, and explicit InputObject cardinality
  • conservatively join zero-or-more callback effects and withhold stale facts when stateful pipeline stages can interleave
  • pin callback, direct dot-source and call-operator, common-parameter writer, and live PowerShell behaviors

Security model

PowerShell pipeline stages can interleave per object. When multiple stateful stages are present, callback and direct-region bodies do not publish exact variable, command-resolution, or cwd facts that a downstream stage could invalidate between upstream visits. Unsupported or unproved receiver shapes remain unknown or incomplete.

Validation

  • dotnet build -c Release: 0 warnings
  • dotnet test -c Release --no-build: 2,110 passed
  • file-header verification passed
  • strict OpenSpec validation passed
  • Slopwatch strict scan passed with zero findings
  • adversarial review GO on frozen staged SHA-256 a641846dc2fb282e6598056c150d2f3807a64a91322a7ed1eb4aaa7691053c62

@Aaronontheweb
Aaronontheweb enabled auto-merge (squash) August 8, 2026 00:11
@Aaronontheweb
Aaronontheweb merged commit 4251496 into dev Aug 8, 2026
2 checks passed
@Aaronontheweb
Aaronontheweb deleted the feature/v03-pwsh-pipeline-regions branch August 8, 2026 00:13
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.

1 participant