Commit graph

1,353 commits

Author SHA1 Message Date
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
Meta Vens
aa431fc139 Persona K60: verdict_faults covers the turn's room alone, a hold opened twice asks one verdict; readers pin (mutants)
The lines she may reply to and add to are the turn room's alone, so a hold opened from one covers every line and addition,
here or anywhere: the opening's place and an addition's own room decided nothing (four equivalent survivors). Pins: one
verdict per hold opened twice; a direct message's readers exclude her own line and another room's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:44:13 +01:00
Meta Vens
785b4d35c8 Persona K59/K60: one impl Faults; the public surface lists it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:08:27 +01:00
Meta Vens
5c371d1a6d Persona K60: the schema pins, the amendment record and Soul's p2 answer carry clear_of
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:05:39 +01:00
Meta Vens
1a76451219 Persona K60: the test shim states clear_of without inserting an absent amend list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:03:53 +01:00
Meta Vens
61ff97daf7 Persona K60: every line and addition into a covered room names each covering hold in holds or clear_of; one left out is retried, and after a failed retry is held under that hold
say and amend gain a required clear_of. verdict_faults finds a covering hold (listed, or opened by this answer, covering
anywhere or the room the draft goes into) named in neither list, and the one loop retries it. After a failed retry the
draft names it (Faults::named), so held_by and the words gate hold it, and decision.unverdicted reports it. clear_of is
recorded on the said line and the addition, clears nothing the words gate holds, and a Held line that named the hold
clear is reported in decision.clear_of_overruled. Tests replay R16 X.3 r1 and X.4 r7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:02:13 +01:00
Meta Vens
b0ebb1d05e Persona K59: the schema pins, k20's list and the speech golden carry no_hold and the said-to-her mark
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:00:59 +01:00
Meta Vens
b24b1ee322 Persona K59: every line said to her is a hold or no_hold; one left out is retried, and after a failed retry opens nothing and is reported
Quotable.to_her marks the chat turn's new lines to her, and the Interpreter's list shows them "(said to her)". The schema
requires no_hold; heard_faults retries through the one loop (Faults gathers the loop's three faults and names each in a
paragraph); a fault the retry leaves stands as decision.heard_unaccounted. Tests replay R16 X.3 r1, r5 and r7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:58:47 +01:00