Mouth: NotSent for a failure before the PUT; SendFailed means a PUT was attempted #91

Merged
eureka merged 1 commit from hands/mouth-notsent into main 2026-11-28 04:47:43 +00:00
Owner

Kind table (v2 send receipt, chat_send_receipt.v2)

Refusal A PUT was attempted May the line be posted The caller
NotSent (new) no no, certainly not keep it owed; send it again as a first send (resend false)
SendFailed yes, outcome unknown (timeout, 5xx, dropped connection) maybe repeat with resend true under the same request id
ResendUnknown no unknown: the mouth does not remember the id not a resend; a resend of a NotSent id lands here, so send it as a first send

Rules: NotSent is every failure before the PUT in send (start or room join, speakableRoomId, the room-head read for the basis check, including its timeout). The attempt is recorded only immediately before a PUT, as before. A resend that fails before its PUT is SendFailed, not NotSent: the earlier try it repeats may have posted. A v1 caller has no word for NotSent and is answered SendFailed. Open-direct keeps its own outcome word SendFailed (its own contract, not touched).

Finding: eureka-body:finding:cut-cut-persona-live-drain.s8.sendfailed-before-put-unvouched.

Audit of SendFailed returns in tools/persona-matrix-mouth.mjs: send catch (now split by a putAttempted flag set right before the PUT); openDirectNow catch (different receipt, unchanged).

Tests: head read 500, head read hang and start failure give NotSent with zero PUTs and no recorded attempt; a resend of that id is ResendUnknown, and the same id then posts as a first send; a failing PUT gives SendFailed with the attempt recorded and a vouched resend; a resend failing before its PUT is SendFailed. Run on Yggdrasil with VOIDBOT_CULTLIB_ROOT at the running pin: 341 pass, 0 fail (persona-matrix-mouth*.test.mjs, persona-chat-images.test.mjs). The running mouth was not touched.

Huginn side: map NotSent to a kept-owed first send; docs/bridge.md "Send requests" documents both kinds.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

**Kind table (v2 send receipt, `chat_send_receipt.v2`)** | Refusal | A PUT was attempted | May the line be posted | The caller | | --- | --- | --- | --- | | `NotSent` (new) | no | no, certainly not | keep it owed; send it again as a first send (`resend` false) | | `SendFailed` | yes, outcome unknown (timeout, 5xx, dropped connection) | maybe | repeat with `resend` true under the same request id | | `ResendUnknown` | no | unknown: the mouth does not remember the id | not a resend; a resend of a `NotSent` id lands here, so send it as a first send | Rules: `NotSent` is every failure before the PUT in `send` (start or room join, `speakableRoomId`, the room-head read for the basis check, including its timeout). The attempt is recorded only immediately before a PUT, as before. A resend that fails before its PUT is `SendFailed`, not `NotSent`: the earlier try it repeats may have posted. A v1 caller has no word for `NotSent` and is answered `SendFailed`. Open-direct keeps its own outcome word `SendFailed` (its own contract, not touched). Finding: `eureka-body:finding:cut-cut-persona-live-drain.s8.sendfailed-before-put-unvouched`. Audit of `SendFailed` returns in `tools/persona-matrix-mouth.mjs`: `send` catch (now split by a `putAttempted` flag set right before the PUT); `openDirectNow` catch (different receipt, unchanged). Tests: head read 500, head read hang and start failure give `NotSent` with zero PUTs and no recorded attempt; a resend of that id is `ResendUnknown`, and the same id then posts as a first send; a failing PUT gives `SendFailed` with the attempt recorded and a vouched resend; a resend failing before its PUT is `SendFailed`. Run on Yggdrasil with `VOIDBOT_CULTLIB_ROOT` at the running pin: 341 pass, 0 fail (`persona-matrix-mouth*.test.mjs`, `persona-chat-images.test.mjs`). The running mouth was not touched. Huginn side: map `NotSent` to a kept-owed first send; `docs/bridge.md` "Send requests" documents both kinds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eureka merged commit 0b11e0e72b into main 2026-11-28 04:47:43 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Bifrost!91
No description provided.