Persona K34: Proposal's variants are named by their wire kinds

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-22 01:12:27 +01:00
commit 8c7f71c813

View file

@ -105,6 +105,8 @@ impl TryFrom<NeedsShape> for Needs {
/// One state change the Interpreter proposes. `promise` names an open promise by its id in the Interpreter's list.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[serde(tag = "kind", rename_all = "snake_case")]
// Each variant is named by its kind on the wire (`promise_open`, `promise_close`, `promise_need`).
#[allow(clippy::enum_variant_names)]
pub(crate) enum Proposal {
/// `reaffirms` names an open promise of hers, by its id in the Interpreter's list, that these words promise again to
/// the same person (map 16.24.2): no entry opens, and the entry gains the words as said again. `needs` is what keeping