You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**THEN** the loop structure and body command may remain visible
203
+
-**THEN** the body occurrence is incomplete rather than assuming `$f` is an ordinary string binding
204
+
205
+
#### Scenario: Isolated no-profile runspace permits an ordinary binding proof
206
+
-**WHEN** the caller selects `IsolatedNonInteractiveNoProfile` for a newly spawned constrained host and parses `foreach ($f in @('a','b')) { Write-Output $f }`
207
+
-**THEN** the bounded analyzer may publish the finite string domain `a`, `b`
208
+
209
+
#### Scenario: Typed or read-only ambient binding is not erased by syntax
210
+
-**WHEN** a reused runspace already contains `[int]$f` or a read-only `$f` and parses a loop that assigns string values
211
+
-**THEN** default-mode analysis does not claim the authored strings are the effective loop values
212
+
-**THEN** selecting isolated mode for that reused runspace would violate the caller contract
213
+
214
+
#### Scenario: Child host does not inherit the parent's assertion
215
+
-**WHEN** isolated-mode PowerShell parses a supported `pwsh -NoProfile -Command` child containing a `foreach`
216
+
-**THEN** the child receives `Unknown` initial state unless the child invocation independently proves the complete constrained-host environment
217
+
-**THEN**`-NoProfile` by itself does not prove the inherited environment or module baseline
218
+
219
+
#### Scenario: Current-runspace evaluation shares state
220
+
-**WHEN** a supported `$()` or static `Invoke-Expression` region mutates a loop-relevant binding or command-resolution fact
221
+
-**THEN** every later observing occurrence is joined with or downgraded to the resulting conservative state
222
+
171
223
### Requirement: Shell values use explicit proof domains
172
224
The analysis SHALL classify a policy-relevant shell value as exact, finite,
173
225
bounded symbolic pattern, or unknown, and SHALL NOT present a weaker proof as a
0 commit comments