Commit graph

1,360 commits

Author SHA1 Message Date
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
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
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
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
Meta Vens
9852a83a18 Merge branch 'hands/persona-live-one-turn' into hands/persona-live-drain 2026-11-27 21:03:27 +01:00
Meta Vens
536ad6cbec Persona T7 fix: a retry note past the cap is recorded as refused, an unparsable retry says why, the own-line boundaries are pinned (Soul s2 N1, N2, N4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:56:25 +01:00
Meta Vens
b042bee00b Persona T7 fix: the live repo root and recall titles-only lines are pinned by tests (Soul s2 N5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:56:24 +01:00
Meta Vens
4e0df42e85 Persona wake: the poll pins her own room from her stewardships
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:08:18 +01:00
Meta Vens
f9a0e1ef2d Persona T7 fix: the retry's call record compiles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:06:53 +01:00
Meta Vens
a907e7ffdf Persona T7 fix: a note is exempt only for a line she already posted, whole words and at least ECHO_MIN_WORDS; the retry is tested, records why it failed, and reads at most one note per note sent back (Soul s1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:04:39 +01:00
Meta Vens
70417d2de2 Persona T7 fix: recorded root and mind reads say titles-only as live does; a rulings list marks only the rows that lack text (Soul s1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:04:38 +01:00
Meta Vens
f9f966cb10 Persona wake: tests follow the one rule
The policy cases go; t_w1 cases pin the rule, the facts of both paths and her own rooms. Heartbeat poll tests read a Mind's tag, not its prose, and a member's address or direct message wakes her.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:58:54 +01:00
Meta Vens
a52c7dc51f Persona wake: one humans-pace rule, owned by the heartbeat for the poll and the simulator
WakePolicy and the plan's wake field are gone. heartbeat::wakes is the humans-pace rule; heartbeat::line_facts owns the Mind run, her own room and her exchange (moved from the simulator); heartbeat::own_rooms derives her rooms from her stewardships. The poll weighs each delivery with the facts of its context lines, and the live drain sets own_rooms from her stewarded repos. A plan that still carries wake fails to parse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:58:52 +01:00
Meta Vens
7ced536c17 Persona turn: Taken has no methods; the committed surface names the two actuator impls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:41:22 +01:00
Meta Vens
e8cba0e2fe Persona turn: Taken keeps no second copy of what the commit did
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:26:02 +01:00
Meta Vens
83778697e3 Persona turn: the committed public surface and the docs follow the trace record
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:18:01 +01:00
Meta Vens
999bca7f95 Persona turn: one turn for the simulator and the live organ, behind a send/edit seam
projection::turn::take owns one turn: project, each said line through the actuator, each amendment through it, the record, commit::apply. The simulator's room and the mouth are its two actuators; the simulator's inline turn block and its private recent/last/last_turn vectors are deleted, and what they held is read from the run's records by turn::history. The mouth refuses an edit no_edit_at_the_mouth, which outcome_of now tells.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:13:02 +01:00
Meta Vens
d819fa314c Persona trace: the turn record is the stored row; TurnTrace and TraceItem v1 are deleted
FileTrace keeps each record as a CultCache entry keyed <run>-t<turn> with the record Value as its payload and lists them oldest first by when.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:13:02 +01:00
Meta Vens
900e8fea6c Persona T7: the note retry's helpers are free functions, so the public surface does not change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:50:08 +01:00
Meta Vens
9d02af2240 Persona T7: a note retry skips what the first pass already settled; tests follow the titles-only line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:47:08 +01:00
Meta Vens
684d8a61b1 Persona T7: a note refused for its wording goes back to the Interpreter once; a note may carry her own draft text (R19)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:44:21 +01:00
Meta Vens
db2fd8af76 Persona T7: a read that returns only titles says the contents were not read (R19, Heimdall described PR contents from a title list)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:44:20 +01:00
Meta Vens
5b87285504 Persona T6: golden chat packet shows her unresolved note (t1-m0) every wake
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 02:47:21 +01:00
Meta Vens
cdff81fc3e Persona T6: notes refuse a run of a heard line; every short-term note shown; refused sends told (map 16.35, Soul's R18)
- I16.7 through notes: a `remember` note sharing a run of ECHO_MIN_WORDS (8) consecutive
  folded tokens with any line she was shown or text she read this wake is refused `echo`
  (`interpret::quotes`). R18's 51 notes: runs of 6/7/8+ against the lines shown were 5/2/1;
  every run under 8 names the thing asked for, the one at 9 copies Meta's request.
- Recall: unresolved short-term notes leave the draw (`Pool::ShortTerm`) and are all shown
  first, whole, under notes_bytes; past it the rest are left out, ordered by presence,
  importance and relevance, the section is bound and nothing is drawn. Recency and
  `select.memory_tau_h` are deleted (dead).
- Packet::memories lists short-term notes only: a crystallized memory is no resolvable id.
- A said line the actuator refused (`refused_sends`, now with its room) is told as a line
  that did not go out (Part::Unsent), word-free to the Projector, settled as other rows.
- commit::short_term keeps making sibling arrays: the schema requires all three.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 02:45:38 +01:00
Meta Vens
4c9db02afe Persona T5: the plain unsent row, derived by code with no label (map 16.35.6, 16.35.12)
- outcome: Part::Unsent { room, text, reach }. Each draft of the wake (the decision now carries `drafts`) that was
  not said, added to a line, left for Self, refused, or named by an addressee or elsewhere gap is told
  "{Subj} had drafted "...", and it did not go out."; its event form carries no words. settle checks it against
  the receipts as every such row; a missing_affordance reach on it is a clause of its one row (K63).
- R15 X.1 r1's dropped reply to Meta is told next wake; R15/R16 E.1/E.5 gap-only answers are told plainly.
- Tests per 16.35.12 T5; row-table tests list the new variant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:45:01 +01:00
Meta Vens
093bfd867f Persona T4: memory in; the commit writes thoughtMemory.shortTerm alone (map 16.35.12, ruling persona-memory-not-machinery)
- The Interpreter's contract gains `remember` (third-person notes: text, about, importance, private) and `resolve`
  (ids of the memories listed to it). decide_in refuses a note empty, over MEMORY_BYTES (600), an echo of what she
  was shown or read, or past MEMORIES_MAX (4); an about id no listed person is dropped and reported; a resolve id
  not in Packet.memories is refused memory_unlisted. Refusals ride in `memory_refused`, reported, never told.
- commit::apply(state, record, key, now) is the one applier: Remember appends one anchored thought `{key}-m{i}`
  tagged room:/about:/private; Resolve sets one short-term memory resolved; resolved ones older than
  RESOLVED_KEPT_DAYS (7) are pruned. A failed record applies nothing. It writes nothing outside shortTerm.
- select: Packet.memories lists the memory picks by id for the Interpreter; a short-term memory's nearness is
  recency plus relevance (16.35.5). The frame and prompt carry the memory list.
- simulate: per-turn memory section and per-Mind memories written/resolved/refused/short-term-at-end.
- Tests per 16.35.12 T4, the X.5 timeline probe (16.35.13 check 8), golden speech frame regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:40:57 +01:00
Meta Vens
ef6d36afec Persona T3: draft accounting and the fault retry out; the answer refuses unknown fields (map 16.35.12)
No draft's fate is a label of the Interpreter's, and no retry serves an account. Deleted:
the answer's unsent (with its declined and superseded fates, unaccounted and
unsent_cited), Faults and the fault branch of the retry, Refusal::Undecided, the
outcome's Declined row, the harness's unsent print, and the frame's accounting
sentences. The retry runs once, only for an answer off the contract; an answer that
parses stands, whatever it leaves of her drafts. Answer, and the line, addition and note
inside it, are deny_unknown_fields: an answer carrying hold, state, promises, unsent or
any other deleted field is not the contract, and nothing gives such a field an effect.
A draft that did not go out is told by no row until T5's derived row.

Negative checks: t3_negative_grep; deleted fields at the top and in a line or addition
are not the contract, retried under a new request id, failed when repeated; an answer
that parses is never retried; the contract's required fields and item properties, and
an exhaustive match over the structural refusals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:19:17 +01:00
Meta Vens
2bbf49fa4f Persona T2: promises out (map 16.35.12, ruling persona-memory-not-machinery)
No promise is her state, a field of the answer, a proposal, a row or a tuning key.
Deleted: the answer's promises (with reaffirms, needs, now, done_by), state closes and
reopen; the done_by fault; commit's promise rows, evidence resolver, receipts, needs,
narrowing and pruning (the applier is now the one path with no kind built until T4);
select's Promised view and the Interpreter's promise list; read::reach's promise
targets and read::answers; outcome's Closed, NowUndone and StillOpen, and with them
Person and the outcome's names (no row names anyone now); Tried.at; tuning's
promises_bytes; the simulator's promise report and closes metric; the decision's
lines, promises and conversation_reads, which only the commit's evidence read; the
persona schema's commitments, commitment, commitmentNeeds and readRequest.
Part::Promise is SaidUnbacked, the say-then-amend row (persona-unbacked-intent-say-then-amend).

Negative checks: t2_negative_grep over the Persona turn's sources, fixtures, public
surface and schema; an exhaustive match pins Proposal with no kind; the simulator's put
check and the door refuse a state carrying commitments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:01:08 +01:00
Meta Vens
92e926a609 Persona T1: holds out (map 16.35.12, ruling persona-memory-not-machinery)
No hold is her state, a field of the answer, a refusal or an outcome row. Deleted: the
words gate (held_gate and its helpers), the hold judgments (hold, no_hold, hold_released,
holds, clear_of), Refusal::Held, the hold faults of the retry, commit's hold_open,
hold_release, rehold and carry_held, select's Hold view and hold_line, Quotable.to_her,
Amendable.at_ms, outcome's HeldFor and HoldBroken, tuning's hold_bytes, and the persona
schema's holds and hold. Lines are settled in one pass again, in answer order, with
OverLines counted there.

Negative checks: t1_negative_grep over mind-body and the schema; the simulator's put
check refuses a state carrying holds; the door refuses it (huginn-mind persona); R15's two
lines to Kiko, refused held then, are said as drafted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:33:12 +01:00
Meta Vens
67b54f4855 Persona K66: a failed call's entry in the wake's calls names its reason
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:44:46 +01:00
Meta Vens
c3a3761c78 Persona K65/K66: drop the K69a run count that rode along (K69a is not in this batch)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:44:26 +01:00
Meta Vens
76c9a0a16a Revert "Persona K71: a repo key keeps its org; K64's read_before skips searches"
This reverts commit fed9094c69.
2026-11-22 23:44:04 +01:00
Meta Vens
06d353c44e Revert "Persona K67/K68/K69a: no field clears an obligation; required judgments recorded; who has nothing from her is derived"
This reverts commit 92126d79cd.
2026-11-22 23:44:04 +01:00
Meta Vens
b65b3ac468 Revert "Persona K67: the public surface loses DoneBy and By"
This reverts commit 1bc8d614a4.
2026-11-22 23:44:04 +01:00
Meta Vens
1bc8d614a4 Persona K67: the public surface loses DoneBy and By
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:41:41 +01:00
Meta Vens
92126d79cd Persona K67/K68/K69a: no field clears an obligation; required judgments recorded; who has nothing from her is derived
K67: done_by deleted (schema items, DoneBy, By, done_faults, Faults.undone,
done_now, done_by_faults, its contract clause and the K61 tests that pinned
it). The clause lists each act a draft says she is doing now that no act of
the answer does. A promise whose words are not an act in its draft (not in
it, or under four words) is a contract fault, retried with one paragraph;
after a failed retry it opens with the draft's whole line, reported as
promise_whole_line. promises_unused is gone: every promise listed opens.
Soul's P1a2, P1b, P1b2, P1d inverted; P1a pinned as the model's omission.

K68: the decision records no_hold (listed ids); a line both held and in
no_hold is a fault, retried, and after a failed retry the hold opens and
heard_unaccounted reports {line, reason: both}. heard_unaccounted entries
are now {line, reason}.

K69a: required no_answer [{line, quote}]. Code resolves each against the
lines said to her and locates a quote in her thought outside every draft
(four words or more), else drops it to no_answer_unlocated; unanswered is
the senders of lines said to her that no said line mentions or replies to
and no_answer does not list. A located decline is told next turn ("{Who}
turned to her, and she chose not to answer this time. In her thought:
..."), event form without words; a null quote is not told. Reports render
no_hold, no_answer and unanswered. Golden speech frame updated.

Map 16.34.5 to 16.34.7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:37:24 +01:00
Meta Vens
7d72bbe9d6 Persona K65/K66: a failed wake sees nothing; the output cap is a runaway guard
K65: the simulator advances seen and last_turn only for a wake whose record
carries a decision, so a failed wake's lines wake her again and show again
under "Said to her" (X.5 r2 replayed); broke_after still sees. A wake that
keeps failing is now woken every round (a_failed_call_is_a_failure... counts
4, not 2): the simulator's rounds bound it; live, the ack is C3c's.

K66: MAX_OUTPUT_TOKENS 1024 -> 4096 for every stage. The X.5 r2 failure was
the claude CLI's own output-limit recovery: four turns, each max_tokens at
1024 (708-904 of them thinking), then "API Error: Claude's response exceeded
the 1024 output token maximum", reported as Provider. The live connector's
per-caller admission caps output at 32768, so 4096 is admitted. A failed
call's entry in the wake's calls names its reason; the run report counts
Interpreter calls over 75% of the cap, and (K69a) wakes ending with an
addresser unanswered.

Map 16.34.3, 16.34.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:37:20 +01:00
Meta Vens
fed9094c69 Persona K71: a repo key keeps its org; K64's read_before skips searches
ReadRequest::normal writes repo:{org}/{name}, the org lowercased, so another
org's #125 is not GameCult's (Soul's K64d, inverted). A search need made after
the same search stays a search need, as in the other order: a search reads
none of what it finds (K64e, inverted; K64e2 unchanged). narrows compares
through normal() instead of a second spelling of the key.

Map 16.34.8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:37:17 +01:00
Meta Vens
2562f01372 Persona K61: pin that a note code refuses does not do the act a line states (mutant k61-done-note-unleft)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:53:43 +01:00
Meta Vens
6d1eadc489 Persona K64: pin the view's guard, no "not read it yet" beside a found read of the same target in the conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:57:48 +01:00
Meta Vens
8ffb4fe6a8 Persona K61/K63/K64: an act stated as under way is done by the decision or is her promise; one draft, one row, "had drafted"; a read need on a target already read is words
K61 (map 16.33.5): each promise entry carries `now` and `done_by` (a draft said or added, the read, or the note). A
`done_by` naming an act the answer does not make is a contract fault, asked again once; after a failed retry it reads as
null. At the decision an act is done only by an act that happened (a draft said or added, the read made, the note left);
anything else opens as her promise, and one opened open from a `now` entry is told next turn ("nothing in her turn did
it"; `Applied.now_opened`, `Part::NowUndone`). Promises are decided after the read resolves.

K63: a `missing_affordance` gap naming a draft that did not go out is a clause of that draft's row, never its own row
(a superseded draft, which no row tells, keeps the reach row); every row of an unsent draft ends "had drafted".

K64: a read need whose target a found read of this conversation already holds opens as `words`, with `readBefore`
{at, of} (persona_state.v0 gains the optional field); the reaffirm narrowing path does the same. Her view renders
"read it {when}, before this promise", and never "not read it yet" beside a read of the same target in the conversation.

Replays from R16: X.3 r2 and r8, E.5 r1, X.5 r5/r6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:57:15 +01:00