Commit graph

1,171 commits

Author SHA1 Message Date
Meta Vens
23b2d75197 interpreter: schema under the API's 24 optional properties; every section and list required, empty means nothing moved
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 20:11:06 +01:00
Meta Vens
95ce1f016d interpreter: tests for the API's optional-property limit and for an all-empty answer 2026-12-01 20:11:02 +01:00
Meta Vens
0e887b362e persona: a line in another waking room that is not to her gives its sender no arrival
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:45:26 +01:00
Meta Vens
7575395c4d persona: the simulator's per-wake Interpreter line ends in an escaped newline, not a raw one
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 16:35:52 +01:00
Meta Vens
5c703f263e persona: the simulator's Interpreter call takes a fresh id, as its Projector and Persona calls do
A repeat run reused r1-t1-i and the connector refused the call as a replay.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 16:29:09 +01:00
Meta Vens
e13824cabc persona: the simulator's report says why an Interpreter step kept nothing
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 16:27:11 +01:00
Meta Vens
37a3c83a20 persona: the simulator's header says the Interpreter is asked
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 16:23:41 +01:00
Meta Vens
b1c5e44d58 persona tests: the report takes the run by reference
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 16:20:09 +01:00
Meta Vens
d4ea78ce4d persona tests: the test-only re-exports are test-only; the run's end state rides the cast; the packet names the operator in the room line
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 16:18:41 +01:00
Meta Vens
50852da101 persona: a line is said to her only when it is not for another Mind; the simulator runs the drain's Interpreter step
A human's line in her own room wakes her but was headed 'Said to her' even when it named, tagged or replied to another Mind
(address::others_addressed, the one derivation, also behind persona::addressees). The Interpreter's call, apply and put move
to projection::interpret (heard_of, interpret_and_put, put_applied) so the drain and the simulator take the same step; the
simulator runs it after each wake on an in-run copy of her state and reports deltas by family, intentions, identity changes
and guard refusals per wake, and its header no longer claims a speech or a state commit it did not run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 16:16:18 +01:00
Meta Vens
2d48a1e7dd persona: the left-out-lines note says they will be handled when the wake completes, not that they were
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:19:43 +01:00
Meta Vens
b9bb470e07 persona tests: the raised cap stays inside the tuning's range; the hand count reads without int_plus_one
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 15:11:21 +01:00
Meta Vens
8f04b70f86 persona: each held start appends its own hold row; a day's old holds are no evidence; the left-out note says what became of the lines (Soul s4)
failed_run counts hold rows after the last completed wake as it counts failed wakes, and only those dated today (UTC). The rewrite-in-place row and its starts counter are gone. Hold rows stay out of her packet's window. The backlog note no longer points at a read tool that cannot read a room. MemTrace reads in the live trace's (seq, at) order; backlog edge tests pin a newest line over budget, the hand-computed count and the oldest left-out line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 15:09:10 +01:00
Meta Vens
74955b9eef persona: her agent's input keeps the newest held lines up to 16 KB and says how many older it left out (Soul s3)
The left-out lines are still held by the wake, so its completion acks them; she is told the count and where they start and reads
them back with her read tool.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:51:54 +01:00
Meta Vens
87a61f3878 persona: the drain alone decides the day cap holds her; held starts back the poll off like failed wakes (Soul s3)
The poll no longer reads the hold row's until: a held start rewrites the UTC day's one row with its count of starts, failed_run
counts them as failed starts (no strike), so a raised cap releases her within a beat and a bogus row holds no one. Test at exactly
the cap.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:51:54 +01:00
Meta Vens
c31afce562 persona: a Persona whose agent has spent its day cap does not wake; her lines stay unacked, one hold row a UTC day, and the poll starts no unit for her until it ends (ruling persona-day-cap-behaviour, hold-agent-only)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 14:34:35 +01:00
Meta Vens
97e277c6dc persona: the Interpreter-failure test compares her agent's calls with an untouched wake's 2026-12-01 02:20:22 +01:00
Meta Vens
0d9e001995 persona: the Interpreter runs after a completed agent turn, so a retried wake never applies her deltas twice; a settled-unknown say frees its room (Soul s1) 2026-12-01 02:15:05 +01:00
Meta Vens
f96a1b7346 mind-body: the executors and the box runner stay crate-private; the public surface snapshot follows the cut
Start gains agent, session and box_socket; Request carries told and tools; Wake carries fresh; sandbox exposes
serve_box, BoxPaths and COMMONS_RW for the box-exec verb. ClaudeSpawner::in_sandbox, outcome::Refusal and
ReadRefusal leave the surface.

