Apply machine-applicable diagnostic fixes
fixApply machine-applicable corrections from a plan's compile diagnostics to ArchLang source and return the edited code; unsafe mode also applies maybe-incorrect corrections.
Instructions
Apply the machine-applicable fixes attached to a plan's compile diagnostics and return the edited source. It corrects source-level faults (an opening off its wall becomes the attachment form, an out-of-range position is clamped, …); furniture geometry is repair's job. It runs at most 4 passes and rolls back a pass that raises the error count. unsafe:true also applies maybe-incorrect fixes. Returns { ok, passes, applied, skipped, source }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ArchLang source to fix. | |
| unsafe | No | Also apply `maybe-incorrect` fixes (default: machine-applicable only). |