Design 47 H2: H-A-716, a cut body's measure and shape; wait-body-bound is a config value (ADR 0348 §4, §5, §10)
This commit is contained in:
@@ -390,3 +390,20 @@ with them.
|
||||
setting `wait-body-bound`, not its range or default, which stay here (principle 11). How it is checked: rows of the
|
||||
tool runner's wait tests pin the order and the skip (a body whose second field is too long answers its first and
|
||||
third, the second in `cut`) and the empty body (no field fits). H-A-709 (4); principles 3, 7 and 11.
|
||||
- **H-A-716 (a cut body's measure and shape, 15:47)** 25 Nov; amends H-A-709 (4) and H-A-715, on the points the
|
||||
knowledge base's review of the insight on ADR 0367 §1 found open. (1) `wait-body-bound` is a config value of the tool
|
||||
runner, declared in its manifest with its default and its validation, minimum and maximum (ADR 0348 §4); a default
|
||||
outside them is refused at registration and a value outside them by the verb `config` (ADR 0348 §5, §10), never
|
||||
clamped; the record names the value, not its numbers (principle 11). (2) A field is kept when the kept body's own JSON
|
||||
encoding, with that field added, is at most the bound, its braces, keys and commas counted; each size in `cut` is the
|
||||
bytes of the field's value as heard, and `body-bytes` the whole body as heard (principle 7). (3) `cut` and
|
||||
`body-bytes` are in `heard` only when the body was cut, and absent otherwise; `cut` is an object of a field's name
|
||||
to its size (principle 7). (4) A body over the bound whose top level is not an object, which no seat's definition rules
|
||||
out, is answered with no `body`, its size in `body-bytes`, and `cut` naming it whole under the empty name, so
|
||||
nothing answered looks whole that is not (principle 3). (5) The options the form leaves out, each with its reason: a
|
||||
bound the caller sets per call (a session raising it brings back issue 1984's failure, and the bound is the tool
|
||||
runner's config value, principle 11); a fixed bound (principle 11); a cut inside a field, the first items of a list or
|
||||
the start of a string (a part of a field looks whole, principle 3). How it is checked: rows of the tool runner's wait
|
||||
tests (a body at or under the bound answers no `cut` and no `body-bytes`; a field kept at exactly the bound, braces
|
||||
counted; a top-level list over the bound answers `cut` under the empty name); registration refuses a default outside
|
||||
the validation. ADR 0348 §4, §5, §10; principles 3, 7 and 11.
|
||||
|
||||
Reference in New Issue
Block a user