Commit graph

1,397 commits

Author SHA1 Message Date
Meta Vens
cd5d1d51f6 persona drain tests: a record that holds an unknown send and a send still owed owes it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 05:48:56 +01:00
Meta Vens
ccecac90e0 persona drain tests: Soul s8's DM sequence and held-sibling record against a mouth that vouches only for what it attempted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 05:48:41 +01:00
Meta Vens
0c06eaf31e persona drain: a send is written ahead as handed over; one never handed over goes out as a first send; NotSent clears the mark; a refused resend is unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 05:48:03 +01:00
Meta Vens
28b08e59ba chat_rudp test: a resend crosses the wire as the v3 kind and the mouth's refusal of it decodes; every refusal kind round-trips
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 05:48:03 +01:00
Meta Vens
65974e2196 persona poll: starts for a send owed back off by the poll's own count of them, so a trace that takes no writes is still waited out
The poll keeps, in its heartbeat state, how many starts in a row it made for a send her trace holds owed since it last saw her owe none, and waits out
the next as it waits out failed wakes: 20 s doubling to the beat. Over 30 minutes of one-minute polls she is started 7 times, not 30, the last still inside
the 25 minutes a repeat is safe. It reads nothing from her trace, so a full state disk cannot defeat it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 05:48:02 +01:00
Meta Vens
33eb637c15 persona drain: a resend the mouth cannot vouch for is unknown, never posted again
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>
2026-11-28 04:52:01 +01:00
Meta Vens
883fe34d6b persona drain: pins on the owed window, the unknown of every send, and the wake rule over the owed waker
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:48:04 +01:00
Meta Vens
8b6ec7bd8e persona drain: one predicate says a record owes a send
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>
2026-11-28 04:47:49 +01:00
Meta Vens
e3bb1509f5 persona drain: a start that cannot rewrite a record it owes fails as an outage
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>
2026-11-28 04:47:49 +01:00
Meta Vens
6eaf468b07 persona drain: a send that turns unknown holds its room until she is told
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>
2026-11-28 04:47:12 +01:00
Meta Vens
d30bf79b86 persona drain: a mouth answer that is no answer keeps the send owed; every repeat of an owed send says resend
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>
2026-11-28 04:47:12 +01:00
Meta Vens
083d58a9a5 persona drain: the only receipt is the mouth's answer; an owed send starts her; her lines keep their order
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>
2026-11-28 04:02:31 +01:00
Meta Vens
659bc6aa2b heartbeat beat: a Mind waiting out failed wakes is not the beat's pick
Cooling is part of a Mind's standing, so the poll's floor and the beat read one derivation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 02:44:26 +01:00
Meta Vens
46016c46f7 persona drain: a decision is her trace's, owed or settled; owed sends go out first in every start; the heartbeat reads her trace without a lock
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>
2026-11-28 02:44:26 +01:00
Meta Vens
dd1ed19f3f heartbeat poll: her trace is the one record of what she decided; a failed wake is waited out
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>
2026-11-28 01:55:24 +01:00
Meta Vens
219f165a8c persona drain: her trace decides a line, and the decision is written before any of it is sent
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>
2026-11-28 01:55:14 +01:00
Meta Vens
cede45d2dd public surface: Failed carries outage
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 01:20:03 +01:00
Meta Vens
7111a4b56b persona drain: a send's transaction id carries a digest of its words, and her own line already in the room is the receipt of the send a retry repeats
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>
2026-11-28 01:16:23 +01:00
Meta Vens
417e287dad persona drain: unread stewardships fail the start; a line the heartbeat woke her for is waking; the live state view and its failure are pinned
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>
2026-11-28 01:07:48 +01:00
Meta Vens
a81cf69813 persona drain: an outage is the connector's typed kind, carried on the failure; a bad tuning file fails the start and strikes no line
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>
2026-11-28 01:05:08 +01:00
Meta Vens
8cdfa9972e persona wake: a claim whose turn left its line pending is given back, so the poll wakes her again and a taken hello is not barred from the other Minds
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>
2026-11-28 01:01:28 +01:00
Meta Vens
ae34484e90 persona wake: one derivation of the lines a wake is for; the poll records them before it starts her unit and the drain reads them
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>
2026-11-27 23:59:35 +01:00
Meta Vens
25706ea647 Merge hands/persona-wake-humans-pace into the drain: humans-pace rule and open floor over the drain, strikes and set-aside
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>
2026-11-27 23:59:35 +01:00
Meta Vens
ecb7f29081 persona drain: a send is named by the line it answers, a beat's by its start; a record's key is her trace's length
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>
2026-11-27 23:45:31 +01:00
Meta Vens
ad2d3a1001 outcome: the set-aside row names whose line it was and its words
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>
2026-11-27 23:26:43 +01:00
Meta Vens
08107ba8bb persona drain: a strike is the oldest held line's alone; outages are one explicit list and every other failure is a strike
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>
2026-11-27 23:20:04 +01:00
Meta Vens
0ab26384f1 Public surface: heartbeat::woken_for and Request::woken_for
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:46:13 +01:00
Meta Vens
90e2ce935a Persona packet: a line the heartbeat woke her for is said to her
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>
2026-11-27 22:44:11 +01:00
Meta Vens
6088444907 Persona wake: a failed start passes the open hello to the next of the pick, and a taken hello is spoken for within the exchange window
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>
2026-11-27 22:40:40 +01:00
Meta Vens
8ece5cc676 persona drain tests: one copy of the two failure reasons
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:17:38 +01:00
Meta Vens
fbb6af32cc persona drain tests: the two failure reasons
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:16:20 +01:00
Meta Vens
f5cc11b30c persona drain: only a failure that is the line's is a strike; an outage, quota stop or connector failure is retried
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>
2026-11-27 22:16:12 +01:00
Meta Vens
d35e657261 persona: STRIKES is the drain's own, not public surface
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:02:32 +01:00
Meta Vens
f9357e8909 persona drain tests: the paged read, the turn key, the refused put told, the beat room, the unchanged state, the ack (Soul's pins)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:57:42 +01:00
Meta Vens
de720eacef Persona wake: the open floor has one form gate and one speaker gate, and its once-per-line and tagged-line cases are pinned
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:55:30 +01:00
Meta Vens
6e42673599 persona drain: a failed room cannot hold answered rooms; two failures set a line aside; the put is stamped at the put; keys without the clock
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>
2026-11-27 21:55:05 +01:00
Meta Vens
3c626d0d55 outcome: a refused put and a set-aside line are told to her plainly (put-refused-untold; the told form for the poison room)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:51:10 +01:00
Meta Vens
64e61dd20e Persona wake: a member's open hello in a public room wakes one Mind, the beat's pick
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>
2026-11-27 21:38:47 +01:00
Meta Vens
6be19aa069 persona test: no stray 'no organ' wording
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:24:23 +01:00
Meta Vens
a8983c3c19 mind-body public surface: the drain's Start, Put, PersonaStore, trace_lines
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:21:31 +01:00
Meta Vens
e34315a382 persona drain tests: clippy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:19:46 +01:00
Meta Vens
d9e80efbe3 persona: the put lives beside the drain, not in project; test fixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:17:29 +01:00
Meta Vens
a7f8d9d2e9 persona: ack after each turn, so a start killed between turns does not replay an answered message; fix compile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:15:05 +01:00
Meta Vens
325dfddbb1 persona: the live start is a drain (cut L2): one turn per room with a waking line, a put with one re-apply, ack below the first failed waking line
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>
2026-11-27 21:12:32 +01:00
Meta Vens
3d442259b0 turn: take names each send's id and the Mouth's basis is per room (L1 findings mouth-key-second-source, mouth-send-index-unpinned, mouth-basis-one-room)
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>
2026-11-27 21:12:31 +01:00
Meta Vens
4b134c3d1e Persona wake: the drain's own-rooms test follows the mind's one-instance rule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:11:40 +01:00
Meta Vens
355b6237a6 Persona wake: own_rooms takes its repos and aliases at their own lifetimes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:08:40 +01:00
Meta Vens
760cc8fb81 Persona wake: the simulator's tests drop FactLine's retired is_direct, and the parity test pins the Mind run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:07:24 +01:00
Meta Vens
c320966315 Persona wake: the Mind run lapses with the exchange window, only a new message wakes, one DM check, the drain reads her rooms as the poll does
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>
2026-11-27 21:07:19 +01:00
Meta Vens
9e06fb9745 Merge branch 'hands/persona-wake-humans-pace' into hands/persona-live-drain
# Conflicts:
#	crates/mind-body/src/projection/simulate/tests.rs
2026-11-27 21:03:56 +01:00