Commit graph Huginn/crates
Author SHA1 Message Date
Meta Vens
bde75a677f Projector: Decided leaves the default recall_sorts (her Mind files mission decisions there); default is Learned, Idea, Rapport
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:52:29 +01:00
Meta Vens
b0d712580d recall test: distinct labels
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:52:29 +01:00
Meta Vens
012de7a32f Projector: recall tests for memories only; public surface carries recall_sorts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:52:28 +01:00
Meta Vens
6c7c375388 Projector: recall offers only persona-tuning.toml's recall_sorts (default Learned, Idea, Decided, Rapport), one item a packet
Recall now reads only memories of the cued sorts: follow-ups, rulings and the
open-item filter leave it, with the tests that pinned them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:52:28 +01:00
Meta Vens
47201effa8 recall: cut the old prompt's recall section (render, lane headings); the Select stage renders its own lines
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:52:21 +01:00
Meta Vens
be3ca005f5 Projector (C3a): Select stage, Projector narration, persona-tuning.toml, mind-persona project
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:52:21 +01:00
Meta Vens
e011c2aa21 Body map after C2: the persona-only body, stale rows marked, READMEs corrected
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 22:40:02 +01:00
Meta Vens
8ebe5de822 self_run: drop the doc pointer to the deleted launch::run_label
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:31:15 +01:00
Meta Vens
e9a883f732 mind-body public surface: regenerated after the F3/F4 follow-ups
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>
2026-11-19 22:30:50 +01:00
Meta Vens
8fe9fc351b Heartbeat: no night wake until C4; stale docs and empty tests (Soul F4, F6, F7)
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>
2026-11-19 22:30:50 +01:00
Meta Vens
6df3255330 Delete the run opener, the work queue and the breaker (C2 follow-up, Soul F3)
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>
2026-11-19 22:30:50 +01:00
Meta Vens
7b9fa7d33f mind-body public surface: regenerated after the C2 subtraction
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>
2026-11-19 22:07:56 +01:00
Meta Vens
0fd12325bd Cut the mission organ and every Persona-side Mind write (C2)
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>
2026-11-19 22:06:11 +01:00
Meta Vens
609696f43e Park the divergence stream organ (C2, persona-only-divergence-parked)
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>
2026-11-19 22:03:17 +01:00
917430ce99 Merge pull request 'Chat search: multi-room listing no longer advises a chunk-losing --after' (#71) from eureka/chat-listing-continuation into main 2026-11-17 03:46:25 +00:00
556324017e ChatQuery docs: --after continues a listing within one room only
Soul found the wire comment (and the published schema carrying it) still told every
caller to narrow with the last hit's ts_end_ms + 1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 03:46:19 +00:00
c9a33f7ed5 admission: simplify the historic-ruling guard (clippy 1.95.0 nonminimal_bool)
The pinned 1.95.0 toolchain rejects the negated conjunction at admission.rs:674 under
-D warnings; the rewrite is its own suggestion and De Morgan-equal.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 03:33:34 +00:00
41fa789d6f chat search: a multi-room listing no longer advises an --after that loses chunks
A truncated listing printed --after <last.ts_end+1>. Listing is ordered by chunk
start and chunks of different rooms overlap in time, so the next page skipped any
chunk starting before that instant and ending before it. Inside one room chunks do
not overlap, so the advice stays; with several rooms (or none named) the CLI now
says to list one room at a time.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 03:33:32 +00:00
416e385c97 Clippy-clean huginn-daemon and mind-body under -D warnings (#70) 2026-11-17 02:22:30 +00:00
a424c1c4d5 huginn-sources: every run takes the lock (chat-off included) (#68) 2026-11-17 02:02:25 +00:00
2ca3105322 Clear all clippy -D warnings errors in huginn-mind (#69) 2026-11-17 01:58:12 +00:00
07942c1a83 Chat ingest job: huginn-sources chat flags, Matrix reader, lock, chat-purge (#67) 2026-11-17 01:52:38 +00:00
211cfe5e82 SwarmWriter::open refuses a store holding a record it does not read
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 09:35:31 +00:00
0c2d1e2cab ControlWriter::open refuses a store holding a record it does not read
The CultLib pin makes a pull carry unregistered records instead of refusing; the writer guards like the heartbeat store does.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 09:31:17 +00:00
477482b1a0 Pin CultLib 75188fde (stamp hardening #175; includes #171 #172 #174)
The workspace's one CultLib pin moves 8fc74c70 -> 75188fdefa0b4baf131dbfd94e77d06a965f0cc6
(cultcache-rs 0.2.0 -> 0.3.1, cultnet-rs 0.1.0 -> 0.3.0 in the lock; the lock drops
the crates the old revision alone needed and gains sha2/stacker for the new one).

Adaptations the new cultcache-rs forces:
- CacheBackingStore::push/push_all return the stamps written; the five test
  stores follow (store.rs, receipt.rs, read_tests.rs).
- A pull now carries a record no registered type claims instead of refusing it,
  so the heartbeat writer's open() checks foreign_records() and keeps its
  fail-closed refusal of an old initiative store.
- A cache refuses writes until it has pulled, and a zero-byte file is not a
  store: two test fixtures pull first / plant a real store.

Not deployed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 09:14:30 +00:00
db9605fbf2 Desk door: listing gate and account-id grammar at decode (PR B of cut-desk-feed-listing.r8; stacked on #62) (#63) 2026-11-14 02:15:20 +00:00
f09bc56e77 Chat: basis follow (conversation-following), counted by is_for (#65)
Wire string exactly `follow` (Bifrost #74); one constant FOLLOW_UP_BASIS; Soul pass at eeaaad9 PASS, finding fixed at c71be9d. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 12:24:20 +00:00
232764bf78 Persona saves a named attachment into her sandbox (BIFROST_CHAT_FETCH, off by default) (#64)
Specs cut-persona-save-attachment.r7; Soul s1, s2; flag off, not deployed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 02:07:13 +00:00
Meta Vens
ecf147dbd7 Merge hands/eureka-body-flush-keeps-unseen-revision: a flush spends no unseen revision (cut-flush-keeps-unseen-revision h1; Soul s1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 23:55:45 +01:00
Meta Vens
b721c3eac7 Merge hands/eureka-body-usage-per-turn: one usage line per turn (cut-usage-per-turn h1-h2; Soul s1-s2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 23:37:30 +01:00
Meta Vens
51a13b7e82 mind-body: only an answer to a revision line spends a waiting stale-send revision
A flush answer never showed her the revision, so spending it acked a batch she
had not answered. final_reply stays the send-basis switch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 23:28:19 +01:00
Meta Vens
8b18434282 mind-body: pin that a flush answer does not spend a stale-send revision she was never told
Fails at base: the flush acks delivery 1 and drops the revision.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 23:23:36 +01:00
Meta Vens
43c3b1c047 usage-per-turn: the capture reports both TTL cache writes (0), so its lines carry them
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 23:18:41 +01:00
Meta Vens
65642dcf3c usage-per-turn: model ids are field-safe and the cache-write TTL split is carried
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 23:18:41 +01:00
dcae9c5c2c Desk door: emit CultLib d3025d3c reader shapes (PR A of cut-desk-feed-raised-at.r3 + cut-desk-feed-listing.r8) (#62) 2026-11-11 21:24:36 +00:00
Meta Vens
b920f3f81f usage-per-turn: the captured error result carries result_index 0 and no usage
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 22:16:57 +01:00
Meta Vens
fbedfdce2f usage-per-turn: the three journal-exact tests expect the usage line after each result
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 22:13:16 +01:00
Meta Vens
e719aa3766 usage-per-turn: every result writes one usage line to the unit's journal, from its per-turn usage
usage_line reads model_usage_since_last_result (never the cumulative modelUsage);
write_result writes it after the result line, so Self runs and Persona turns share it.
Unreported usage says "not reported", never zeros.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 22:06:15 +01:00
b4f3a48a8f chat ingest core: room scope, credential scrub, chunker, refresh_chat, steward purge (#60) 2026-11-11 20:53:00 +00:00
f1d5c4039b Desk feed door: re-pin CultLib vectors to d3025d3c (null answerer pinned on all four variants) (#61) 2026-11-11 20:04:04 +00:00
36dd8ce3ca chat: huginn chat window (event id with its neighbours, from the chat index) (#59) 2026-11-11 19:49:04 +00:00
421ace5432 chat: search_chat over the shared source collection, huginn chat search (#57) 2026-11-11 19:11:25 +00:00
b299d6f732 Desk feed door: reader-count shapes pinned to CultLib 3a51bbab (vendored vectors) (#58) 2026-11-11 18:27:59 +00:00
0115915b37 Desk feed fixtures: the account-id refusal is owed by cut-desk-feed-listing.r6
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:42:34 +00:00
ea4193e0e4 Desk feed door: card has 16 keys (17 with raised_at); grammar test kills length and dash mutants
Soul on d08b888: CultLib main's card requires 16 keys, not 17. The
account-id grammar test now rejects 36 hex digits with no dash, a
37-character id and a dash off position. The reader-view test says it
pins mirror types only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:42:26 +00:00
d08b8880ff Desk feed door: the door withholds account ids from non-deciders (proposed shapes, CultLib change owed)
Persona's ruling (follow-up chat-mind-20261111T150417226Z-t167): a
reader is a decider when subject is in the call's deciders; any other
reader gets no decider or answerer ids, only counts, and Huginn does it
because the card is opaque to Bifrost. CultLib's closed card (deciders
minItems 1, no count) and non-null answerer cannot carry it yet, so the
doc names the proposal to Libby and the fixtures add clearly synthetic
card fragments and a proposed non-decider record, with a test that no
account id appears in a non-decider's bytes and a decider keeps them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:38:52 +00:00
da90d7e74e Desk feed door: account ids are lowercase D-format UUIDs; fixtures and a test pin it
subject, deciders and answerer are Bifrost UserAccount ids (lowercase
D-format, as Bifrost's validator requires and as Huginn names
RequestId). The fixtures used "7"/"12"; they now carry synthetic UUIDs,
and a test pins the grammar and refuses Matrix ids, emails and handles.
The doc states that Huginn's door does not refuse other shapes yet (owed
by cut-desk-feed-listing.r4) and that card.deciders echoes the ids.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:35:49 +00:00
bf9a8a7f13 Merge pull request 'chat: decode Bifrost chat_pending.v4 reply_to (lenient ReplyLink, opt-in request)' (#53) from chat/reply-link-v4 into main 2026-11-11 17:26:05 +00:00
ec8ba4b84c persona: renumber-in-flight test lets the clock run
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:15:19 +00:00
650e5e262e Desk feed door doc: read-form fork_too_large, Refused shapes, fork source, gate not live
Soul pass on 66e6fe8: document and fixture the read form of
fork_too_large (live on main; CultLib limitation 13 is stale), the
ResponseTooLarge 503 and a unit-variant Refused; say that only operation
messages have sorted keys, what failure diagnostics and the schema
catalog reply are, where forks come from, and that the listing gate is
not live (no receiver on a Mind with private questions before
cut-desk-feed-listing). Fixtures use a held fork id, synthetic record.
.gitattributes keeps .bin/.msgpack binary and .hex LF.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 17:14:27 +00:00