Drawing: Refine
drawing_refineCritique and repair drawing entities in a bounded loop, preview proposed changes via dry run, and block stale updates using revision or handle fingerprints.
Instructions
Run a bounded, transaction-safe critique/repair/re-critique loop.
dry_run=True returns the plan with preview - the content revision and the
exact fingerprint of every handle a planned repair touches - also when the
score already meets min_score: threshold_met then says an apply at that
min_score would stop before repairing. Applied with the preview's
revision (expected_revision) and/or preconditions, the call is refused
with kind stale_revision and nothing changed when the document moved since;
the result then carries revision ({checked, after, interleaved}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus | No | Critique focuses to repair; None runs all. | |
| dry_run | No | Return the repair plan and its `preview` without modifying the drawing. | |
| min_score | No | ||
| max_rounds | No | ||
| preconditions | No | A dry run's `preview.preconditions` ({handle, fingerprint} per entity a planned repair touches): repair only if each is unchanged; otherwise refused stale_revision and nothing is repaired. | |
| allowed_repairs | No | Optional allowlist of repair focus names. | |
| expected_revision | No | Repair only at this content revision (a dry run's `preview.revision`); otherwise refused stale_revision and nothing is repaired. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||