From b759addf3e5287bd0de747500a75a4f28d548461 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 08:38:42 +0200 Subject: [PATCH] Regenerate the response wire schema for PersonaStatus; lock serde_path_to_error Co-Authored-By: Claude Opus 5.5 --- Cargo.lock | 12 ++++++ .../huginn.mind_response.v1.schema.json | 42 ++++++++++++++++--- 2 files changed, 48 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e288372..7731775 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -820,6 +820,7 @@ dependencies = [ "schemars", "serde", "serde_json", + "serde_path_to_error", "sha2", "tempfile", ] @@ -1628,6 +1629,17 @@ dependencies = [ "zmij", ] +[[package]] +name = "serde_path_to_error" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" +dependencies = [ + "itoa", + "serde", + "serde_core", +] + [[package]] name = "sha2" version = "0.10.9" diff --git a/schemas/cultnet/huginn.mind_response.v1.schema.json b/schemas/cultnet/huginn.mind_response.v1.schema.json index 7e1eeda..e0c48b6 100644 --- a/schemas/cultnet/huginn.mind_response.v1.schema.json +++ b/schemas/cultnet/huginn.mind_response.v1.schema.json @@ -1608,11 +1608,8 @@ "$ref": "#/$defs/Slug" }, "persona": { - "description": "The stored persona document's `updatedAt`; none until the first put.", - "type": [ - "string", - "null" - ] + "description": "The persona door as `PersonaGet` would find it.", + "$ref": "#/$defs/PersonaStatus" }, "receipts": { "type": "integer", @@ -1628,7 +1625,8 @@ "schema_epoch", "documents", "receipts", - "index" + "index", + "persona" ] }, "MutationRecord": { @@ -1747,6 +1745,38 @@ "receipt_id" ] }, + "PersonaStatus": { + "description": "What the persona door holds, in the one vocabulary the door itself answers\nin: nothing yet, a document with this `updatedAt`, or a stored document the\ndoor cannot read (`PersonaGet` and every put answer `Unavailable`).", + "oneOf": [ + { + "type": "string", + "enum": [ + "Absent", + "Unreadable" + ] + }, + { + "type": "object", + "properties": { + "Stored": { + "type": "object", + "properties": { + "updated_at": { + "type": "string" + } + }, + "required": [ + "updated_at" + ] + } + }, + "additionalProperties": false, + "required": [ + "Stored" + ] + } + ] + }, "PipelineAdmissionOutcome": { "description": "How admission ended. `Committed.writes` names every document the batch\nlanded, derived writes included; Cut 11 indexes from it after `admit`\nreturns, and never inside it.", "oneOf": [