Skip to content

Promote PowerShell value and state analysis - #133

Merged
Aaronontheweb merged 1 commit into
devfrom
corpus/v03-pwsh-value-promotions
Aug 9, 2026
Merged

Promote PowerShell value and state analysis#133
Aaronontheweb merged 1 commit into
devfrom
corpus/v03-pwsh-value-promotions

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Owner

Summary

  • promote PowerShell value and state analysis across command identity, cwd, HOME/environment values, redirects, aliases, scripts, execution regions, and decoded child hosts
  • require an explicit constrained initial-state assertion before command binding can become authorization proof, while preserving v0.2 compatibility leaves
  • keep unproved identities and state fail-closed; unknown-receiver non-pipeline bodies remain visible and incomplete, while unproved interior pipelines fail atomically
  • preserve cmdlet/native binding provenance through static current-scope Invoke-Expression cloning without leaking that proof into isolated child hosts
  • expand the generated PowerShell corpus from 422 to 491 entries and synchronize the canonical spec, OpenSpec, implementation plan, project context, and consumer guide

Security boundaries

  • PowerShell aliases may shadow built-ins and path-shaped names
  • decoded pwsh children do not inherit the parent runspace's constrained-state assertion
  • uncontrolled child profiles do not inherit exact HOME or USERPROFILE facts
  • uninspected scripts and unproved invocations invalidate following observable authorization state
  • partial pipeline authorization remains prohibited

Validation

  • adversarial review: PASS
  • dotnet build -c Release: clean, 0 warnings
  • dotnet test -c Release --no-build: 2,765/2,765
  • projection tests: 211/211
  • corpus, design corpus, PII audit, and PowerShell oracle: 791/791
  • public API snapshots: 40/40
  • exact 491-entry corpus regeneration: clean
  • openspec validate v0-3-structured-shell-analysis --strict: valid
  • header verification: clean
  • Slopwatch: 0 findings
  • git diff --check: clean

@Aaronontheweb
Aaronontheweb enabled auto-merge (squash) August 9, 2026 14:57
@Aaronontheweb
Aaronontheweb merged commit 86d4c0c into dev Aug 9, 2026
2 checks passed
@Aaronontheweb
Aaronontheweb deleted the corpus/v03-pwsh-value-promotions branch August 9, 2026 15:00
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