Enforced · Shipped
PSScriptAnalyzer
Static analysis in the loop — and hallucination made detectable.
The enforcement layer
PSScriptAnalyzer parses without executing, so it is safe to run automatically. The verification loop runs it over generated code and feeds violations back by rule name and line.
The novel piece
The surface validator walks the AST and resolves every command and parameter against your real installed modules, rejecting anything invented. Shipped standalone as Test-PSESurface, it makes hallucination detectable for any model, frontier ones included.