write_symbols
Batch-write multiple symbols atomically with rollback on failure, safe for multi-file refactors. Guarantees all-or-nothing consistency across files.
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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | No | ||
| safety | No | ||
| 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). |