write_symbols
Atomically write multiple files in one guarded batch, rolling back all changes if any fail, for deadlock-safe multi-file refactoring.
Instructions
Guarded write path (batch). All-or-nothing across files, deadlock-safe. Multi-file refactor? Use instead of N×write_symbol. New symbols: reindex first. For string params containing double quotes/backslashes, keep JSON escaping consistent across the whole string (escape uniformly or prefer full-width quotes), otherwise client-side parameter parsing fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | No | {all_or_nothing: true} (default) | {false} best-effort | |
| safety | No | Safety profile: fast|standard|strict (default standard) | |
| writes | Yes | REQUIRED: Array of writes. Grouped by file internally. | |
| workspace_dir | Yes | REQUIRED: project root (abs). reindex first if new. | |
| allow_unsafe_no_base | No | Bypass base_version requirement for all writes (audited). |