Skip to content

Analyze New-Module initialization regions - #110

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

Analyze New-Module initialization regions#110
Aaronontheweb merged 1 commit into
devfrom
feature/v03-pwsh-new-module-regions

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Owner

Adds the bounded PowerShell New-Module execution-region state slice for the accepted v0.3 OpenSpec.

New-Module script blocks are analyzed as synchronous once-only initialization from caller state in a child module scope. Ordinary child bindings are restored, location outcomes are shared, and exported command identities invalidate later unqualified commands. Common variable-writing parameters are applied before the module body, including conservative command-resolution invalidation for preference-variable targets. Canonical, alias, and supported module-qualified forms share the same mutation identity.

Security regressions cover common writer families, module-autoload preference changes, module-qualified Function-provider exports, pipeline interleaving, shared location, host outcome joins, and child-scope isolation. Live PowerShell probes cover ReturnResult, writer initialization, pipeline staging, scope, aliases, and location behavior.

Validation: Release build clean; 2,142 tests pass; header verification; strict OpenSpec validation; Slopwatch zero issues. Adversarial review GO on staged SHA-256 3e1b7b9a62631db9a604f32308a87a71bb156ffec5f424d6825a4c7c62373247 after three concrete blocker/fix/review cycles.

@Aaronontheweb
Aaronontheweb enabled auto-merge (squash) August 8, 2026 01:25
@Aaronontheweb
Aaronontheweb merged commit 6efd793 into dev Aug 8, 2026
2 checks passed
@Aaronontheweb
Aaronontheweb deleted the feature/v03-pwsh-new-module-regions branch August 8, 2026 01:27
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