{"data":{"kind":"file","path":"README.md","version_id":"wtk1pgqigzvvl23knamjntep","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":1270,"modified_at":"2026-11-18T05:16:03.420000","content_hash":"83020a9c75a9032eeeebf72916ab6b11b6e9447cbfd84e9596927cf16eba4098"},"entries":[],"content":"# comfyui_graph_repair\n\nRepair a ComfyUI API-format workflow until it validates and executes.\n\nA workflow that loads and does the wrong thing: a dangling link, a cycle that hangs rather than errors, a sampler feeding a node that cannot take LATENT, a negative prompt wired into the positive encoder.\n\nEvery fault here is in one class: the artifact runs, raises nothing, delivers,\nand is wrong. Faults that throw are already caught by the software and are not\nworth grading.\n\n## Reward\n\nBinary, 1.0 or 0.0, with a specific reason either way. No partial credit: a\nhandoff is either correct for the department downstream or it is not, and\nrewarding \"nearly right\" teaches the wrong thing efficiently.\n\nShape checks alone are gameable, so every channel or field the repair was not\nmeant to touch is compared against a known-good reference and must match, and\neverything it was allowed to touch must still correlate with the original.\nSatisfying the rules while destroying the data is graded as a failure. On the\nfirst adversarial pass across these environments, seven of twelve attacks\nscored full reward without fixing anything; those holes are closed and the\nattacks are kept in `tools/reward_hack.py` upstream.\n\n## Source\n\nhttps://github.com/AlaboMPJ/alabo-creative-envs\n","encoding":"utf-8","truncated":false,"total_bytes":1270},"status":null}