C2: cut the mission organ and every Persona-side Mind write #75

Merged
eureka merged 7 commits from hands/persona-only-subtraction into main 2026-11-19 21:36:00 +00:00
Owner

Cut C2 of docs/persona-only-heartbeat-map.md (branch imagination/persona-only-heartbeat, d861574): delete the mission organ and every Persona-side Mind write. Rulings: eureka-body:ruling:persona-only-heartbeat, eureka-body:ruling:persona-only-divergence-parked. Delete-only; not to be merged or deployed by Hands.

Parked tags (both at 917430c, the last commit holding the code): parked/self-run-launch, parked/divergence-stream. Each tag's note names its return condition.

What goes

  • Persona: the live session organ whole. Mission prompts (TURN_INSTRUCTION, TURN_REMINDER, MESSAGES_HEADER, WORK_QUESTION, ANSWER_MESSAGES, WAKE_ASK, WORK_TAIL), PersonaReply (intent, remember, rule, settle, start_self_run, tempo vote, urgency) and reply_schema, the doctrine and persona-JSON prompt, start_session, PersonaInbox, act, every admission, start_self_run, the wear, responsibilities and tempo renderers. carry reads the brakes and answers Dead or NoOrgan. A start writes nothing and records no run.
  • Night: sleep.rs (a Mind-writing session on the deleted prelude). C4 retargets its contract from history.
  • Stream: stream.rs, mind-stream, and the dependencies only it used (ghostlight, ureq, the model-connector daemon dev feature).
  • attachment.rs, with the reply's save_attachment, its only caller.
  • Heartbeat: the Self-run branch, the self-ended wake, tempo votes and urgency, and every Mind write. A wake is brake, then alive, then Launcher::start. HeartbeatState gains last_turn_at/last_night_at as default slots, so the live heartbeat.cc still decodes. The beat is HEARTBEAT_BEAT_S, default 1800 s.
  • tempo: tally, fallback_beat, the PID controller and its sim. pick/score stay.

Kept for C3 (map keep list): Config, the brake read, the chat-addressing helpers, the tail renderer, FileTrace. Plus recall.rs and chat_image's loader. Code with no caller yet carries allow(dead_code) naming C3.

Verification (Yggdrasil, ygg-verify, rust 1.95 image)

  • cargo build --workspace --all-targets passes.
  • cargo clippy --workspace --all-targets -- -D warnings is clean.
  • cargo test --workspace --no-fail-fast: 1522 passed. The 36 failures are all huginn-daemon desk-door tests that refuse uid 0. Those two targets were rerun as uid 65534 and pass: lib 297, desk_door 14.
  • public_surface.txt was regenerated. The test is green.

🤖 Generated with Claude Code

Cut C2 of `docs/persona-only-heartbeat-map.md` (branch `imagination/persona-only-heartbeat`, `d861574`): delete the mission organ and every Persona-side Mind write. Rulings: `eureka-body:ruling:persona-only-heartbeat`, `eureka-body:ruling:persona-only-divergence-parked`. Delete-only; not to be merged or deployed by Hands. **Parked tags** (both at `917430c`, the last commit holding the code): `parked/self-run-launch`, `parked/divergence-stream`. Each tag's note names its return condition. **What goes** - Persona: the live session organ whole. Mission prompts (`TURN_INSTRUCTION`, `TURN_REMINDER`, `MESSAGES_HEADER`, `WORK_QUESTION`, `ANSWER_MESSAGES`, `WAKE_ASK`, `WORK_TAIL`), `PersonaReply` (intent, remember, rule, settle, start_self_run, tempo vote, urgency) and `reply_schema`, the doctrine and persona-JSON prompt, `start_session`, `PersonaInbox`, `act`, every admission, `start_self_run`, the wear, responsibilities and tempo renderers. `carry` reads the brakes and answers `Dead` or `NoOrgan`. A start writes nothing and records no run. - Night: `sleep.rs` (a Mind-writing session on the deleted prelude). C4 retargets its contract from history. - Stream: `stream.rs`, `mind-stream`, and the dependencies only it used (ghostlight, ureq, the model-connector daemon dev feature). - `attachment.rs`, with the reply's `save_attachment`, its only caller. - Heartbeat: the Self-run branch, the self-ended wake, tempo votes and urgency, and every Mind write. A wake is brake, then `alive`, then `Launcher::start`. `HeartbeatState` gains `last_turn_at`/`last_night_at` as default slots, so the live `heartbeat.cc` still decodes. The beat is `HEARTBEAT_BEAT_S`, default 1800 s. - tempo: `tally`, `fallback_beat`, the PID controller and its sim. `pick`/`score` stay. **Kept for C3** (map keep list): Config, the brake read, the chat-addressing helpers, the tail renderer, FileTrace. Plus `recall.rs` and `chat_image`'s loader. Code with no caller yet carries `allow(dead_code)` naming C3. **Verification** (Yggdrasil, `ygg-verify`, rust 1.95 image) - `cargo build --workspace --all-targets` passes. - `cargo clippy --workspace --all-targets -- -D warnings` is clean. - `cargo test --workspace --no-fail-fast`: 1522 passed. The 36 failures are all huginn-daemon desk-door tests that refuse uid 0. Those two targets were rerun as uid 65534 and pass: lib 297, `desk_door` 14. - `public_surface.txt` was regenerated. The test is green. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Deletes stream.rs, its tests, the mind-stream binary and its integration
tests, and the dependencies only it used (ghostlight-persona-projection,
ureq, the model-connector daemon dev feature). The organ is kept at tag
parked/divergence-stream, whose note names the ruling's return condition.
A brake hold still stops mind-stream@ units a host has installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Map: docs/persona-only-heartbeat-map.md (imagination/persona-only-heartbeat,
d861574), cut C2. Rulings: eureka-body:ruling:persona-only-heartbeat (she
reads the Mind and never writes it; no Self runs from the Persona).

