From 83f1d36bbaeb193ae1c663b5b1b7956661ecac8c Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 15:02:23 +0000 Subject: docs: what is kept goes once its slot is filled anew A kept entry fills a slot of its name and type after a rollback, but once that slot is filled anew it is older than what is there, and goes: the rule of migrations.md case 3, for every kept entry. --migrate takes --dry-run, for the check before a switch. --- docs/design.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/design.md b/docs/design.md index fdc5e1e..ff39c3f 100644 --- a/docs/design.md +++ b/docs/design.md @@ -440,9 +440,11 @@ simple: host. 5. **Steps**: a program from the generation, for what the above can't say (splitting one slot in two). The escape hatch. -6. **Fallback**: what no slot wants is kept and reported (it may be wanted - again after a rollback); a slot that can't be filled falls to the - policy (section 7). +6. **Fallback**: what no slot wants is kept and reported, with its type + (it may be wanted again after a rollback, and fills a slot of its name + and type then); but once its slot is filled anew, it is older than what + is there, and goes. A slot that can't be filled falls to the policy + (section 7). Two rules make this work in both directions, and [migrations.md](migrations.md) shows them at work: @@ -628,7 +630,8 @@ Small enough to try on one host, large enough to replace something real: the chain as order; - programs by the protocol of 5.2; - the receptor as a command: `--plan`, `--apply`, `--migrate` (on a generation - change), `--materialize` (at boot), `--status`; + change, and with `--dry-run` before one), `--materialize` (at boot), + `--status`; - `enstate --pack` with source lists in JSON and TOML; - migrations: same name carries over, `renamedFrom`, kept and reported; the two rules of section 6; policy: refuse; -- cgit v1.3.1