amend_factory
Add or drop individual machines from a factory label without re-selecting the whole factory. Fix a wrongly-included machine while leaving other anchors unchanged.
Instructions
Add or drop individual machines on a label, without re-anchoring the rest of it.
name_factory re-anchors a label to whatever its selector picks, so correcting one
wrongly-included machine meant re-selecting the whole factory. This edits the
membership: every anchor add and drop do not name is left exactly as it was,
including ids this save no longer has.
add runs first, then drop, then prune_missing, which clears the anchors
list_factories reports gone. One machine is machine:<instance> on either side.
Dropping the last machine is refused -- deleting a label is forget_factory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | selector terms for what to ADD. product:<item> | recipe:<name> | building:<class or name> | near:<place>@<radius_m> | base:<n> | line:<n> | slab:<n> | proposal:<n> | label:<name> | machine:<instance> | all. Terms are ANDed; comma-separated values inside one term are ORed; prefix a term with '-' to exclude it | |
| drop | No | selector terms for what to DROP, same grammar | |
| name | Yes | ||
| save | No | ||
| as_of | No | pin to one world state: a sav:… token from an earlier answer | |
| notes | No | ||
| world | No | ||
| dry_run | No | ||
| prune_missing | No | drop every anchor this save no longer has |