Expand description
Operations on the ctxpkg.research-context.v1 document: applying a
proposal patch exactly like Cloud does on merge, and rebasing pending
draft ops onto a newer revision. The wire types and their structural
validation live in lean_ctx_protocol::cloud::knowledge.
Functionsยง
- apply_
patch - Apply
opsin order; any op that does not fit the document is an error. - rebase_
ops - Re-apply draft ops onto a newer base, dropping ops the base already contains (the same fact was merged meanwhile). Ops that clash with the new base are an error; the caller then keeps the draft on its old base.
- same_
content - Equality of what a person wrote, ignoring credits assigned on merge.