Skip to content

[self-repair:e3f04affd36f] [prompt-defect] validate-setup.ps1 leaks True/False to console from Check-FileExists return values #233

Description

@srnichols

Class\n\nprompt-defect\n\n## Symptom\n\nRunning pforge check / validate-setup.ps1 prints a stray True or False line after each file check (e.g. after every PASS line in Required files and Optional files sections). The Check-FileExists function returns $true/$false, but all 20 call sites invoke it as bare statements without capturing or suppressing the return value, so PowerShell writes the booleans to the success output stream and they appear interleaved in the validator output.\n\n## Workaround Applied\n\nRemoved the unused return $true / return $false statements from Check-FileExists in the local copy (changed to bare return). Verified the stray boolean lines are gone and validation still passes (15 passed, 0 failed, 7 warnings). Note: validate-setup.ps1 is part of the Plan Forge distribution and the local fix is overwritten on the next pforge self-update, so the fix needs to land upstream.\n\n## Files\n\n- validate-setup.ps1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions