Bifrost answers ResendUnknown for a resend of an id it does not remember attempting for that Persona and room within its window. The first try may have
posted, so the send is recorded in unknown_sends (as past the window), holds its room, and is told at her next real turn. The refusal is read through
Refusal::reading, which names every kind as declined, no answer, or unknown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The drain's owed list, the ack's owing set and the poll's owes each carried their own copy of "did not fail and holds an owed send". They read
turn::owes_send now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The send stays owed in her trace, so the poll's owed waker would start her at every poll with no end. The start now ends Failed, and the failed
outage record (when the trace takes it) is what the poll backs off by.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In a start where an older send in a room turns unknown, nothing newer goes into that room: not the newer owed sends, and not the rooms the trace
already shows with an unknown she has not been told. The held sends stay owed and go out, in the order she decided them, after her next real turn.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SendFailed (the mouth's PUT timed out, or the homeserver answered 5xx or 429) is the homeserver not heard: the event may exist, so the send stays
owed and is repeated under its recorded id. Every other refusal kind is the mouth declining before it put anything, and settles the send. A repeat
goes out as the v3 request with resend true (Bifrost 618962e), which the mouth does not hold to the first try's basis; a first send is the v2 request.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Delete the text-matching receipt (a line of hers in the room's tail, matched by prefix, was taken as proof a send posted). A retry
of an owed send goes out under the recorded id and the mouth's event id is the receipt; past the dedupe window with no answer the
send is recorded unknown (unknown_sends, unknown_at), neither posted nor refused, and told at her next real turn as a line that may
or may not have gone out. A set-aside record or a failed turn is no real turn of hers. The poll starts a Mind whose trace holds an
owed send, subject to her outage backoff, and gives the line to no other; that start takes no beat turn. A send with no answer
holds back every later send into its room for the rest of the start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A line is decided as soon as her trace holds any decision on it (decided()), so a hello whose
answer is owed is never given to a second Mind. Every start delivers all owed sends, in every
room, before it takes a turn; the ack stops below any line whose decision still owes a send
(owing()). A send given up as owed_too_old is stamped, logged and told to her at her next wake
by her words, from the trace's given-up records; a line of hers already in the room is the
send's receipt, so a posted line is never recorded refused. The decision record is written
before her state is put, so a retry after a failed record never applies her proposals twice.
The heartbeat reads each trace through CultLib's pull_all_read_only_snapshot (TraceSnapshot,
TraceView), which creates no lock file and opens nothing for write.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seat carries her trace, read-only (MIND_HEARTBEAT_TRACES, a path with {slug}). The poll wakes her for a line that wakes her and her
trace does not hold decided, by the same function the drain uses; a trace it cannot read judges nothing. A claim (handled key) is a
record of who was woken for what, and stands while her unit runs or her trace holds the line decided; otherwise it lapses.
Re-waking after failures backs off by the failed records in a row at the end of her trace: 20 s doubling to the beat.
Deleted: the release of a claim because its line was still pending, the rollback of the saved state when a start was refused, and
the handled-key gate on waking.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A turn is decide then deliver. The record of a decision carries each line's words and send id (owed) and is durable before
the first send; a record that cannot be written sends nothing. The receipts rewrite the same record. A send whose answer never
came stays owed and the next start sends the recorded words under the recorded id without asking the model; one owed past the
homeserver's transaction memory is given up (owed_too_old). A line is decided when her trace holds a record of it that owes
nothing, or sets it aside (projection::decided, the one reader); the ack is cleanup behind that and decides nothing.
Deleted: the room-tail text receipt (Mouth.posted/counted/head), the digest in the send id (wire_id), the per-turn Turn
decided flag the ack read, and done_events. Failed records stay in her trace but not in the window her packet reads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Synapse keeps a transaction id 30 to 60 minutes (HttpTransactionCache CLEANUP_PERIOD), so a turn retried later than that, whose record never landed, would post again; and a line rendered again under the same id would get the old event back for its new words. The mouth now counts her own tail lines that follow the line the turn answers as the sends they are, and names a send by turn, place and words.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Soul R21 p2 is the test. Kills mutants m08 (FileStore::woken_for none) and m11 (unread heartbeat state read as no claims).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Failed carries outage, set where the typed kind is known: ConnectorClientError (FrameSize and RequestIdTooLong are strikes), Refusal (PayloadBound, OutputBound, Malformed, ModelNotAllowed, ReplayConflict, the substitutions and ForeignReasoningState are strikes) and FailureKind. The reason-prefix list is deleted. A project error (tuning, her own id) is the body's, not a line's: the start fails loudly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The poll drops her handled key for a line still pending in the chat of a Mind whose unit is not running (a drain acks what she decided and what it set aside). Covers a failed turn, a unit that died before draining and a crash between the claim's save and the start. Soul R21 p1 is the test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
heartbeat::claimed is the lines a wake is for (the waking line and the floor lines she took). The poll records them as handled keys and saves before the start (given back when it fails); the simulator hands the same to her packet; the drain narrows the open floor to them and carries them into her request. Closes woken-wider-than-sim and woken-save-after-start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simulator keeps the drain's turn::history (last wake read from her records) and adds the floor's lines; domain.rs keeps the drain's stewarded read; the project path reads her rooms by own_rooms_among.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A reply whose record did not land is sent again under the id it went out under, so the mouth answers it as the send it
was; two beats whose records did not land no longer share an id. The pins Soul found missing: a set-aside line is
done while its ack fails, and her put's stamp is at the put and after the stored one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Her trace's set_aside record carries the sender and the words of each line set aside; the told row says 'her turn on
<sender>'s line "<words>" failed twice, so it was set aside'. The event form names no one and quotes nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The strike a failed turn charges goes to the oldest line it was waking on, recorded in the turn, so a line that
shares a room with a poison line is not struck for it. Two strikes set aside that line only, acked past before the
room's turn so the turn reads the room without it. belongs_to_the_line, the list of the line's own failures, is cut:
the outages (RateLimited, Unavailable, Timeout, Authentication, the connector not answering or refusing) are the one list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The wake and the packet's hers were two owners: an open hello that picked her was met among the others. The heartbeat's handled keys name what woke her (heartbeat::woken_for), the Persona unit reads them into Request::woken_for, and a simulation passes the lines its floor gave her; to_her is is_for, her own room, or woken for.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The floor is judged with the Minds whose start failed this poll ineligible, as the beat passes over a refused Mind, so one broken unit no longer holds every hello. A hello another Mind took is no one else's to take or for the beat to hand over while it is within EXCHANGE_MINUTES, whatever the forgotten handled keys remember. Each event is judged once by the first Mind that holds it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
belongs_to_the_line names, beside the code that writes them, the failed reasons that are the line's (an answer that is
not the speech contract, a refusal, a context or size limit); the record already carries the reason, so no field is
added. The poison-room tests fail on a refusal and a new set fail on outages and a mixed run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Her trace records now carry the room and the event ids the turn held. A line a turn that did not fail held is decided
and wakes no one again; a line two failed turns held is acked past with one set_aside record, told to her next turn.
A turn decided is the turn that did not fail, so a trace that cannot be written no longer makes her answer again; the
mouth's ack follows the turn. The put is stamped at the put and strictly later than the stored updatedAt (P5), and the
fake store enforces P5 with stamps after the turn began. The turn key is the newest seq and her trace's length. The drain
reads every page the heartbeat reads (read_pending, shared).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A member's untagged new message in a public room that names no Mind wakes exactly one Mind when no Mind of the roster has spoken there within the exchange window. She is the winner of tempo::pick among the Minds that hear the line, so the poll and the simulator choose the same one; a handled key (the poll) or the simulator's taken set keeps it once per line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Outcome::NoOrgan is deleted. carry builds the organs only after the brakes allow a turn, reads her state and pending once, takes at most TURNS_PER_START turns through take with the mouth, puts under the updatedAt she was read at (one re-apply on stale, put_refused in the record on a second refusal), appends the record after the put, and acks once. mind-persona gains trace --instance --last.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The actuator's send takes the id take names, {key}:s{index}, so the key has one source; the Mouth holds the newest event of each room her input held and sends the basis of the room it speaks in. A two-line turn pins distinct request ids.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Mind run ends after a silence of the exchange window, so a tag in #minds or a Mind-to-Mind DM wakes her again. An edit or a notice wakes no one on any path. A direct message is hers by address::is_for alone. The drain's own rooms come from heartbeat::own_rooms_among (the poll's stewardship reader, no forge URL), and an unread mind or mouth is named in the run's report.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>