Mouth: a v3 send may say resend; a resend skips the basis check #92
Closed
eureka
wants to merge 3 commits from
hands/mouth-resend-skips-basis into main
pull from: hands/mouth-resend-skips-basis
merge into: GameCult:main
GameCult:main
GameCult:hands/bifrost-google-invite-sign-in
GameCult:hands/mouth-notsent
GameCult:hands/bifrost-chat-invite
GameCult:heimdall/signin-start-post
GameCult:heimdall/merge-operator-settle
GameCult:heimdall/merge-notices
GameCult:heimdall/merge-pages
GameCult:heimdall/merge-status-undo
GameCult:heimdall/merge-proofs
GameCult:heimdall/account-merge
GameCult:heimdall/account-merge-saga
GameCult:heimdall/account-merge-int
GameCult:heimdall/account-merge-mover-client
GameCult:heimdall/passkey-strong-proof
GameCult:heimdall/linked-accounts
GameCult:heimdall/feedback-receiver
GameCult:heimdall/bifrost-guest-accounts
GameCult:heimdall/appsecret-empty-refusal
GameCult:heimdall/google-link-test-gaps
GameCult:heimdall/google-link
GameCult:heimdall/start-refusal-headers-only
GameCult:heimdall/start-refusal-status
GameCult:heimdall/appsecret-file
GameCult:heimdall/follow-null-only
GameCult:heimdall/linux-path-fixes
GameCult:heimdall/mouth-follow
GameCult:heimdall/tests-platform-neutral
GameCult:heimdall/sealed-key-path
GameCult:heimdall/desk-unix-door
GameCult:heimdall/desk-credential
GameCult:heimdall/desk-docs-door-spec
GameCult:eureka/mouth-fetch-attachment
GameCult:heimdall/pending-v4-lows-two
GameCult:heimdall/pending-v4-lows
GameCult:heimdall/desk-door-revendor
GameCult:heimdall/desk-card-repin
GameCult:heimdall/desk-feed-note
GameCult:heimdall/ratatoskr-voting-auth
GameCult:heimdall/docs-no-refresh
GameCult:heimdall/approve-null-membership
GameCult:heimdall/pending-v4-fixes
GameCult:heimdall/chat-pending-v4
GameCult:heimdall/chat-consent-gate
GameCult:heimdall/htmx-drop
GameCult:heimdall/susp-gaps
GameCult:heimdall/prefix-val
GameCult:self/suspension-survives-sign-in
GameCult:self/chat-pending-tail
GameCult:self/oidc-chat-tier
GameCult:self/oidc-limits-prune-brake
GameCult:heimdall/test-cultlib-path
GameCult:heimdall/drop-index-roles
GameCult:heimdall/desk-pin-vectors-de8a062a
GameCult:heimdall/desk-answer-fork-too-large
GameCult:heimdall/desk-pin-vectors-f6c9bf5
GameCult:heimdall/desk-read-fork-too-large
GameCult:heimdall/desk-bifrost-half
GameCult:heimdall/mill-ranked-read
GameCult:mouth-open-direct
GameCult:docs/dump-readable-by-restore
GameCult:heimdall/mouth-read-through
GameCult:heimdall/scope-cultlib-ts-names
GameCult:heimdall/reserved-identities
GameCult:heimdall/standard-close-concurrency
GameCult:heimdall/sealed-mind-intake
GameCult:heimdall/sealed-ballot-motion
GameCult:heimdall/deploy-main-plan
GameCult:eureka/deploy-plan-revise
GameCult:heimdall/delete-publish-workflow
GameCult:heimdall/workflow-runs-on-docker
GameCult:heimdall/host-only-cookies
GameCult:heimdall/pin-vote-refusal-branches
GameCult:heimdall/mouth-receipts-presence
GameCult:heimdall/chat-images-cut-a
GameCult:heimdall/estate-sim-purchased-stake
GameCult:heimdall/credit-arm
GameCult:heimdall/stale-estate-numbers
GameCult:heimdall/stake-vectors
GameCult:heimdall/estate-rule-sim
GameCult:heimdall/charter-amendment-proposal
GameCult:heimdall/mouth-media-line
GameCult:eureka-body/optimistic-send-mouth
GameCult:eureka-body/mouth-context-from-matrix
GameCult:eureka-body/mouth-per-persona-rooms
GameCult:eureka-body/mouth-many-peers
GameCult:gamecult-chat/bifrost-oidc-backchannel-logout
GameCult:gamecult-chat/bifrost-oidc-issuer
GameCult:security/bifrost-dependency-pins
GameCult:hands/heimdall-callback-signed
GameCult:hands/mill-votes-cut-5b
GameCult:hands/mill-votes-cut-5
GameCult:hands/mill-votes-cut-3
GameCult:hands/mill-votes-cut-4
GameCult:hands/mill-votes-cut-2
GameCult:hands/mill-votes-cut-1
GameCult:hands/mill-votes-cut-0a
GameCult:hands/watchdog-bifrost-retry
GameCult:hands/watchdog-bifrost-reader
GameCult:hands/watchdog-bifrost-suite
GameCult:hands/watchdog-bifrost-retire
GameCult:codex/bifrost-migration-metadata
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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!92
Loading…
Reference in a new issue
No description provided.
Delete branch "hands/mouth-resend-skips-basis"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Request shape (for Huginn)
Kind:
gamecult.persona.chat_send_request.v3(new). Tuple, 6 fields, msgpack array:The first five are exactly the v2 request.
resendistruewhen this repeats an earlier send by the same caller under the samerequest_id.resendmust be a boolean (a non-bool or a 5-field tuple is refused as a malformed frame).Answer: the existing
gamecult.persona.chat_send_receipt.v2[request_id, event_id|nil, refusal|nil, newer], unchanged. The v1 and v2 request kinds are unchanged.Golden bytes (Huginn can pin them):
tests/fixtures/persona-chat-v2/gamecult.persona.chat_send_request.v3.resend.msgpackand.first-try.msgpack.Behaviour
resend: trueskips the basis/newerThan check and reads no head; it PUTs/send/m.room.message/{request_id}under the same txn id. Synapse's answer is the receipt: the original event id if the first try posted, a new one if it did not.PersonaMismatch,Brake(before and inside the gate),EmptyText,UnknownRoom, the per-room gate.basisstays in the tuple for shape uniformity and is ignored on a resend. A non-resend still getsRoomMovedas before, including a retry that does not say it is a resend.Finding:
eureka-body:finding:cut-cut-persona-live-drain.s7.mouth-no-answer-recorded-refused, mouth half. Huginn's half (map SendFailed to Lost, retry under the recorded id with resend) is a separate change.Tests
New in
tests/persona-matrix-mouth-send-gate.test.mjs(fake homeserver that dedupes txn ids like Synapse):SendFailed, event persisted, someone answered): same event id$sent-1, no head read, nothing new in the room;RoomMovednaming the newer id, no second PUT;PersonaMismatch,UnknownRoom,Brake, no PUT.tests/persona-matrix-mouth-runtime.test.mjs: v3 golden fixtures, strict arity and boolean checks, and the RUDP endpoint answers a v3 send with the v2 receipt and deliversresendto the mouth.Suite (Yggdrasil,
ygg-verify.shhost mode, CultLib 286a9af3 with cultcache-ts and cultnet-ts built):node --test tests/persona-*.test.mjs tests/*mouth*.test.mjs: 338 tests, 337 pass, 1 fail. The failure is the filetests/persona-feedback-cli.test.mjs, which loadscultmesh-ts; that package does not build at that CultLib commit, so it is not run, and it does not touch the send path. The mouth runtime and send-gate files pass in full (75 of 75).Docs: new "Send requests" section in
docs/bridge.md.Build budget: JS only, no new targets, dependencies or schemas beyond one document kind; build host Yggdrasil, no .NET build (the C# suite is untouched).
🤖 Generated with Claude Code
Pull request closed