aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-29 15:02:23 +0000
committertv <tv@krebsco.de>2026-11-30 14:59:15 +0000
commit83f1d36bbaeb193ae1c663b5b1b7956661ecac8c (patch)
treee73f8393a5cfe4330b2048fabfcb3cb586cf033b
parenteaac60ba88728bb582778c726e5798156dddfc45 (diff)
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.
-rw-r--r--docs/design.md11
1 files changed, 7 insertions, 4 deletions
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;