Skip to content

Analyze synchronous PowerShell command regions - #107

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

Analyze synchronous PowerShell command regions#107
Aaronontheweb merged 1 commit into
devfrom
feature/v03-pwsh-callback-regions

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Owner

Summary

  • promote Measure-Command -Expression and Trace-Command -Expression script blocks into typed synchronous/once Main execution regions
  • bind receiver identity against incoming state, downgrade after observed command-resolution mutation, and retain proof for reviewed module-qualified identities
  • propagate current-scope state conservatively across host failure partitions, loop visits, pipelines, and nested direct-call boundaries
  • admit version-pinned module-qualified receiver forms only after body visibility is guaranteed
  • add focused structural regressions and live PowerShell 7 oracle coverage

Validation

  • dotnet build -c Release (0 warnings)
  • dotnet test -c Release --no-build (2,097 passed)
  • pwsh ./scripts/Add-FileHeaders.ps1 -Verify
  • openspec validate v0-3-structured-shell-analysis --strict
  • slopwatch analyze -d . --no-baseline --fail-on warning
  • git diff --check

Adversarial review

Exact staged patch e6483cd6eb4ab1177399c451eb5a0d4114899a356b81229fc3174941130e2871 received GO after fixing and regression-testing unknown nested-region escape through direct child scope.

@Aaronontheweb
Aaronontheweb enabled auto-merge (squash) August 7, 2026 23:42
@Aaronontheweb
Aaronontheweb merged commit da50897 into dev Aug 7, 2026
2 checks passed
@Aaronontheweb
Aaronontheweb deleted the feature/v03-pwsh-callback-regions branch August 7, 2026 23:44
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