Design 47 H2: H-A-715, a cut body keeps every field that still fits; one byte count (principles 3, 7, 11)

This commit is contained in:
2026-11-25 15:40:52 +01:00
parent 3d013bdb12
commit adef48c101
@@ -378,3 +378,15 @@ with them.
process and both bundles, and its module's next apply gives it the name (principle 3). How it is checked: a row of the
node-engine's tests (a process whose record names another bundle is left unwritten at the first pass, with the line).
H-A-713; principles 2 and 3.
- **H-A-715 (a cut body keeps every field that still fits, 15:40)** 25 Nov; amends H-A-709 (4), on the question the
knowledge base's review of the insight on ADR 0367 §1 found open: whether the cut stops at the first field that does
not fit, and what is answered when none fits. The fields are taken in the order they stand in the body as heard; each
is kept when it fits within `wait-body-bound` with those kept before it, and is otherwise named in `cut`, and the next
is tried; when none fits, `body` is an empty object and every field is named in `cut`. The bound, each size in `cut`
and `body-bytes` all count bytes of the body's JSON encoding as heard on the bus. The line's own example settles the
order: `pipeline-ended`'s body holds `movers` before `outcome`, `pipeline`, `revision` and `source` (mesh-delivery
`origin/main`, the seat `mesh-pipeline-runner`'s contract), so only a cut that goes on past a field answers them;
every field not kept is named (principle 3), and one count serves the three sizes (principle 7). The record names the
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.