Persona organ (persona.rs 3983 -> ~420 lines): deleted the live session
organ whole: TURN_INSTRUCTION, TURN_REMINDER, MESSAGES_HEADER, WORK_QUESTION,
ANSWER_MESSAGES, WAKE_ASK, WORK_TAIL; PersonaReply with intent, remember,
rule, settle, start_self_run, tempo vote and urgency, and reply_schema; the
doctrine and persona-JSON system prompt (read_doctrine, render_instructions,
campaigns); start_session, persona_args, PersonaInbox; act, decode_reply and
every admission (memories, rulings, settles, pulses, follow-ups, run closure);
start_self_run; the responsibilities, recent-runs and wear renderers;
render_input and render_tempo. carry reads the brakes and answers Dead or
NoOrgan; a start writes nothing and records no run. Kept per the map's keep
list for C3: Config (doctrine, image store and fetch fields cut with their
consumers), the brake read, the chat-addressing helpers, the tail renderer
and FileTrace; uncalled ones carry allow(dead_code) naming C3.

Night: sleep.rs is deleted. It was a Mind-writing session built on the
deleted prelude; C4 retargets its contract from history.
attachment.rs is deleted with the reply's save_attachment, its one caller.
chat_image's loader and recall.rs stay for C3 under allow(dead_code).

Heartbeat: no Mind writes. A wake is a plain unit start through the
Launcher (brake, then alive, then start); busy is the unit's own state.
Deleted the Self-run branch (claimable briefs), the self-ended wake, tempo
votes and declared urgency (standing_vote, pending_urgency, last_self_end)
and the run-based last_turn and last_sleep reads; HeartbeatState gains
last_turn_at and last_night_at (default slots, so a state written before
this cut still decodes). The beat is HEARTBEAT_BEAT_S, default 1800 s.
InstanceTrace.vote_beat_s stays as an always-none slot so heartbeat.cc's
older trace records still decode. HeartbeatView loses latest; the
timeline reads FileStore::latest.

tempo.rs: tally, fallback_beat and the PID controller and its sim are
deleted; pick and score stay, without self_permille.

Tests that pinned deleted behaviour are deleted with it; surviving ones are
kept, and two heartbeat tests pin the cut: a Mind with claimable briefs gets
a Persona wake and no Self run, and no poll admits anything to any mind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Taken from the test's printed full current surface. Two lines are main's
drift, not this cut (chat_client's Basis gained FollowUp, and
FOLLOW_UP_BASIS); the rest is the subtraction: 83 lines removed (persona's
reply and session organ, stream, sleep's inbox, tempo's tally and PID,
heartbeat's AGENT and HeartbeatView::latest) and 11 changed or added
(persona Outcome/carry/Config, heartbeat Config.beat_s, DEFAULT_BEAT_S,
HeartbeatState's turn and night maps, FileStore::latest, Organs without
host, Standing without self_permille).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Map section 7 keeps no dormant switch in main: Self-run launching is parked
at parked/self-run-launch. open_and_launch was the only code that opened a
SelfRun run and nothing called it in production.

launch.rs keeps the systemd door (Launcher, SystemdLauncher, unit names,
the brake's stop) and the two reads self_run uses, holders and closure.
Deleted: open_and_launch, Ports, LaunchRequest, LaunchOutcome, Declined,
slot, START_GRACE_S, run_label, the dead-run closer and the breaker
question, with their tests.

queue.rs keeps MindPort, HuginnMind, the paged reads and on_hold, which
self_run's inbox reads. Deleted: queue, breaker, Breaker, CONSECUTIVE,
WINDOW, EMPTY_SHARE, live_claims, claims_of, with their tests.

control: Grant::for_test and the launch-gate tests went with the gate.
testkit: the helpers only those tests used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
F4: the night wake started a plain mind-persona@ unit and traced it as
Sleep and "asleep". Deleted the night branch, Night, Config.night, the
HEARTBEAT_SLEEP_UTC and HEARTBEAT_SLEEP_MINDS settings and
HeartbeatState.last_night_at (added by this PR, never deployed, so nothing
must decode it). A wake's trace entry is her slug. Reflection and
consolidation return in C4.

F6: deleted a_flag_overrides_the_environment (asserted exit 0 with the
config discarded) and the heartbeat test that compared two identical rigs.

F7: Cargo.toml no longer says the Persona drains her chat or that launch
opens runs; heartbeat.rs no longer says Persona units read its addressing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removed: launch's run opener and its types, queue's queue and breaker,
heartbeat's Night; changed: heartbeat Config and HeartbeatState.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eureka merged commit 66b85c8b67 into main 2026-11-19 21:36:00 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Huginn!75
No description provided.