Cut persona-agent-tools (A2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 01:52:52 +01:00
Meta Vens
8edff22993 persona: her agent's tools (say, read, shell, request_tool) with code-written receipts; the wake runs Projector, Persona, Interpreter, agent, wake record, ack
say keeps what survives of the drain's sends: the handed row is in her trace before the mouth is called (a trace that
refuses it sends nothing, not_sent); send ids {wake}:c{n}; a row still handed at the next start is resent with resend
inside OWED_WINDOW_S and settled unknown past it (settle_handed, no model call); the mouth's answers read through
Refusal::reading (NotSent, SendFailed, ResendUnknown); a room holding a handed or untold unknown say is refused
room_unsettled. Identity posts go through the same Mouth::post. read covers the forge, her mind, campaigns and plain
web, error with the failure's words; shell writes one request to her box socket and passes its receipt through;
request_tool is a receipt for Self.

The drain settles handed sends, runs the stages once, wires agent::step with the four executors, and writes the wake
record last with where it began; an agent outage the connector typed strikes nothing. What she is told is one
derivation, outcome::told: every telling row from her last completed wake's start on, rendered by tool and status;
turn.rs keeps decided, failed_run and history over wake records, and untold/is_real are gone. exchange_of reads say
and read receipts. Affordances and her body line come from the tool set. A fresh session is seeded with her ready
intentions. ReadRefusal, the amendable/already_read/refused_reads packet fields and the speech-shaped outcome go.

Cut persona-agent-tools (A2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 01:46:42 +01:00
Meta Vens
9cd4caf175 sandbox: the one bwrap profile moves to sandbox.rs with extra_rw, and her box's side of a shell command (run_box, serve_box)
ClaudeSpawner's sandboxed spawn was reached only from its own test since the Persona organ went live (the Self runs
unsandboxed through ClaudeSpawner::new), so that use is deleted rather than kept: the profile now has one caller,
the box. run_box reads one {command, timeout_s} request, runs /bin/sh -c under the profile with the commons data
dirs bound writable, stops it at its timeout, and answers {tool: shell, status, exit, duration_ms, stdout_tail,
stderr_tail, wrote}.

