fix(comfyui): stop -WhatIf from reporting a converged host as empty #885
No reviewers
Labels
No labels
burndown-2026-06
burndown-2026-08
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/advocate
role/director
role/exec
role/frontend
role/gamedev
role/human
role/platform
role/qa
role/science
role/sysadmin
state
ambient
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/infrastructure!885
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/comfyui-whatif-verification"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
just windows-comfyui-converge -WhatIfreported a fully convergedkai-tower-3026as completely empty, planning 56.42 GiB of downloads that were already on disk and byte-for-byte correct.Get-FileHashreturns nothing when-WhatIfbinds at the top level of aSupportsShouldProcessscript, soTest-Sha256compared$nullagainst the pin and every model failed verification. Beyond the misleading preview, the preflight gate sizes$requiredFreeBytesfrom that phantom bundle, so a converged host with under about 56 GiB free could not preview its own state at all.How
The fix.
Test-Sha256now hashes throughSystem.Security.Cryptography.SHA256over aFileStreaminstead ofGet-FileHash. A pure read inside a converger should not be suppressible by a preview flag, and going through .NET removes the cmdlet-preference coupling rather than papering over it at the call site with-WhatIf:$false.Why the suite missed it. This is the interesting half.
write_wrapperbuilt a plain wrapper that invoked the converger as& script -WhatIf, and in that shapeGet-FileHashworks fine. Only a top-level-WhatIf, the shapejustactually produces viapowershell.exe -File, triggers it. Minimal repro:So the harness was structurally incapable of reproducing production. The wrapper is now an advanced script that takes
-WhatIfitself (shape C), and the existing preview test drives it that way.New case.
test_what_if_verifies_an_already_converged_modelseeds a verified model and asserts the preview reads it asverified, neverplanned, withno model download required. The previous preview test only ever ran against an empty tree, whereplannedis the correct answer, which is the gap that let this through.Verification
The new test discriminates. Reverting only the
.ps1hunk and rerunning:That is the production symptom exactly,
ProviderPathline and all. With the fix restored, 6 of 6 pass.Live on
kai-tower-3026, the preview now tells the truth:pre-commit run --all-filespasses clean.Note on the residual RESULT=CHANGED
The preview still ends
RESULT=CHANGEDon the tower, which is correct rather than a leftover. The launcher write and the scheduled-task steps areShouldProcessgated, so under preview they report as pending work. Only the model and checkpoint verification was lying, and that is what this changes.closes #882
🤖 Generated with Claude Code