3.10 Updates

The daemon broadcasts Update to change the outstanding page without issuing another turn. This supports progress, log output, and validation errors.

Update has these fields:

FieldMeaning
seqOutstanding turn sequence
fullWhether the update replaces the element list
elementsComplete elements or sparse patches

3.10.1 Sparse updates #

With full absent or false, each patch names an existing element by ref and supplies changed fields. A key with value null removes that field. A patch MUST NOT name an absent ref or contain a secret element's collected value (§3.4).

Typical changes include progress values, appended log lines, errors, availability, and refreshed choices. Log append entries fold into lines (§3.B).

3.10.2 Full updates #

With full: true, complete elements replace the element list. This is the only way to change the set of refs within a turn. Such changes SHOULD be rare; a surface is only required to render the replacement from scratch.

3.10.3 Folding #

The daemon MUST fold each update into its stored turn. An attaching surface receives this state rather than an update history (§3.6).

A surface MUST ignore updates for sequence numbers it does not hold. A sparse update with an unknown ref indicates a daemon defect; the surface SHOULD fail the conversation rather than infer a target.

Edit this page