diff --git a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-3.md b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-3.md index 1f632277..f6cc5014 100644 --- a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-3.md +++ b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-3.md @@ -493,3 +493,24 @@ where the design and the code disagree; the lead's answers follow, each against run that waits for a package's publish and composes after it; one past the bound ends could not run naming the package), never a new top-level test function; live, the first take-in after delivery whose movers publish a package the node-engine imports has every composition pass. Principles 1, 3, 7, 9 and 11. +- **H-A-629 (a run that waits for a package keeps the wait in its own value; every reader says it; a start takes it up + again, 22:02)** 23 Nov, issue 1984; answers the developer's three questions on H-A-628 (3) and (4): the expiry + marker of `bound.` holds no value (A-470o), the run's value names no package, every reading step says the + phase `run` at once, and the take-up starts nothing again. (1) The run's value, the seat `mesh-wants`' composition + run (`CompositionRun`), gains one field, `waits`, absent while the run waits for nothing: the package's path and the + time its wait began. It is written when the run's wait of H-A-628 (3) begins and deleted when the run ask is put or + the run ends, by compare-and-set as the value is written. So the package is named from the bus after a restart, + and an expiry heard before any take-up names it, read from the run's value (principle 1; principle 7: the run's + existing value, no new key). (2) Every step that reads the run, the starting one included, says the phase `fetch` + naming the package while the run's value holds `waits`, and `run` once it holds none, as it hears the run key + today (principle 3: each step says what is true; principle 7). (3) At an assigner start, a run whose value holds + `waits` and no program has its whole start run again (a compose-candidate ask of the node and its kept request), as + the node's input of the first start is not kept before the wait ends; that start reads `published` first, so a + package published while the assigner was down is taken at once (principle 7: the existing start, no new kept + input). Its bound counts from `waits`' time: past that time plus `package-wait-minutes` the run ends could not run + as H-A-628 (3) says, naming the package; before it, `bound.` is armed again for what is left, never in full + again, whether it expired while the assigner was down or was never armed (principles 3 and 11). How it is checked: + rows of the composition run's unit tests (`waits` written at the wait's start and gone at the ask; every reader + says `fetch` naming the package, then `run`), and the extended whole test of H-A-628 (a restart during the wait + takes the run up and composes after the publish; a restart past the bound ends it could not run naming the + package). Principles 1, 3, 7 and 11.