loop_record
Record a pass outcome and store the best graph. On 'worse' or 'same', revert to the previous best graph; on 'better', save the new graph as best.
Instructions
Record a pass and apply the ratchet (loop step 5: DECIDE).
change the ONE thing you changed this pass ("denoise 0.6 -> 0.45").
outcome your verdict vs the best-so-far: "better" | "worse" | "same".
graph the API graph you just ran — REQUIRED when outcome is "better", because
that's what gets stored as the new best and handed back on a revert.
score an objective score from measure_image, when the brief has a gate. If both
this pass and the best have one, the NUMBER decides — not your verdict.
(A model that wants to be finished will call a regression "better".)
outputs this pass's output files, straight from get_result — pass them through so
loop_report can show what each pass actually looked like.
On "worse"/"same" you get the best graph back: revert to it and try a DIFFERENT change. Never build on a regression — that's how a loop wanders instead of converging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| graph | No | ||
| score | No | ||
| change | Yes | ||
| run_id | Yes | ||
| outcome | Yes | ||
| outputs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |