Skip to content

Analyze local Invoke-Command regions - #109

Merged
Aaronontheweb merged 2 commits into
devfrom
feature/v03-pwsh-invoke-command-regions
Aug 8, 2026
Merged

Analyze local Invoke-Command regions#109
Aaronontheweb merged 2 commits into
devfrom
feature/v03-pwsh-invoke-command-regions

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Owner

Summary

  • promote proved in-process Invoke-Command script blocks to synchronous, once execution regions
  • distinguish default child variable and command scope from NoNewScope shared state while preserving failure-aware shared location
  • evaluate literal NoNewScope switch truth and keep remote, job, dynamic, and ambiguous forms unknown or incomplete
  • withhold stale region-body facts when downstream pipeline setup or per-object execution can mutate supported state

Security model

The analyzer joins restored body success and failure exits before projecting local Invoke-Command host flow, because inner nonterminating failures can leave the host successful. Pipeline-sensitive bodies for callbacks, local Invoke, Measure, Trace, dot-source, and direct-call start from unknown state when another stateful stage can affect them. Unsupported parameter sets remain fail closed.

Validation

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

@Aaronontheweb
Aaronontheweb enabled auto-merge (squash) August 8, 2026 00:38
@Aaronontheweb
Aaronontheweb merged commit fa1d441 into dev Aug 8, 2026
2 checks passed
@Aaronontheweb
Aaronontheweb deleted the feature/v03-pwsh-invoke-command-regions branch August 8, 2026 00:51
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