Cut persona-agent-tools (A2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 01:46:31 +01:00
Meta Vens
e365113179 projector: a long tendency is clipped to the room left and reported, not the section emptied (s1.tendencies-vanish-silently)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 01:07:23 +01:00
Meta Vens
f9f85890ac projector: the golden packet lists the drive it now shows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:39:31 +01:00
Meta Vens
60e629a7dc projector: her read and what moved a bond ride within one bond's allowance; golden and frame follow
The people's guard is unchanged: a bond line carries her read of the person
and the claim that last moved it only while the line still fits what one bond
is allowed, else the bare line as before. The frame names the fixed lines
(pressing, means to do, feelings, tendencies) as always with her.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:36:03 +01:00
Meta Vens
c42ff2f39b projector: she feels her whole state each wake
Select now renders what was written and never read: her strongest drives as
pressing lines and her ready, unexpired intentions as means-to-do lines (fixed
slots under the notes' guard, never drawn); named feelings in the mood line,
read after decay with their source; her read of a person and the claim that
last moved a bond on that bond line; a bond line for each person the lines she
is shown name though absent; her standing tendencies with her identity. Words,
never numbers; every line under the item's own privacy scope; no one's words
reach the Projector, only her own state's text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:24:25 +01:00
Meta Vens
1dbc8f443b persona: a put whose reply was lost leaves its identity record pending
When the store commits but the reply is lost, the put errors with the outcome
unknown. interpreted() voided the pending identity_diff then, and it was never
posted. A put known not to have landed (refused, stale again) still voids;
an unknown one stays pending and the next wake's owed_identity settles it
from her state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:19:57 +01:00
Meta Vens
c2fc1b8393 persona: the pending-identity test keys its records as the drain does
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:05:47 +01:00
Meta Vens
bd770abc13 persona: hash the identity diff with sha2's Sha256
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:04:16 +01:00
Meta Vens
26628892e9 persona: fix a stray closing arm
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:03:37 +01:00
Meta Vens
4ef517b881 persona: an identity diff is written to her trace before the put, posted under a stable request id after it, and owed posts are retried next wake
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:01:32 +01:00
Meta Vens
1ae14ade13 persona: the commit's bounds are per wake per target, merged by sum clamped to one step; labels are quote-checked; a made bond does not move
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 00:01:32 +01:00
Meta Vens
5c0d3764f0 persona: the Interpreter is one cheap schema call of typed deltas in six families, applied by commit::apply with bounds, validated, put once, receipted
The Proposal enum and the turn-writes-shortTerm-only doc are deleted; commit::apply owns every change a wake makes to her state (bonds +-0.08, needs and pressures +-0.12, mood by plasticity, feelings halving in 8 h, notes, intentions expiring within a week). I16.7 echo and quote checks live in commit.rs. put_applied re-applies deltas on PersonaStale, validates the document before any put, and the drain appends the Interpreter's receipt and posts identity diffs to the review room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:32:44 +01:00
Meta Vens
5a9c851890 agent: a settle names its call row by the row's place in her trace; a call that reports no token is charged the worst case
A retried wake reuses its wake id, so keying settle rows by call id let a retry's
settle price an orphan reservation. Ledger::append answers the row's seq, the call
row's place is echoed as the settle's reserved, and the day sum pairs by it. A usage
that parses with all-zero tokens is charged the wake cap, as missing usage is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:56:38 +01:00
Meta Vens
ad5e9ed13b agent: the day cap fails closed; cache prices follow the pricing page; the session's edges are pinned
A call row is written to her trace before the call is made, holding its place in
the day at the wake cap; a settle row after it names the usage and prices it. A
trace that cannot be read or cannot take the call row makes no call; a settle row
that cannot be written ends the wake with no further call and the call still at the
worst case; a failed call that reports no usage is charged the worst case. A row
whose time or usage does not read counts against the day. Every ledger fault is
the turn's Failed (outage), never an Err.

Price carries the 5-minute and 1-hour cache write rates; Sonnet 5.5 is $0.10 a
cache hit, $2.50 and $4 a write. The compile_fail doctests name every field so
privacy is all they can fail on. Tests pin the digest's model and tool
parameters, the mid-wake cold update, cache_min_tokens, ttl, too_long and the
wake and day caps at equality, created_at, every priced term, the agent tuning's
bounds, the plain ask over a kit, and the session store's discard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:32:46 +01:00
Meta Vens
9d18d84604 Her agent: agent::step, one bounded turn of a persistent session over KitModel with tools
agent::step owns one agent turn: the loop over executors, its bounds and the
session's freshness. Tool calls (8), model calls (10) and spend ($0.40) per wake
and spend per Mind per UTC day ($3.00, read back from her trace's call rows and
priced by tuning [agent]) are checked before every call; a bound ends the loop
with a cap receipt. Every receipt, call and discard is a trace row (TraceLedger;
turn::is_real reads no agent row as a turn). FileSession keeps the conversation
until the cache is predicted cold (ttl, digest, size, orphan tool call) or observed
cold (a warm prefix read as nothing), when it is discarded with a session_discarded row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:32:46 +01:00
Meta Vens
5f46407663 KitModel::step hands back tool calls; the connector pin moves to the Messages API backend
KitModel::run's EndTurn-only match and its silent drop of ToolCall events are
deleted. step() is the one call: it returns the transcript items, the text, the
tool calls, the stop and the usage, with tools, auto tool choice and the cache
retention on the request. ask stays a tool-less turn over it and keeps
its failure on any other stop. model-connector moves to ModelConnector main
edf2f8e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:32:45 +01:00
Meta Vens
e4aa73b4dc drain_tests: order the overflow assertions after the acks binding
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 22:14:45 +01:00
Meta Vens
4cdcef5c9b drain_tests: the overflowed turn room holds all 200 events and acks through the 200th
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 22:13:54 +01:00
Meta Vens
5c4742aa8e public surface: HeartbeatState declares the retired slot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 22:02:10 +01:00
Meta Vens
266e31a2ff heartbeat: keep slot 3 declared as a retired slot so a deployed four-slot state still saves; pin the turn room's overflow count and acks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 22:00:05 +01:00
Meta Vens
1d8859f4d5 public_surface: HeartbeatState no longer holds owed_starts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:29:01 +01:00
Meta Vens
67ca14b90b persona: name the page's shown lines under a key the packet's elsewhere check does not trip; restore the arrivals senders
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:27:22 +01:00
Meta Vens
cf029115cc mind-body: drop the last unused import and field clippy found
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:24:35 +01:00
Meta Vens
35f0e40681 persona: one failure, one room; hold only what she was shown
- A wake that fails for a reason that is no outage makes the next wake take only the oldest waking room. A non-outage failure strikes the
  oldest line only in a wake over one room; a blended wake strikes nothing, so an innocent room is never set aside for another's line.
- A wake holds, of the other waking rooms, the lines the Persona's page had room for (Waked::elsewhere_shown), her own and what is no
  message. The ack never passes an undecided line of a room still owed a wake, taken or not.
- A failed wake acks nothing.
- The wake record names its kind. drain_tests is rebuilt without the send-era fakes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:23:36 +01:00
Meta Vens
4f88185a2e mind-body: delete the dead test code the speech cut left
Unused imports and test helpers for deleted contracts (Replaying, X5Model, x5_plan, FailingPersona, Deaf, the outcome and read fixtures and the
empty span tests module), found by clippy --all-targets -D warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:23:36 +01:00
Meta Vens
7b3db59258 heartbeat: delete the owed waker; a record's owed list is read by no one
Nothing settles an owed send now, so a poll that started a Mind for one would start her forever. Removes owes/owes_send, the heartbeat's
owed_starts state field and its backoff, and the tests that pinned them; a record carrying `owed` decides its held lines and wakes no one
(t_l3_an_owed_list_in_her_trace_starts_no_one). No live trace holds a turn_record with an owed key (read-only key scan, 2026-11-29).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:23:28 +01:00
Meta Vens
7dd74ec1cc persona: one wake per start; the Projector and Persona run once over every waking room
Delete the Interpreter's speech module, its tests and golden, the Persona's
mid-stream reads and continuations, the draft markup and speech form, Model::converse
and the per-room turn loop (TURNS_PER_START), the send machinery the drain no longer
reaches (deliver, Actuator, Mouth, owed sends), and the simulator's simulated room as
an actuator. Add projection::wake: one packet for the turn's room (the oldest waking
line's), every other waking room an arrival (who, where, when; never the words) and
its lines verbatim for the Persona; the Projector once, the Persona once. persona::carry
takes one wake per start, writes one wake record, and acks through the highest held seq
when it completed. A failed wake acks nothing; two non-outage failures set the oldest
waking line aside. The drain posts nothing until the agent is wired (A2); put_applied
and Taken are the seam the Interpreter's deltas attach to (P2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:50:46 +01:00
e951555007 persona: her outcome is read from her latest real turn (#85) 2026-11-28 07:59:54 +00:00
d59a702d72 Cargo.lock: mind-body lists ureka dep ureq (#84) 2026-11-28 07:09:17 +00:00
4285ec749f Persona live organ: one-turn, drain, wake-humans-pace, turn memory (squash of hands/persona-live-drain) (#83) 2026-11-28 07:05:44 +00:00